Skip to Content
0
Former Member
Sep 06, 2009 at 05:48 PM

Create A/R Invoice and Its Incoming Payment using DI Server

385 Views

Hi Everyone,

I need to create an A/R Invoice and its payment in a sigle transaction using DI Server. The problem is that I don't know the DocEntry that will be assigned to the invoice in order to set it in the SOP message for creating the incoming payment.

I guess the SOAP message should look like:

<?xml version="1.0" encoding="UTF-16"?>

http://schemas.xmlsoap.org/soap/envelope/">

<env:Header>

<SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>

</env:Header>

<env:Body>

http://www.sap.com/SBO/DIS" CommandID="Add invoice">

<BOM>

<BO>

<AdmInfo>

<Object>oInvoices</Object>

</AdmInfo>

<Documents>

<row>

<DocDate>20040707</DocDate>

<DocDueDate>20040707</DocDueDate>

<CardCode>BP</CardCode>

</row>

</Documents>

<Document_Lines>

<row>

<ItemCode>Item1</ItemCode>

<Quantity>3</Quantity>

<TaxCode>My Tax</TaxCode>

</row>

</Document_Lines>

</BO>

</BOM>

</dis:AddObject>

http://www.sap.com/SBO/DIS" CommandID="Add Incoming Payment">

<BOM>

<BO>

<AdmInfo>

<Object>oIncomingPayments</Object>

</AdmInfo>

<Payments>

<row>

<CardCode>BP</CardCode>

<DocTypte>rCustomer</DocTypte>

........

</row>

<Payments>

<Payments_Invoices>

<row>

<DocEntry>???</DocEntry> <----


???

<InvoiceType>it_Invoice</InvoiceType>

<SumApplied>100</SumApplied>

</row>

</Payments_Invoices>

</BO>

</BOM>

</dis:AddObject>

</env:Body>

</env:Envelope>

Any help?