Skip to Content
avatar image
Former Member

Over the counter Sales Order - Web Service Error

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 07 at 01:18 AM

    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!

    Add comment
    10|10000 characters needed characters exceeded

    • 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