API API_MATERIAL_DOCUMENT throwing 'Provide Line-IDs' error during a POST call with Custom Fields

4 months ago 57

Hi Community ,

I person created a customized tract with Business Context arsenic 'Material Document Item' successful Custom Fields App successful SAP S/4 HANA Public Cloud . I person enabled it for ODATA Service API_MATERIAL_DOCUMENT_SRV and astatine GUI level it is disabled.

When one bash a GET telephone astatine Header Level (Extending to Line Item) utilizing API Material Documents - Read, Create ; it successfully gives maine the Material Document details with header and enactment items(along with the created customized fields). But erstwhile one bash a POST telephone for posting a worldly papers by putting customized fields successful to the Payload, one get an mistake connection saying 'Provide enactment ID's erstwhile utilizing Business Context MATERIALDOCUMENTITEM'.

POST telephone works good if one region the customized field.

Attached screenshots of Successful GET Call with Custom fields, payload Used for POST telephone and Error connection during POST call.

Please suggest maine a solution to resoluteness supra mentioned issue.

Read Entire Article