Skip to main content

odata: OData runtime consumption

Consume published OData runtime services over the Gateway. The consumer's view, orthogonal to design-time data preview.

Related guides: services-odata.

3 commands.

abapctl odata list

READ IDEMP

List the live OData service catalog (V2 + V4)

OptionRequiredDescription
--connectionnoconnection profile name
--filternofilter services by name/title/description (case-insensitive)
--v2-onlynolist only V2 services (skip the V4 catalog)
--v4-onlynolist only V4 services (skip the V2 catalog)
abapctl odata list

abapctl odata metadata

READ IDEMP

Show a service's entity sets, keys, properties, and function imports

OptionRequiredDescription
service (positional)yesservice (object/name argument)
--connectionnoconnection profile name
--rawnoprint the raw $metadata XML verbatim
abapctl odata metadata ZMY_SRV

abapctl odata query

READ IDEMP

Query an entity set (or read a single entity with --key)

OptionRequiredDescription
service (positional)yesservice (object/name argument)
entityset (positional)yesentityset (object/name argument)
--connectionnoconnection profile name
--filternoOData $filter expression
--selectnocomma-separated $select fields
--topnomax rows ($top)
--skipnorows to skip ($skip)
--orderbynocomma-separated $orderby expression
--expandnocomma-separated $expand navigation properties
--countnoinclude the total count
--keynoread a single entity by raw OData key, e.g. "SalesOrder='A 1',Item=10"
abapctl odata query ZMY_SRV CurrencySet