cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Material Document API call from custom UI5 app payload error

0 Kudos
269

Hi, I have set up my S4 Cloud SOAP Material Document- create API endpoint as a destination in SCP and am trying to trigger it via a custom UI5 app built in webIDE. I am unable to format the correct payload to post to the SOAP Material Document API.

API: https://api.sap.com/api/MATERIALDOCUMENTCREATEREQUEST1/documentation

Sample payload:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/APPL/Global2"/> 
</soapenv:Header> 
<soapenv:Body> <glob:MaterialDocumentCreateRequest_Async "> 
<MessageHeader> <CreationDateTime>2021-02-0514:29:00</CreationDateTime> </MessageHeader> 
<MaterialDocument> <GoodsMovementCode>2</GoodsMovementCode> <PostingDate>2021-02-05</PostingDate> <MaterialDocumentItem> <GoodsMovementType>101</GoodsMovementType> <MaterialDocumentLine>1</MaterialDocumentLine> <Material>SC06000620030CB</Material> <ManufacturingOrder>1000360</ManufacturingOrder> <Batch>0000000280</Batch> <Plant>30LO</Plant> <StorageLocation>LOGR</StorageLocation> <StockType>3</StockType> <QuantityInEntryUnit unitCode="EA">1</QuantityInEntryUnit> <SerialNumbers>10008040</SerialNumbers> </MaterialDocumentItem> </MaterialDocument> 
</glob:MaterialDocumentCreateRequest_Async> 
</soapenv:Body> 
</soapenv:Envelope> 

error: env:VersionMismatchSOAP defined with one Optional Header Element and Mandatory Body Element.

I am testing this using Postman for now to get a successful request before I call it from the app in webIDE.

What is missing in this payload? If there is a sample payload for SOAP that can be used to make this request from a UI5 app, that would be much appreciated.

Thanks,

Priya.

Accepted Solutions (0)

Answers (1)

Answers (1)

abhijitbolakhe
Product and Topic Expert
Product and Topic Expert
0 Kudos