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

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"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
  <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis="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>
  <dis:AddObject xmlns:dis="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?

Dear Hugo Moreno,
You could use the GetNewObjectCode Method of the Company Object to retrieves the key of the last added record.
Please refer to SDK DI API help for this method.
Best Regards
Jane Jing
SAP Business One Forums team

Similar Messages

  • How to create A/R Invoice having Withholding Tax Data using DI-Server?

    <P>Hi Experts,</P>
    <P>I want to create an A/R Invoice having a Withholding Tax line
    through DI-Server (SAP Business One 2005B PL43) using the following
    SOAP Request (Method 1 and Method 2) but both generated an 'Invalid
    XML' error response. If I exclude the WithholdingTaxData tag (or the
    WithholdingTaxDataCollection tag) from the SOAP request, the invoice
    is successfully created but without the Withholding Tax entry in the
    table INV5.</P>
    <P>I've had success in the past using the &quot;&lt;SerialNumbers&gt;&quot;
    and &quot;&lt;DocumentsAdditionalExpenses&gt;&quot;.
    </P>
    <P>In the SOAP Requests below, what is wrong with the usage of
    &quot;&lt;WithholdingTaxData&gt;&quot; or
    &quot;&lt;WithholdingTaxDataCollection&gt;&quot;?</P>
    <P>Is it possible at all to create a document having Withholding Tax
    entries using the DI-Server SOAP Request?</P>
    <P>Thank you very much.</P>
    <P><BR><BR>
    </P>
    <P>Method 1:</P>
    <P>SOAP REQUEST (Using AddObject command):</P>
    <P>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</A>&quot;&gt;<BR>     &lt;env:Header&gt;<BR>          &lt;SessionID&gt;08C5BB21-34E3-468E-952F-EEC1CBE19272&lt;/SessionID&gt;<BR>     &lt;/env:Header&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;dis:AddObject
    xmlns:dis=&quot;<A HREF="http://www.sap.com/SBO/DIS">http://www.sap.com/SBO/DIS</A>&quot;&gt;<BR>               &lt;BOM&gt;&lt;BO&gt;<BR>                    &lt;AdmInfo&gt;<BR>                         &lt;Object&gt;oInvoices&lt;/Object&gt;<BR>                    &lt;/AdmInfo&gt;<BR>                    &lt;Documents&gt;<BR>                         &lt;row&gt;<BR>                              &lt;DocDate&gt;20090520&lt;/DocDate&gt;<BR>                              &lt;DocDueDate&gt;20090619&lt;/DocDueDate&gt;<BR>                              &lt;TaxDate&gt;20090520&lt;/TaxDate&gt;<BR>                              &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;<BR>                              &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;<BR>                              &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;<BR>                              &lt;Comments&gt;Withholding
    Tax
    Liable&lt;/Comments&gt;<BR>                              &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;<BR>                         &lt;/row&gt;<BR>                    &lt;/Documents&gt;<BR>                    &lt;Document_Lines&gt;<BR>                         &lt;row&gt;<BR>                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;<BR>                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;<BR>                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;<BR>                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;<BR>                              &lt;Currency&gt;EUR&lt;/Currency&gt;<BR>                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;<BR>                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;<BR>                         &lt;/row&gt;<BR>                    &lt;/Document_Lines&gt;<BR>                    &lt;WithholdingTaxData&gt;<BR>                         &lt;row&gt;<BR>                              &lt;WTCode&gt;S&lt;WTCode&gt;<BR>                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;<BR>                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;<BR>                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;<BR>                         &lt;/row&gt;<BR>                    &lt;/WithholdingTaxData&gt;<BR>               &lt;/BO&gt;&lt;/BOM&gt;<BR>          &lt;/dis:AddObject&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>
    <P><BR><BR>
    </P>
    <P>SOAP RESPONSE (Using AddObject command):</P>
    <P>&lt;?xml version=&quot;1.0&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</A>&quot;&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;env:Fault&gt;<BR>               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;<BR>               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid
    XML&lt;/env:Text&gt;&lt;/env:Reason&gt;<BR>               &lt;env:Detail&gt;<BR>                    &lt;ErrorList&gt;<BR>                         &lt;Error&gt;System
    Id = 18023032, Line Number = 1, Column Number = 1064, Description =
    Expected end of tag
    'GLAccount'&lt;/Error&gt;<BR>                    &lt;/ErrorList&gt;<BR>               &lt;/env:Detail&gt;<BR>          &lt;/env:Fault&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>
    <P><BR><BR>
    </P>
    <P>Method 2:</P>
    <P>SOAP REQUEST (Using Add Service command):</P>
    <P>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-16&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</A>&quot;&gt;<BR>     &lt;env:Header&gt;<BR>     
    &lt;SessionID&gt;1F6C7E11-CC5B-A5F3-0206-D1F4A8B9D84A&lt;/SessionID&gt;<BR>     &lt;/env:Header&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;dis:Add
    xmlns:dis=&quot;<A HREF="http://www.sap.com/SBO/DIS">http://www.sap.com/SBO/DIS</A>&quot;&gt;<BR>               &lt;Service&gt;InvoicesService&lt;/Service&gt;<BR>               &lt;Document&gt;<BR>                    &lt;DocDate&gt;2009-05-20&lt;/DocDate&gt;<BR>                    &lt;DocDueDate&gt;2009-06-19&lt;/DocDueDate&gt;<BR>                    &lt;TaxDate&gt;2009-05-20&lt;/TaxDate&gt;<BR>                    &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;<BR>                    &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;<BR>                    &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;<BR>                    &lt;Comments&gt;Withholding
    Tax
    Liable&lt;/Comments&gt;<BR>                    &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;<BR>                    &lt;DocumentLines&gt;<BR>                         &lt;DocumentLine&gt;<BR>                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;<BR>                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;<BR>                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;<BR>                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;<BR>                              &lt;Currency&gt;EUR&lt;/Currency&gt;<BR>                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;<BR>                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;<BR>                         &lt;/DocumentLine&gt;<BR>                    &lt;/DocumentLines&gt;<BR>                    &lt;WithholdingTaxDataCollection&gt;<BR>                         &lt;WithholdingTaxData&gt;<BR>                              &lt;WTCode&gt;S&lt;WTCode&gt;<BR>                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;<BR>                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;<BR>                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;<BR>                         &lt;/WithholdingTaxData&gt;<BR>                    &lt;/WithholdingTaxDataCollection&gt;<BR>               &lt;/Document&gt;<BR>          &lt;/dis:Add&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>
    <P><BR><BR>
    </P>
    <P>SOAP RESPONSE (Using Add Service command):</P>
    <P>&lt;?xml version=&quot;1.0&quot;?&gt;<BR>&lt;env:Envelope
    xmlns:env=&quot;<A HREF="http://www.w3.org/2003/05/soap-envelope">http://www.w3.org/2003/05/soap-envelope</A>&quot;&gt;<BR>     &lt;env:Body&gt;<BR>          &lt;env:Fault&gt;<BR>               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;<BR>               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid
    XML&lt;/env:Text&gt;&lt;/env:Reason&gt;<BR>               &lt;env:Detail&gt;<BR>                    &lt;ErrorList&gt;<BR>                         &lt;Error&gt;System
    Id = 134112056, Line Number = 1, Column Number = 1076, Description =
    Expected end of tag
    'GLAccount'&lt;/Error&gt;<BR>                    &lt;/ErrorList&gt;<BR>               &lt;/env:Detail&gt;<BR>          &lt;/env:Fault&gt;<BR>     &lt;/env:Body&gt;<BR>&lt;/env:Envelope&gt;</P>

    <P STYLE="margin-bottom: 0in">Hi Experts,</P>
    <P STYLE="margin-bottom: 0in">My apologies for the truncated message.
    Here's the full one.</P>
    <P STYLE="margin-bottom: 0in">I want to create an A/R Invoice having
    a Withholding Tax line through DI-Server (SAP Business One 2005B
    PL43) using the following SOAP Request (Method 1 and Method 2) but
    both generated an 'Invalid XML' error response. If I exclude the
    WithholdingTaxData tag (or the WithholdingTaxDataCollection tag) from
    the SOAP request, the invoice is successfully created but without the
    Withholding Tax entry in the table INV5.</P>
    <P STYLE="margin-bottom: 0in">I've had success in the past using the
    &quot;&lt;SerialNumbers&gt;&quot; and
    &quot;&lt;DocumentsAdditionalExpenses&gt;&quot;.
    </P>
    <P STYLE="margin-bottom: 0in">In the SOAP Requests below, what is
    wrong with the usage of &quot;&lt;WithholdingTaxData&gt;&quot; or
    &quot;&lt;WithholdingTaxDataCollection&gt;&quot;?</P>
    <P STYLE="margin-bottom: 0in">Is it possible at all to create a
    document having Withholding Tax entries using the DI-Server SOAP
    Request?</P>
    <P STYLE="margin-bottom: 0in">Thank you very much.</P>
    <BR>
    <P STYLE="margin-bottom: 0in">Method 1:</P>
    <BR>
    <P STYLE="margin-bottom: 0in">SOAP REQUEST (Using AddObject command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;UTF-16&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://schemas.xmlsoap.org/soap/envelope/"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;SessionID&gt;08C5BB21-34E3-468E-952F-EEC1CBE19272&lt;/SessionID&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;dis:AddObject
    xmlns:dis=&quot;http://www.sap.com/SBO/DIS"></P>
    <P STYLE="margin-bottom: 0in">               &lt;BOM&gt;&lt;BO&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;AdmInfo&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;Object&gt;oInvoices&lt;/Object&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/AdmInfo&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;Documents&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;row&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;DocDate&gt;20090520&lt;/DocDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;DocDueDate&gt;20090619&lt;/DocDueDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;TaxDate&gt;20090520&lt;/TaxDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Comments&gt;Withholding Tax
    Liable&lt;/Comments&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/row&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/Documents&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;Document_Lines&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;row&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Currency&gt;EUR&lt;/Currency&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/row&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/Document_Lines&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;row&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTCode&gt;S&lt;WTCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/row&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/BO&gt;&lt;/BOM&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/dis:AddObject&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">SOAP RESPONSE (Using AddObject
    command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://www.w3.org/2003/05/soap-envelope"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid XML&lt;/env:Text&gt;&lt;/env:Reason&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;Error&gt;System Id = 18023032,
    Line Number = 1, Column Number = 1064, Description = Expected end of
    tag 'GLAccount'&lt;/Error&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">Method 2:</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">SOAP REQUEST (Using Add Service
    command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;UTF-16&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://www.w3.org/2003/05/soap-envelope"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">     
    &lt;SessionID&gt;1F6C7E11-CC5B-A5F3-0206-D1F4A8B9D84A&lt;/SessionID&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Header&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;dis:Add
    xmlns:dis=&quot;http://www.sap.com/SBO/DIS"></P>
    <P STYLE="margin-bottom: 0in">               &lt;Service&gt;InvoicesService&lt;/Service&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;Document&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocDate&gt;2009-05-20&lt;/DocDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocDueDate&gt;2009-06-19&lt;/DocDueDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;TaxDate&gt;2009-05-20&lt;/TaxDate&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocCurrency&gt;EUR&lt;/DocCurrency&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;CardCode&gt;MULTICURRBP&lt;/CardCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;ContactPersonCode&gt;0&lt;/ContactPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;Comments&gt;Withholding Tax
    Liable&lt;/Comments&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;SalesPersonCode&gt;1&lt;/SalesPersonCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;DocumentLines&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;DocumentLine&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;ItemCode&gt;MON001&lt;/ItemCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Quantity&gt;1.00&lt;/Quantity&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WarehouseCode&gt;cag01&lt;/WarehouseCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;UnitPrice&gt;65.57&lt;/UnitPrice&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;Currency&gt;EUR&lt;/Currency&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;VatGroup&gt;SO&lt;/VatGroup&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTLiable&gt;tYES&lt;/WTLiable&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/DocumentLine&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/DocumentLines&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;WithholdingTaxDataCollection&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTCode&gt;S&lt;WTCode&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;WTAmountFC&gt;14.43&lt;WTAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;TaxableAmountFC&gt;65.57&lt;TaxableAmountFC&gt;</P>
    <P STYLE="margin-bottom: 0in">                              &lt;GLAccount&gt;207032&lt;GLAccount&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;/WithholdingTaxData&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/WithholdingTaxDataCollection&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/Document&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/dis:Add&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>
    <P STYLE="margin-bottom: 0in"><BR>
    </P>
    <P STYLE="margin-bottom: 0in">SOAP RESPONSE (Using Add Service
    command):</P>
    <P STYLE="margin-bottom: 0in">&lt;?xml version=&quot;1.0&quot;?&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;env:Envelope
    xmlns:env=&quot;http://www.w3.org/2003/05/soap-envelope"></P>
    <P STYLE="margin-bottom: 0in">     &lt;env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Code&gt;&lt;env:Value&gt;env:Sender&lt;/env:Value&gt;&lt;/env:Code&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Reason&gt;&lt;env:Text
    xml:lang=&quot;en&quot;&gt;Invalid XML&lt;/env:Text&gt;&lt;/env:Reason&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">                         &lt;Error&gt;System Id =
    134112056, Line Number = 1, Column Number = 1076, Description =
    Expected end of tag 'GLAccount'&lt;/Error&gt;</P>
    <P STYLE="margin-bottom: 0in">                    &lt;/ErrorList&gt;</P>
    <P STYLE="margin-bottom: 0in">               &lt;/env:Detail&gt;</P>
    <P STYLE="margin-bottom: 0in">          &lt;/env:Fault&gt;</P>
    <P STYLE="margin-bottom: 0in">     &lt;/env:Body&gt;</P>
    <P STYLE="margin-bottom: 0in">&lt;/env:Envelope&gt;</P>

  • Create Accounting in invoice and Create accounting in payment terms?

    hi,
    I want to know the difference between create accounting in invoice and create accounting in payment terms and is it compulsory to validate and create accounting in invoice before making payments ?
    Regards
    Sudharshan

    If the accounting method is accrual, then invoice accounting will be Item Expense/Charge -> Liability.
    And payment accounting will be Liability -> Cash (it is different if you have reconciliation also)
    An invoice has to be validated to get accounted or to get paid.
    Payment just need a validated invoice, not an accounted invoice.
    But Payment accounting can be done only after the invoice is accounted.
    By
    Vamsi

  • How to make only some open Invoices visible in Incoming Payments Wizard ?

    I want only to make only some Open Invoices visible in Incoming Payment. Can i use series (Document Numbering) ? Lets say I have SBO in 2 cities and want to user of city A only se open invoices of city A in incoming Payments , and user of city B to see only invoices created in city B . Any ideas ?

    You may use Project code to reach your goal.
    Thanks,
    Gordon

  • Cstomer customer invoice settlement against Incoming payment

    Dear All
    We have a problem during customer invoice settlement against incoming payment that shown for the partial payment as a new document creation. The scenario as shown below,
         Doc No      Amount
    180000001   50000.00 ;   - Invoice
    140000001   25000.00-   - Incoming Payment / partial payment  
    balance         25000.00 ; - create a new doc no ( but we need setoff to invoice no)
    i.e:
    180000001       25000.00
    any BAPI to apply over come this problem ?
    Thanks
    Madhawa

    Dear:
                  Please refer to the following link, the same question was raised by me
                  Invoice reference field in F-28
                  Regards

  • Just updated to Imovie 11 created first video finalized and its gone!

    Just updated to Imovie 11 created first video finalized and its gone! The only file that remains anywhere on the computer is a .rcproject file that wont open in anything including Imovie. There is no record of the file anywhere in Imovie...Help!!! This was my final for a Music class and Im obviously screwed if I dont get this back...THANKS!

    When you finalize a movie, it places finished movies of all available sizes in the Media Browser. It is important to leave the rcproject file where it is in the Movies/iMovie Projects folder. If you have moved it, move it back.
    In iMovie, when you Share to iTunes, or Share to YouTube, etc. ti will use the Media Browser copy so it does not have to re-render. But if you do not Finalize first, no problem, you can still use all those options and cause a render.
    The Media Browser files are contained in the RCPROJECT package. Right click on the rcproject file in the Movies/iMovie Projects folder for your project. Select SHOW PACKAGE CONTENTS. Like in the Movies folder, and you will see your movies.

  • Error importing Incoming Payments using the Data Transfer Workbench

    Every time I try to import Incoming Payments using the Data Transfer Workbench I get an error that the Update Failed - Can not find this object in B1Application-defined or object-defined error65171. I'm using the 3 templates for Payments, Payments_Checks and Payments_Invoices. I've filled them out as I've seen in other postings in this forum. Based on the error message, I really can't tell what I'm doing wrong. Could someone please take a look at my files and let me know what might be causing the error?
    I'm using SBO 2007A PL41. Here's what I have entered in my templates for my test file.
    Payments file
    RecordKey 1
    DocEntry (blank)
    CardCode 1033985
    DocDate 20081215
    DocTypte rCustomer
    TaxDate 20081215
    Payments_Checks file
    RecordKey 1
    LineNum 0
    AccounttNum 0
    CheckAccount _SYS00000002152
    BankCode CC
    Branch 12345
    CheckNumber 1
    CheckSum 78.7
    CountryCode CA
    DueDate 20081215
    Trnsfrable tNo
    Payments_Invoices file
    RecordKey 1
    LineNum 0
    DocEntry 31791
    InvoiceType 13
    SumApplied 78.7
    Thank you.

    Hi Suda,
    As far as I can tell from the threads you forwarded (and other searches I've done on here), my files are correct. I tried filling out the templates exactly as explained in the first link (see my data below) but it still isn't working. It just gives me the same generic error. 
    Payments
    Record Key....CardCode.....DocDate
    1...................1033985.......20081217
    Payments_Checks
    RecordKey....CheckAccount........CheckNumber....CheckSum
    1.................._SYS00000002152..1.....................  78.7
    Payments_Invoices
    RecordKey....DocEntry.....SumApplied
    1..................31791..........78.7
    Is it correct that the Payments file should not contain anything in the DocEntry column? (I know that the DocEntry in my Invoices file is the DocEntry of the Invoice). I have a feeling that I'm making a stupid mistake somewhere but I just can't figure it out. Any ideas?
    I really appreciate your help with this.
    Thanks,
    Charlotte

  • I just created an iCloud email and I want to use that email for my iTunes account as well. I need help suiting the old apple I'd because I do not remember anything associated with that email and I don't know the security questions

    I just created an iCloud email and I want to use that email for my iTunes account as well. I need help switching the old apple ID because I do not remember anything associated with that email and I don't know the security questions or the login for that old email.

    You cannot do that.  The AppleID you used to create the iCloud account is an active primary email address.  The email address you created with the iCloud account is also an active primary email address (all Apple domain email address automatically become AppleIDs as well).  You cannot replace the primary email address on one active AppleID with the primary email address on another, active AppleID.
    You can use your iCloud email/AppleID with iTunes, but it will be a separate account, so all your previous purchases remain tied to the other AppleID you have.
    I don't understand your statement that you could not remeber your old AppleID password, as you would have had to use it to create the iCloud account in the first place (the first step of creating the iCloud account required you to login with your existing AppleID and password)?

  • How can I create a client console and work together with the Cache Server?

    How can I edit the following Cache-Server.cmd file to create a client console and work together with the Cache Server?
    The following is the cache server file: contacts-cache-server.cmd
    @echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\
    coherence\Contacts;C:\home\oracle\coherence\Contacts\classes;
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exitEdited by: junez on 23-Oct-2009 09:20

    Hi
    To run the console, change DefaultCacheServer to CacheFactory
    Paul

  • How to create a Sales Lead and Sales Lead Contact using Web Services

    Hi,
    I am working on integration of sales lead with third party application. I want to create a sales lead and sales lead contact using web services.
    The question is What WSDLs should I use to create Sales Lead and sales lead Contact? And What are the required parameters to pass to that WSDL?
    Please let me know if any information required.
    Thanks and Regards,
    Jason

    Hi,
      Sample soap messages for creating Sales Lead ::
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/types/" xmlns:lead="http://xmlns.oracle.com/oracle/apps/marketing/leadMgmt/leads/leadService/" xmlns:lead1="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createSalesLead>
             <typ:salesLead>
                <lead:Name>Lead Created For Migrration Test4</lead:Name>
                <lead:Rating_c>A</lead:Rating_c>
             </typ:salesLead>
          </typ:createSalesLead>
       </soapenv:Body>
    </soapenv:Envelope>
      Sample soap messages for creating Opportunity ::
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/types/" xmlns:opp="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/" xmlns:rev="http://xmlns.oracle.com/apps/sales/opptyMgmt/revenues/revenueService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/" xmlns:rev1="http://xmlns.oracle.com/oracle/apps/sales/opptyMgmt/revenues/revenueService/" xmlns:act="http://xmlns.oracle.com/apps/crmCommon/activities/activitiesService/">
       <soapenv:Header/>
       <soapenv:Body>
          <typ:createOpportunity>
             <typ:opportunity>
                <opp:Name>Test Opportunity</opp:Name>
             </typ:opportunity>
          </typ:createOpportunity>
       </soapenv:Body>
    </soapenv:Envelope>
    Please revert if you have any clarifications.
    Best Regards,
    Mohd Sabeer

  • Create a Domain Controller and a Child Domain using Powershell

    Is it possible to create a Domain Controller and a Child Domain using Powershell?

    Yes, you can do that:
    WS2008R2 -
    http://technet.microsoft.com/en-us/library/cc731394%28v=ws.10%29.aspx
    http://technet.microsoft.com/en-us/library/cc731873%28v=ws.10%29.aspx - This isn't technically PowerShell.
    WS2012 -
    http://technet.microsoft.com/en-us/library/jj574105.aspx
    EDIT: You've asked this same question a few times now, is there something specific that's giving you trouble?
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • I don't know why but  I create a WEB site and my friends who use a pc windows, have a lot of trouble when they open my movies.  The other friends who use Apple, they don't have problem.  I have iMovie11 and my extension file is .m4v.  Is it because the ex

    I don’t know why but  I create a WEB site and my friends who use a pc windows, have a lot of trouble when they open my movies.  The other friends who use Apple, they don’t have problem.  I have iMovie11 and my extension file is .m4v.  Is it because the extension .m4v is bad for windows ?

    No web site expert here but I would suggest changing the .m4v to .mp4 and ask one of those friends if they still have problems.  .m4v is something I always associate with iTunes and don't really see it used elsewhere.

  • Related to linking invoice document  to incoming payment

    hi all
    i am using sap b1 2005B WITH 36 PATCH
    one of the my customer made invoice on the date(04-12-06) and due date is(3-01-07)
    and he has give incoming pay at the date (20-01-07)
    so  when i am linking the  that invoice to this incominig payment  the error will be generated " SERIES PERIOD DOES NOT MATCH  CURRENT PERIOD"
    what is the solution for this  help me
    regards
    sandip
    Edited by: Marc Riar on Feb 28, 2008 3:23 PM

    Sandip,
    What the error means
    The document numbering series have been linked to a posting period which is not currect
    Have you created the posting periods for 2008?
    If so please verify by going to General Settings > Posting Periods ... Click on the yellow arrow next to the Jan 2008 period and check the Period Indicator and make sure that it matches the one used on Document Numbering for this document.
    Suda

  • Invoice details in Incoming Payment

    Dear All,
    we are making incoming payment against invoice. In Pld for incoming payments i want details of invoice (Invoice Number and Invoice Amount) against which receipt entry is made.
    Ex:
    Account Code...........Account Name......................................................Amount
    A0001.....................ABC
    ..............................Invoice Number 12..................................................1000  
    .....................................................13..................................................1500
    and so on ...
    I have tried in PLD but not able to get the OINV table in PLD. Is there any other option to get this details.
    Swapnil
    Edited by: SWAPNIL PATIL on Mar 20, 2009 9:50 AM

    Dear Friend,
    Which query u sended that working fine for Incomeing Payments. But ih this ur matching
    T1.DocEntry = T2.DocEntry. Means suppose in Income Payment entry there is no Invoice entry then it is not showing. But i want to show that entry also. Please refer the following formatt.
    SELECT T0.DocNum, T0.DocDate, T0.CardCode,T2.DocNum,   T1.SumApplied FROM [dbo].[ORCT]  T0 INNER JOIN RCT2 T1 ON T0.DocNum = T1.DocNum INNER JOIN OINV T2 ON T1.DocEntry = T2.DocEntry
    Formatt:
    Account Code...........Account Name......................................................Amount
    A0001.....................ABC
    ..............................Invoice Number 12..................................................1000
    .....................................................13..................................................1500
    and so on ...
    .................................................................................Total...................2500
    In that suppose Invoice not available in that then Total is not showing. But i want to show Total for Incomeing Payment. Can u plz tell me how to solve that proble.
    Swapnil

  • Customer Aging Report Query (without invoices offset by incoming payment)

    Hi All Experts,
    May I know is there any field from JDT1 mention which invoices is already offset by the Incoming payment or AR Credit note? Because I do not want those invoices that already offset by incoming payment appear at the Customer Aging Report. Meaning, the data appear in the Customer Aging Report is only show those invoices that yet to pay by the customer. Kindly give some advise on it. Thanks a lot.
    Thanks and regards,
    Angie Ng

    Hi David,
    Thanks for your suggestion. I have try it, but all of my JDT1.IntrnMatch is in 0 value. Meaning in my situation it is none of any reconcilliation making. But from my SBO window, i manage to see that actually this incoming payment is pay for which invoices. Problem is it is difficult for me to do the possiblity logic that might be happen in my Customer Aging Report Query. Please give some advise that how to show only those invoices yet to pay? The current query will show all the data no matter the invoices or credit memo has been offset.
    select OCRD.cardcode 'Supplier Code',OCRD.cardname 'Name',sysdeb  'Debit GBP',syscred 'Credit GBP',
    case JDT1.transtype
    when '13' then 'INV'
    when '14' then 'AR CN'
    when '24' then 'INCOMING'
    else 'Other'
    end 'Type',
    Ref1,
    fccurrency 'BP Currency',
    CONVERT(VARCHAR(10), refdate, 103)'Posting Date' ,
    CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
    CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "0-30 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 30
    and (datediff(dd,refdate,current_timestamp))+1< 61)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "31 to 60 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 60
    and (datediff(dd,refdate,current_timestamp))+1< 91)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "61 to 90 days",
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
    then
    case
    when syscred= 0 then sysdeb
    when sysdeb= 0 then syscred * - 1
    end
    end "90 + days"
    from JDT1,OCRD where JDT1.shortname = OCRD.cardcode and cardtype = 'c' and intrnmatch = '0'
    ORDER BY OCRD.CARDCODE, taxdate

Maybe you are looking for

  • Lightroom keeps changing default import location; how to set it once and for all?

    Hi all, I'm on a mac, and coming from iPhoto. After migrating to Lightroom, I made is so my photos imports from my camera into "/Pictures/LightroomMasters/year/month/day".Now, suddenly, I noticed that they end up in "/Pictures/year/month/day". I real

  • Combo box

    Hi, I am using flash cs 5.5. In my demo i crate a xml list .. it contain set of questions.I loaded all of them into combo box. When i finishe answer the question i want to remove the components for the gc. I am albe to remove the Combobox on normal s

  • Project online 2013 odata ssis

    Hi, I am working on project online 2013.I want calculate and fetch start variance ,finish variance when user set the baseline 1. and I want get info of baseline using client object model 2013 in project server 2013 vijay

  • CLM How to add search-help for extension field(New Company Field) in MA.

    Hi all,      Based on demand,I need to extend a new field(Company) in Master Agreement. But I do not know how to add search-help for this field,just like User Accont page. Anyone can help me ?thank you very muck. Regards, JackyCheng

  • Jmap   executable not found  in linux

    I have installed jdk 1.6 in linux long time before, now I want to use jmap to get heap dump, looking under the bin folder there is no jmap, lrwxrwxrwx 1 root root     10 May 21  2012 ControlPanel -> ./jcontrol -rwxr-xr-x 1 root root  50794 Jan 20  20