Skip to Content
0

Over the counter Sales Order - Web Service Error

Mar 01 at 12:52 PM

70

avatar image
Former Member

Hello,

I manage the Over-the-counter Sales Order via Webservice I don't have issues when I provide the document ID myself but I want it to be generated by sap system. When I let the document ID blank, I get the following error : "The customer invoice request cannot be saved, because the preceding document ID missing. Report an incident." How can I fix this?

<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://sap.com/xi/SAPGlobal20/Global"><SOAP-ENV:Body><ns1:OvertheCounterSalesRequestBundleMaintainRequest_sync><BusinessDocumentBasicMessageHeader/><OverTheCounterSaleRequest><ObjectNodeSenderTechnicalID>test</ObjectNodeSenderTechnicalID><BaseBusinessTransactionDocumentID/><Name>POS TEST</Name><SettlementPriorityCode>1</SettlementPriorityCode><BuyerParty><InternalID>10000014</InternalID></BuyerParty><BillFromParty><InternalID>P1123</InternalID></BillFromParty><SalesUnitParty><InternalID>P1123</InternalID></SalesUnitParty><EmployeeResponsibleParty><InternalID>E0111</InternalID></EmployeeResponsibleParty><SalesAndServiceBusinessArea><DistributionChannelCode>01</DistributionChannelCode></SalesAndServiceBusinessArea><ShipFromLocation><InternalID>P1123</InternalID></ShipFromLocation><PricingTerms><PricingProcedureCode>PPSTD1</PricingProcedureCode><CurrencyCode>EUR</CurrencyCode></PricingTerms><Item><Product><InternalID>8424332698148</InternalID></Product><Quantity unitCode="EA">1</Quantity><QuantityTypeCode/><PriceAndTax><PriceComponent><TypeCode>7PR1</TypeCode><Rate><DecimalValue>66.7</DecimalValue><CurrencyCode>EUR</CurrencyCode></Rate></PriceComponent></PriceAndTax></Item></OverTheCounterSaleRequest></ns1:OvertheCounterSalesRequestBundleMaintainRequest_sync></SOAP-ENV:Body></SOAP-ENV:Envelope> 

Thanks for your help

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Mar 07 at 01:18 AM
0

Dear Maxime,

I've checked this scenario and I would like to share one information with you.

I found that there is no item base transaction id tag under Item.

Please, check the xml schema for OTCS request and modify your request XML under the tag item

<Item>
<BaseBusinessTransactionDocumentItemID>XXX</BaseBusinessTransactionDocumentItemID>
<BaseItemCancelledIndicator>true</BaseItemCancelledIndicator>
<SettlementBlockedIndicator>true</SettlementBlockedIndicator>
<BaseItemInvoicingBlockingReasonCode>To</BaseItemInvoicingBlockingReasonCode>
<CancellationReasonCode listAgencyID="XXX">Toke</CancellationReasonCode>
<Description languageCode="EN">String 549</Description>
<CashDiscountDeductibleIndicator>true</CashDiscountDeductibleIndicator>
<Product>

Any doubt, please, let me know!

All the best!

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello

What is the BaseBusinessTransactionDocumentItemID used for under item tag? I don't quite get it, why should I provide it?

Here is what I tried

<OverTheCounterSaleRequest><ObjectNodeSenderTechnicalID>test</ObjectNodeSenderTechnicalID><Name>POS TEST</Name><SettlementPriorityCode>1</SettlementPriorityCode><BuyerParty><InternalID>10000014</InternalID></BuyerParty><BillFromParty><InternalID>P1123</InternalID></BillFromParty><SalesUnitParty><InternalID>P1123</InternalID></SalesUnitParty><EmployeeResponsibleParty><InternalID>E0111</InternalID></EmployeeResponsibleParty><SalesAndServiceBusinessArea><DistributionChannelCode>01</DistributionChannelCode></SalesAndServiceBusinessArea><ShipFromLocation><InternalID>P1123</InternalID></ShipFromLocation><PricingTerms><PricingProcedureCode>PPSTD1</PricingProcedureCode><CurrencyCode>EUR</CurrencyCode></PricingTerms><Item><BaseBusinessTransactionDocumentItemID>10</BaseBusinessTransactionDocumentItemID><Product><InternalID>8424332698148</InternalID></Product><Quantity unitCode="EA">1</Quantity><QuantityTypeCode/><PriceAndTax><PriceComponent><TypeCode>7PR1</TypeCode><Rate><DecimalValue>66.7</DecimalValue><CurrencyCode>EUR</CurrencyCode></Rate></PriceComponent></PriceAndTax></Item></OverTheCounterSaleRequest><br>

I Still have the same error.

I know it is working when I provide the BaseBusinessTransactionDocumentID under the "over the counter request" tag. But I should not provide it. I want SAP to generate the ID for me as I save a new order (just like the standard Sales Order process).

At this point I don't know if it is a bug, a mis-configuration in Sales Order or if it is just not possible to achieve? If so that's kind of a drawback.

Best Regards

0

Hi Maxime,

The BaseBusinessTransactionDocumentID is requirement, and the BaseBusinessTransactionDocumentItemID is not.

The BaseBusinessTransactionDocumentID, we can get it in the BO CustomerInvoiceRequest, I think the webservice is imperfect.

Best Regards,

Benny Huang

0
Former Member
Benny Huang

Okay, I did report an incident but I had no news for a month now, I don't know if it is going to be corrected or not...

It seems very painful for a Point of Sale integration if we have to handle the Over-the-counter-Sales DocumentID.

Thanks for your input.

Regards

0

Hi Maxime,

The worst method is create a custom BO, create a webservice for the custom BO, when the custom BO save, triger an integration to create the Over-the-counter-Sales Document, I haven't try it, but I think it can achieve in theoretically feasible.

Good luck and Best Regards.

Benny Huang

0