on 2024 Aug 06 10:33 AM - last edited on 2024 Aug 07 6:57 PM by jerryjanda
Hi together,
I want to post a cancellation into the SAP Public Cloud. I tried using Postman. Unfortunately, I received a '500 Internal Server Error' from the SAP Public Cloud. I experimented with different versions of SOAP and ended up using SOAP 1.0, as recommended in the Overview | Sales Order/Customer Return - Create, Update, Cancel (B2B) | SAP Business Accelerator Hub.
Here is my SOAP call:
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:edi="http://sap.com/xi/EDI">
<soap-env:Header/>
<soap-env:Body>
<edi:OrderRequest>
<MessageHeader>
<ID>9418820AC0A91EDA80A881D1F6B6419</ID>
<CreationDateTime>2024-08-06T02:53:20Z</CreationDateTime>
<SenderParty>
<InternalID>S10100903</InternalID>
</SenderParty>
<RecipientParty>
<InternalID>S10300903</InternalID>
</RecipientParty>
</MessageHeader>
<Order>
<PurchaseOrderID>0000000027</PurchaseOrderID>
<PurchaseOrderCreationDate>2024-08-06</PurchaseOrderCreationDate>
<TransactionCurrency>EUR</TransactionCurrency>
<BuyerCompanyCodeCurrency>EUR</BuyerCompanyCodeCurrency>
<BuyerExchangeRate>1.0</BuyerExchangeRate>
<BuyerVATRegistration>DE123456789</BuyerVATRegistration>
<Party PartyType="SoldTo">
<BuyerPartyID>1000000</BuyerPartyID>
<SupplierPartyID>1010</SupplierPartyID>
</Party>
<Party PartyType="BillTo">
<BuyerPartyID>1010</BuyerPartyID>
<Address>
<AddressName>Kunde</AddressName>
<StreetName>Werner-Otto-Straße</StreetName>
<HouseNumber>1</HouseNumber>
<PostalCode>22179</PostalCode>
<CityName>Hamburg</CityName>
<Country>DE</Country>
<CorrespondenceLanguage>de</CorrespondenceLanguage>
</Address>
</Party>
<Party PartyType="ShipTo">
<BuyerPartyID>1010</BuyerPartyID>
<Address>
<AddressName>Kundin</AddressName>
<StreetName>Werner-Otto-Straße 7</StreetName>
<HouseNumber>1</HouseNumber>
<PostalCode>22179</PostalCode>
<CityName>Hamburg</CityName>
<Country>DE</Country>
<CorrespondenceLanguage>de</CorrespondenceLanguage>
</Address>
</Party>
<PaymentTerms>
<BuyerPaymentTermsID>NT60</BuyerPaymentTermsID>
<SupplierPaymentTermsID>NT60</SupplierPaymentTermsID>
</PaymentTerms>
<OrderItem>
<PurchaseOrderItemID>000010</PurchaseOrderItemID>
<OrderItemText>S0B123SP38BP2</OrderItemText>
<RequestedQuantity unitCode="PC">1.0</RequestedQuantity>
<GoodsReceiptIsExpected>true</GoodsReceiptIsExpected>
<Product>
<BuyerProductID>11</BuyerProductID>
<SupplierProductID>S0B123SP38BP2</SupplierProductID>
</Product>
<ScheduleLine>
<RequestedDeliveryDate>2024-08-06</RequestedDeliveryDate>
<ScheduleLineOrderQuantity unitCode="PC">1.0</ScheduleLineOrderQuantity>
</ScheduleLine>
<PricingElement>
<ConditionCurrency>EUR</ConditionCurrency>
<ConditionRateValue>19.99</ConditionRateValue>
<ConditionType>PPR0</ConditionType>
</PricingElement>
<Text>
<LongTextID>0001</LongTextID>
</Text>
</OrderItem>
<OrderItem>
<PurchaseOrderItemID>000020</PurchaseOrderItemID>
<OrderItemText>S0C456SP44CP2</OrderItemText>
<RequestedQuantity unitCode="PC">1.0</RequestedQuantity>
<GoodsReceiptIsExpected>true</GoodsReceiptIsExpected>
<Product>
<BuyerProductID>21</BuyerProductID>
<SupplierProductID>S0C456SP44CP2</SupplierProductID>
</Product>
<ScheduleLine>
<RequestedDeliveryDate>2024-08-06</RequestedDeliveryDate>
<ScheduleLineOrderQuantity unitCode="PC">1.0</ScheduleLineOrderQuantity>
</ScheduleLine>
<PricingElement>
<ConditionCurrency>EUR</ConditionCurrency>
<ConditionRateValue>250.0</ConditionRateValue>
<ConditionType>PPR0</ConditionType>
</PricingElement>
<Text>
<LongTextID>0001</LongTextID>
</Text>
</OrderItem>
<PricingElement>
<ConditionCurrency>EUR</ConditionCurrency>
<ConditionRateValue>5.95</ConditionRateValue>
<ConditionType>ZFR0</ConditionType>
</PricingElement>
</Order>
</edi:OrderRequest>
</soap-env:Body>
</soap-env:Envelope>
And this is the response:
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header/>
<soap-env:Body>
<soap-env:Fault>
<faultcode>soap-env:Server</faultcode>
<faultstring xml:lang="en">Web service processing error; more details in the web service error log on provider side (UTC timestamp 20240806085807; Transaction ID 9D45B69DC8B90210E0066B1585C09E3E)</faultstring>
<detail/>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
How can I post a cancellation in SAP Public Cloud using SOAP (URL: /sap/bc/srt/scs_ext/sap/OrderRequest_In)?
Any help or insights would be greatly appreciated.
Best regards,
Viola
#SOAPRequest
#SalesOrder
#Cancel
#B2BIntegration
Request clarification before answering.
Hi Fancy,
thank you for your comment. Yes, every requirement is done and active. We double checked them.
Best regards,
Viola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.