get_field_values
Fetch dropdown and value-list options from SAP S/4HANA OData entities to discover valid input values before writing data.
Instructions
Fetches dropdown and value-list options from a SAP S/4HANA OData entity. Use this to discover valid input values before writing data with execute_odata_query. Provide the entity set that acts as the value-help source and the target field name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | OData service name, e.g. API_BUSINESS_PARTNER | |
| entity | Yes | Entity set that serves as a value-help list, e.g. A_BPContactToFuncAndDept | |
| valueField | Yes | Technical field name whose distinct values you want, e.g. BusinessPartnerCategory | |
| labelField | No | Field that holds the human-readable description for each value | |
| top | No | Maximum number of values to return (default 200) |