Reading data
Reading is the easy case — plain odata/* actions. See
Overview for how action names work.
from abstra.connectors import run_connection_action
# List with an OData filter
run_connection_action(
connection_name="my_sap",
action_name="odata/api_business_partner_list_a_business_partner",
params={"$filter": "BusinessPartnerCategory eq '2'", "$top": 10},
)
# Get a single entity by key
run_connection_action(
connection_name="my_sap",
action_name="odata/api_business_partner_get_a_business_partner",
params={"BusinessPartner": "1000000"},
)
Smart Chat:
List the first 10 business partners from my "my_sap" connector
where BusinessPartnerCategory equals '2'.
Use
$select and $expand deliberatelyPass $select to reduce payload size, and $expand only when you need nested
collections. The action description tells you which nested collections come back
inline via $select.
Parameterized analytical views
Some analytical CDS views (sap:semantics="parameters") only return rows through a
parameter set — the connector exposes their mandatory parameters as required fields
on the list action. If a list action asks for parameters, fill them.