cancel
Showing results for 
Search instead for 
Did you mean: 

S/4HANA Cloud: SOAP Sales Order (B2B) - Create Text Item

Christopher
Participant
0 Kudos

Hey guys,

we are implementing the EDI CPI standard package for the creation of the Sales Order in S/4HANA Cloud. The SOAP that is used there is this one:

https://api.sap.com/api/ORDERREQUEST_IN/overview

We are trying to create a Text item in the Sales Order (TATX), but we are only getting errors in the S4. Here's my payload that I use to create the Sales Order:

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:edi="http://sap.com/xi/EDI">

<soapenv:Header/>

<soapenv:Body>

<edi:OrderRequest>

<MessageHeader>

<CreationDateTime>2022-03-17T12:00:00Z</CreationDateTime>

<SenderParty>

<InternalID>1000171</InternalID>

</SenderParty>

</MessageHeader>

<Order>

<PurchaseOrderID>CL_TEST</PurchaseOrderID>

<PurchaseOrderCreationDate>2022-03-10</PurchaseOrderCreationDate>

<SalesDocumentType>TA</SalesDocumentType>

<SalesOrganization>1010</SalesOrganization>

<DistributionChannel>10</DistributionChannel>

<OrganizationDivision>00</OrganizationDivision>

<TransactionCurrency>EUR</TransactionCurrency>

<Party PartyType="Supplier"/>

<Party PartyType="SoldTo">

<SupplierPartyID>1000171</SupplierPartyID>

</Party>

<Party PartyType="ShipTo">

<SupplierPartyID>W101010</SupplierPartyID>

<Address>

<AddressName>Test GmbH</AddressName>

<AddressAdditionalName>Potsdam</AddressAdditionalName>

<StreetAddressName>TEst 1</StreetAddressName>

<PostalCode>14478</PostalCode>

<CityName>Potsdam</CityName>

<Country>DE</Country>

</Address>

</Party>

<RequestedDeliveryDate>2022-03-21</RequestedDeliveryDate>

<OrderItem>

<PurchaseOrderItemID>10</PurchaseOrderItemID>

<PurchaseOrderItemCategory>TATX</PurchaseOrderItemCategory>

<SalesOrderItemCategory>TATX</SalesOrderItemCategory>

<OrderItemText>Kundentext</OrderItemText>

</OrderItem>

</Order>

</edi:OrderRequest>

</soapenv:Body>

</soapenv:Envelope>

This item data look very similar to the one that is sent by the S4 system in the Sales Order Confirmation Message.

In the S4 system, I see following error messages:

- RequestedQuantity-Content must be provided in the must be provided in the source data
- Product must be provided in the source data must be provided in the source data
- Technical mapping failed<br>

A product and a quantity shouldn't bee needed, since it is a Text Item that doesn't require those information. If we create this Sales Order directly in the system, everything works as expected.

Any help is highly appreciated,

Christopher

View Entire Topic
Andy_Wang
Advisor
Advisor
0 Kudos

Hi Christopher,

Thanks a lot for your queries.

According to the issue returned, I'm assuming in your payload, there is no requested quantity and product is passed. You need to provide it in segment <RequestQuantity> and <Product>.

Kindly please check the https://api.sap.com/api/ORDERREQUEST_IN/overview for your reference with there 2 segments.

Please feel free to let us know if any further comments.

Thanks a lot and Best Regards,

Andy

Christopher
Participant
0 Kudos

Hello andy.wang03

but I want to create a Text Item, a text item doesn't require a product or a quantity. (see attachment)

Thank you,

Christopher