on 2021 Feb 07 12:40 AM
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.
Hello
Please check the sample payload in API documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.