Symptom
You execute a GET operation via the 'API_MATERIAL_DOCUMENT_SRV' and a short dump is generated.
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
You have to reduce the amount of data returned by the get operation.
You need to shorten the period or enter more selective filter parameters to reduce the amount of data returned.
Keywords
API_MATERIAL_DOCUMENT_SRV, A_MaterialDocumentHeader, RAISE_SHORTDUMP, CX_SADL_DUMP_DATABASE_FAILURE , KBA , MM-IM-GR , Goods Receipt , MM-IM-GF-BAPI , BAPIs for Goods Movements , MM-IM-GR-2CL , Goods Receipt (Public Cloud) , Problem