Skip to Content
0
Jun 27, 2022 at 07:50 AM

Create Payment with one LeanInvoice as reference

99 Views Last edit Jun 29, 2022 at 07:03 AM 4 rev

Hi community,

I am trying to create a payment with the existing invoice in the CRM with SOAP ManagePaymentIn service.

<soap:Envelope xmlns:soap="<a href="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</a>" xmlns:glob="<a href="http://sap.com/xi/SAPGlobal20/Global">http://sap.com/xi/SAPGlobal20/Global</a>"><br>   <soap:Header/><br>   <soap:Body><br>      <glob:PaymentBundleMaintainRequest_V1><br>         <BasicMessageHeader/><br>      <Payment actionCode="01"><br>           <Name languageCode="EN">Test Payment4</Name><br>         <PaymentMode>0</PaymentMode><br>         <CreationDate>2022-06-04</CreationDate><br>         <PaymentAmount currencyCode="EUR">80.00</PaymentAmount><br>         <AccountParty><br>             <BusinessPartnerInternalID>MC9785</BusinessPartnerInternalID><br>             <RoleCode>1001</RoleCode><br>         </AccountParty><br>         <BusinessTransactionDocumentReference actionCode="04"><br>             <ID>52</ID><br>             <TypeCode>2208</TypeCode><br>             <RoleCode>1</RoleCode><br>         </BusinessTransactionDocumentReference><br>         <EmployeeResponsibleParty><br>             <BusinessPartnerInternalID>8000000505</BusinessPartnerInternalID><br>         </EmployeeResponsibleParty><br>         <PayerParty><br>             <BusinessPartnerInternalID>MC9785</BusinessPartnerInternalID><br>         </PayerParty><br>     </Payment><br>      </glob:PaymentBundleMaintainRequest_V1><br>   </soap:Body><br></soap:Envelope><br>

It returns the following error: "Error determining current data for process node: BO PAYMENT, BO node ROOT".

How can I create a payment with an existing invoice (LeanInvoice) as reference?

(This call works if the BusinessTransactionDocumentReference ID does not exist in the invoices).

thanks,