Symptom
Short dump happens when executing a GET operation via the 'API_MATERIAL_DOCUMENT_SRV'.
Environment
SAP S/4Hana Cloud - All versions
Reproducing the Issue
Run the API_MATERIAL_DOCUMENT_SRV with this example URL from the Postman:
.../sap/opu/odata/sap/API_MATERIAL_DOCUMENT_SRV/A_MaterialDocumentHeader?$expand=to_MaterialDocumentItem&$filter=CreationDate ge datetime'2022-03-29T08:00:00' and CreationDate le datetime'2022-04-29T08:00:00'
A dump is generated
Cause
The range of the statement to be passed to the database is too wide, too much data would be selected.
Resolution
To prevent system dumps when using 'API_MATERIAL_DOCUMENT_SRV', it is necessary to reduce the amount of data returned by:
- Shortening the time period specified in queries
- Applying more selective filter parameters
Keywords
API_MATERIAL_DOCUMENT_SRV, A_MaterialDocumentHeader, RAISE_SHORTDUMP, CX_SADL_DUMP_DATABASE_FAILURE , KBA , MM-IM-GR , Goods Receipt , MM-IM-GR-2CL , Goods Receipt (Public Cloud) , MM-IM-GF-BAPI , BAPIs for Goods Movements , Problem