Symptom
When posting goods movements using API API_MATERIAL_DOCUMENT_SRV, the delivery document number is not returned in the response. This issue can occur with integrated EWM/WM storage locations.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Post goods movement using API API_MATERIAL_DOCUMENT_SRV with parameter CtrlPostgForExtWhseMgmtSyst = 1.
- The response code 201 (Created) is returned after processing, but the material document number is blank and there is no delivery document number in the response body.
Cause
Different to error messages coming up in the body, the success messages is returned in the response header "sap-message".
Resolution
The outbound delivery number is included the response header "sap-message".
Keywords
API_MATERIAL_DOCUMENT_SRV, delivery document, CtrlPostgForExtWhseMgmtSyst, response, message body, message header, L9/514, sap-message , KBA , MM-IM-GF-2CL , Basic Functions (Public Cloud) , Problem
SAP Knowledge Base Article - Public