Skip to Content

How to use the webservice (managecashpaymentorderin) to clear the payable?

Hi experts,

Now I use the webservice (managecashpaymentorderin), the request is:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:PaymentOrderReferenceToItemsBundleMaintainRequest_sync>
         <BasicMessageHeader>
         </BasicMessageHeader>
         <!--1 or more repetitions:-->
          <PaymentOrder>
           <ActionCode>01</ActionCode>
            <CompanyID>72990000</CompanyID>
            <CashLocationID>1</CashLocationID>
            <ReceiptDate>2018-08-03</ReceiptDate>
            <PaymentAmount currencyCode="CNY">4164.13</PaymentAmount>
            <PaymentDirectionCode>1</PaymentDirectionCode>           
            <AccountingTransactionDate>2018-08-03</AccountingTransactionDate>
            <DocumentDescription>test</DocumentDescription>
            <BusinessPartnerID>S38022</BusinessPartnerID>
            <!--Optional:-->
            <CashPaymentPartyName>90902</CashPaymentPartyName>
            <!--Zero or more repetitions:-->
            <PaymentExplanationItem>
               <BusinessTransactionDocumentDate>2018-08-03</BusinessTransactionDocumentDate>
               <CompanyID>72990000</CompanyID>
               <BusinessPartnerInternalID>S38022</BusinessPartnerInternalID>
               <NetAmount currencyCode="CNY">4164.13</NetAmount>
               <GrossAmount currencyCode="CNY">4164.13</GrossAmount>

                   <!--Optional:-->
               <PaymentTransactionInitiatorInvoiceReference>
                  <ID>369</ID>               
                     <ItemID>1</ItemID>          
               </PaymentTransactionInitiatorInvoiceReference>
               <PaymentTransactionDestinatedInvoiceReference>
                  <ID>369</ID>
                 <ItemID>1</ItemID>
               </PaymentTransactionDestinatedInvoiceReference>
            </PaymentExplanationItem>
         </PaymentOrder>
      </glob:PaymentOrderReferenceToItemsBundleMaintainRequest_sync>
   </soapenv:Body>
</soapenv:Envelope>

the result is:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
   <soap-env:Header/>
   <soap-env:Body>
      <n0:PaymentOrderReferenceToItemsBundleMaintainConfirmation_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:L1V:/1SAI/TAE61CEC97D981D33F3BA90:804">
         <PaymentOrder>
            <UUID>00163e61-8309-1ed8-a5ee-c93eab3374b4</UUID>
            <ID>00000000000000000000000000000000017</ID>
         </PaymentOrder>
         <Log>
            <MaximumLogItemSeverityCode>2</MaximumLogItemSeverityCode>
            <Item>
               <TypeID>400(/FOP_DUE_CLR_BL/)</TypeID>
               <CategoryCode>INC.BOI</CategoryCode>
               <SeverityCode>2</SeverityCode>
               <Note>Posting not possible; clearing  inconsistent</Note>
            </Item>
         </Log>
      </n0:PaymentOrderReferenceToItemsBundleMaintainConfirmation_sync>
   </soap-env:Body>
</soap-env:Envelope>

the payment is ok, but can not clear, the 369 is my supplier invoice, which step I miss?

thanks a lot.

Benny

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 23, 2018 at 05:55 PM

    Hi Benny,

    The <PaymentTransactionDestinatedInvoiceReference> corresponds to the Document ID of the invoice and tag

    <PaymentTransactionInitiatorInvoiceReference> is the external reference of the invoice.

    In your payload, I see that both have the same ID as 369. Could you please check in the system if the supplier invoice also has document ID equals to the external reference ID?

    Please, also check if the concerned invoice is not already locked by another clearing.

    Regards,
    Alexandre.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.