Skip to Content
0

Downpayment Webservice

Oct 16, 2017 at 07:02 AM

35

avatar image

Webservice not accepting buyer party.

Trying to create DownPayment for CustomerInvoice - using DownPaymentCustomerInvoiceRequestBundleMaintainReqiest_sync

When filling in BuyerParty - I am not able to send the webservice request through to ByD.
It returns an error saying Sales data or pricing terms not found for account - even so the account exists.

When leaving BuyerParty empty - the DP is send through to ByD - creating a DP Request - in status inconsistant. From here it is possible to edit - enter the same account number - and the hit save... Then the DP is created ok....

Bug in webservice or missing data in the request?

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

1 Answer

Knut Heusermann
Oct 20, 2017 at 08:46 AM
0

Hi Henrik,

sounds like the sales unit is missing in your web service request.

The following example is working in my system:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
   <soap:Header/>
   <soap:Body>
      <glob:DownPaymentCustomerInvoiceRequestBundleMaintainReqiest_sync>
         <BusinessDocumentBasicMessageHeader>
            <!-- UUID needed for idem potency -->
            <!-- <UUID>00163e01-0774-02de-8da6-1387e62ac121</UUID> -->
         </BusinessDocumentBasicMessageHeader>
         <DownPaymentInvoiceRequest actionCode="01">
            <ObjectNodeSenderTechnicalID>H1</ObjectNodeSenderTechnicalID>
            <BaseBusinessTransactionDocumentID>KH_DP_20160426-2</BaseBusinessTransactionDocumentID>
            <ReleaseDownPaymentIndicator>true</ReleaseDownPaymentIndicator>
            <CancelDownPaymentIndicator>false</CancelDownPaymentIndicator>
            <Name>KH Test DP</Name>
            <ProposedInvoiceDate>2016-04-26</ProposedInvoiceDate>
            <ProposedDeviatingPostingDate>2016-04-26</ProposedDeviatingPostingDate>
            <!-- <ReconciliationAccount>ZAR3</ReconciliationAccount> -->
            <BuyerParty>GCNLC20200</BuyerParty>
            <!-- <ProductRecipientParty>GCNLC20200</ProductRecipientParty> -->
            <!-- <BillToParty>GCNLC20200</BillToParty> -->
            <!-- <PayerParty>GCNLC20200</PayerParty> -->
            <!-- <BillFromParty>GCNL-1200</BillFromParty> -->
            <SalesUnitParty>GCNL-1200</SalesUnitParty> <!-- Seller company: GCNL-1000 -->
            <!-- <EmployeeResponsibleParty>MC2471</EmployeeResponsibleParty> -->
            <SalesAndServiceBusinessArea>
               <DistributionChannelCode>01</DistributionChannelCode>
            </SalesAndServiceBusinessArea> 
               <Code>1001</Code> <!-- 1001 = Payable immediately due net -->
            </CashDiscountTerms>
            <PricingTerms>
               <!-- PPGDP1 gross amount, PPNDP1 net amount -->            
               <PricingProcedureCode>PPNDP1</PricingProcedureCode>
               <CurrencyCode>EUR</CurrencyCode>
               <ProvisionDate>2016-04-26</ProvisionDate>
            </PricingTerms>
            <ProductTaxDetails>
               <ProductTaxationCharacteristicsCode listID="NL">500</ProductTaxationCharacteristicsCode>
            </ProductTaxDetails>
            <DocumentGrossAmountIndicator>false</DocumentGrossAmountIndicator>
            <ExternalReferenceID>KH_DP_EXT_ID</ExternalReferenceID>
            <Amount currencyCode="EUR">100</Amount>
            <AgreementDescription languageCode="EN">DPR agreement description</AgreementDescription>
            <TextCollection actionCode="01">
               <Text actionCode="01">
                  <!-- 10011 Internal note, 10024 = customer info -->
                  <TypeCode>10011</TypeCode>
                  <ContentText languageCode="EN">My internal note</ContentText>
               </Text>
               <Text actionCode="01">
                  <!-- 10011 Internal note, 10024 = customer info -->
                  <TypeCode>10024</TypeCode>
                  <ContentText languageCode="EN">My customer info</ContentText>
               </Text>
            </TextCollection>
         </DownPaymentInvoiceRequest>
      </glob:DownPaymentCustomerInvoiceRequestBundleMaintainReqiest_sync>
   </soap:Body>
</soap:Envelope>

Best regards,
Knut

Share
10 |10000 characters needed characters left characters exceeded