TheDocumentation Index
Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
Use this file to discover all available pages before exploring further.
sap_odata_api resource connects SAP OData V4 services. UOSE discovers services, Entity Types, Entity Sets, and Operations from the SAP catalog and $metadata, then converts them into searchable ontology objects with discoverable actions.
Supported Scope
Currently supported:- SAP OData V4 metadata.
- Catalog V4 discovery first, with fallback to Gateway V2 catalog when necessary.
- Basic Auth and static bearer.
- Query collection and single entity.
- create entity and update entity.
- unbound action import and function import.
- CSRF token acquisition configuration.
- service root allowlist to narrow sync scope.
- OData V2 metadata as execution targets.
$batch.- bound action or bound function.
Synced Objects
After sync, it usually contains:sap_odata_service: service root.sap_odata_entity_type: structured type in EDMX.sap_odata_entity_set: collection entry point for execution.sap_odata_operation: unbound action/function import.
sap_odata_service_has_entity_setsap_odata_service_has_entity_typesap_odata_entity_set_targets_entity_typesap_odata_entity_type_navigates_to_entity_typesap_odata_service_exposes_operation
Capabilities
Common capabilities include:protocolVersion: fixed to v4.catalogV4Path,catalogV2Path: catalog discovery paths.metadataPath: usually$metadata.serviceAllowlistorserviceRootAllowlist: limit synced services.entitySetAllowlist: limit synced Entity Sets.operationAllowlist: limit executable operations.mutationEntitySets: manually allow writable Entity Sets when metadata lacks write capability declarations.csrf: CSRF token acquisition method before write requests.
Actions
Common actions include:sap_odata.read_collectionsap_odata.read_entitysap_odata.create_entitysap_odata.update_entitysap_odata.invoke_operation
Recommended Usage
- Create a SAP Secret with system baseUrl, authentication mode, sap-client, and TLS configuration.
- Register a
sap_odata_apiresource. - Select the services to sync through service discovery.
- Run full sync.
- Query
sap_odata_entity_set. - Inspect the neighborhood and confirm target Entity Type, fields, key schema, and query capabilities.
- Run
discoverActions, thensimulateAction. - For write actions, review expected effect and approval requirements before execution.
Troubleshooting Tips
- If sync reports an OData V4 metadata error, check whether the target service is actually V2.
- If create or update cannot be discovered, check metadata restrictions and
mutationEntitySets. - If write requests fail, check CSRF, ETag, and source system permissions.
- If a field does not exist, first inspect the
propertiesof the related Entity Type, not only the Entity Set summary.