Symptom
- You subscribe to a sales order event. In the payload, you find information about the document type that you cannot interpret (for example, “SalesOrderType”: “TA” when a sales order item is changed).
- You want to enable communication scenarios where you use business events and APIs and want to know how to map the data. Therefore, you want to find out what the value of a specific field is for your logon language.
Environment
- Sales and Distribution (SD)
- SAP S/4HANA Cloud Public Edition All versions
Cause
Business events do not contain any language-dependent data fields, but show the format found in the database in the response. So instead of seeing “OR” for a standard order, as you would on an English UI, you see “TA”.
Resolution
To find the equivalent of a field value in your logon language, you can use the I_SalesDocumentTypeLangDepdnt CDS view for a mapping between language-dependent and language-independent values for the SalesDocumentType or SalesOrderType fields.
Keywords
Business event, event, sales order type, TA, OR, language-dependent, language-independent, logon language, EN, DE, API_SALES_ORDER_SRV, A_SalesOrder, SalesOrderType, Partner Function Conversion, Language-specific description of partner function, key, German system, TPAUM_SD, PABEZ, AUART, TAUUM, SPRAS , KBA , SD-SLS-API , API , SD-SLS-API-2CL , API (Public Cloud) , How To