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>

Similar Messages

  • Problem creating A/R Invoice with Withholding tax data via DI-Server

    Hi!
    Using the following SOAP Request to the DI-Server, I wanted to create an A/R Invoice having a withholding tax data but it always respond with an error saying
    Total taxable amount of all rows exceeds the base amount  [INV5.TaxbleAmnt][line: 1]
    SOAP Request:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header>
        <SessionID>203A3C01-7808-4638-8322-2307DF3C0F8F</SessionID>
      </env:Header>
      <env:Body>
        <dis:Add xmlns:dis="http://www.sap.com/SBO/DIS">
          <Service>InvoicesService</Service>
          <Document>
            <DocType>dDocument_Items</DocType>
            <HandWritten>tNO</HandWritten>
            <DocDate>2010-02-08</DocDate>
            <DocDueDate>2010-02-08</DocDueDate>
            <TaxDate>2010-02-08</TaxDate>
            <VatDate>2010-02-08</VatDate>
            <CardCode>NPI</CardCode>
            <Comments>test di-server soap message 1</Comments>
            <DocumentLines>
              <DocumentLine>
                <ItemCode>TRC</ItemCode>
                <Quantity>1</Quantity>
                <Price>1000</Price>
                <TaxCode>OVAT</TaxCode>
                <VatGroup>OVAT</VatGroup>
                <TaxLiable>tYES</TaxLiable>
                <WTLiable>tYES</WTLiable>
              </DocumentLine>
            </DocumentLines>
            <WithholdingTaxDataCollection>
              <WithholdingTaxData>
                <WTCode>C140</WTCode>
                <TaxableAmount>1000</TaxableAmount>
                <WTAmount>100</WTAmount>
              </WithholdingTaxData>
            </WithholdingTaxDataCollection>
          </Document>
        </dis:Add>
      </env:Body>
    </env:Envelope>
    OVAT rate above is 10%.
    The withholding tax code C140 is setup as
    rate=10,
    Category=Payment,
    Base Type=Net,
    % Base Amount = 100,
    Rounding Type = Commercial Values.
    We are using the New Zealand/Australia localization in SAP B1 2007A PL49.
    The above code can be successful only if I set the <WithholdingTaxDataCollection> node to:
            <WithholdingTaxDataCollection>
              <WithholdingTaxData>
                <WTCode>C140</WTCode>
                <TaxableAmount>0</TaxableAmount>
                <WTAmount>100</WTAmount>
              </WithholdingTaxData>
            </WithholdingTaxDataCollection>
    setting TaxableAmount equal to 0 which is not desired.
    Can anyone extend me some help, please?
    Thanks.

    Albert,
    Did you try adding this via the DI API and not the DI Server?  Do you get the same error?  Please see this SAP Note ...
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=0001303019
    Eddy

  • How to create AP payment terms and withholding tax from backend ?

    Hi All,
    I have a requirement to create the AP Payment terms and withholding tax from backend as the data is going to be uploaded into 15 different instances therefore for the convenience i am looking for any API or Interface to create these from backend.
    Thanks & Regards,
    Mayur

    Hi Gurus,
    Please give me some information on this.
    Thanks,
    Mayur

  • 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

  • How to create the PROFORMA INVOICE

    Hi all,
             How to create the PROFORMA INVOICE.
    T-code?
    Regards,
    T.Muruganantham

    Dear Anantham,
    After completion of the delivery you can create proforma invoice with reference to the delivery document in the transaction VF01.
    You can create Proforma invoice with reference to the Sales order also.
    Go to VF01 transaction enter the billing type as F5 if you want create proforma invoice with sales order.
    or Enter billing type as F8 it you want to create proforma invoice with delivery.
    Before all these things you should have the copy control settings between order to proforma invoice and delivery to proforma invoice
    I hope it will help you
    Regards,
    Murali.

  • How to create item wise invoice with reference to sales order.

    Hi ,
    Please let me know how to create item wise invoice with reference to sales order.
    Ex : Sales order has 2 line items .
              When creating invoice system should create two invoices for each line items.
    I have tried with copy control but I am not able to do it.
    Please advise.
    Regards

    Hi,
    Please let us know your exact requirement. Whether you want it to be fixed like only one line item to be billed every time ot it to be based on selection you do every time.
    As per my understanding it should not be fixed and in that case it should like as follows,
    In VF01 you will select Del. document/S.O. number and click on selection list and will take you to next screen as mention below,
    and select desire line item to be billed and click on copy and will take you to billing screen.
    Regards,
    Ajit K Singh

  • How to create A/R Invoice from draft

    Hi,
              How to create A/R Invoice from documnet draft using DIAPI.
    Thanks,
    P.Suresh Kumar

    Hi Suresh Kumar,
    You may check this as a reference: Re: Problems while saving the tax values in a Draft Document to AP Invoice
    Thanks,
    Gordon

  • Create withholding tax data subsequently for reconciled and open items in c

    Hi All,
    Mine is a US co code and I have a  vendor for which invoice and payment documents are posted. After posting the invoice i found that the vendor is subjected to classic withholding tax which i did not calculate when posting invoice, making payments.
    Now i have changed the vendor master data with relevant withholding tax details.
    I know the program RFWT0020 allows us to create withholding tax data subsequently for reconciled and open items in cases where vendors or customers become liable for withholding tax with a tax rate of 0 %.
    It is not working out for me.
    Can any body help me on this.
    Thanks in advance.

    Dear all,
    by se38 --> report documentation, You can read carefully the following:
    The auxiliary program makes it possible to convert both classic and extended withholding tax data. However, with classic withholding tax, ONLY VENDOR data can be converted.
    In addition, the program enables the withholding tax code to be changed for reconciled and open items with existing withholding tax data. For this, the tax rate of the existing withholding tax data as well as the tax rate of the new withholding tax code must be 0%. The new withholding tax codes are taken from the customer or vendor master data. In the case of extended withholding tax, the withholding tax code is only changed if the related withholding tax categories are the same.  The withholding tax base amount is not changed by this procedure.
    Recreating or changing the withholding tax data requires that the program first be executed for INVOICES and then executed for PAYMENTS in a subsequent step.
    I hope this helps You.
    Mauri

  • Uploading A/R Invoices alongwith Withholding Tax through DTW

    Hi All,
    Did any one tried uploading A/R Invoices alongwith Withholding Tax through DTW? How to fill the Withholding tax data template.
    Regards,
    Siddiq

    Check this thread Import AP invoices with withholding tax

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • How to create  a datasource for 0COSTCENTER to load data in csv file  in BI

    how to create  a datasource for 0COSTCENTER to load data in csv file  in BI 7.0 system
    can you emil me the picture of the step about how to  loaded individual values of the hierarchy using CSV file
    thank you very much
    my emil is <Removed>
    allen

    Step 1: Load Required Master Data for 0CostCenter in to BI system
    Step 2: Enable Characteristics to support Hierarchy for this 0Cost Center and specify the External Characteristic(In the Lowest Node or Last Node) while creation of this Characteristic InfoObject
    Step 3: On Last Node of Hierarchy Structure in the InfoObject, Right Click and then Create Hierarchy MANUALLY by Inserting the Master Data Value as BI dosent Support the Hierarchy load directly you need to do it manually....
    Step 4: Mapping
    Create Text Node thats the first node (Root Node)
    Insert Characteristic Nodes
    Insert the Last Node of the Hierarchy
    Then you need to create a Open hub Destination for extracting data into the .csv file...
    Step1 : Create the Open Hub Destination give the Master Data table name and enter all the fields required....and create the transformations for this Open Hub connecting to the External file or excel file source...then give the location on to your local disk or path of the server in the first tab and request for the data...It should work alright let me know if you need anything else...
    Thanks,
    Sandhya

  • How to create an object of our own class by using Class.forName()??

    how to create an object of our own class by using Class.forName()??
    plzz anser my qustion soon..

    Class.forName does not create an object. It returns a reference to the Class object that describes the metadata for the class in question--what methods and fields it has, etc.
    To create an object--regardless of whether it's your class or some other class--you could call newInstance on the Class object returned from Class.forName, BUT only if that class has a no-arg constructor that you want to call.
    Class<MyClass> clazz = Class.forName("com.mycompany.MyClass");
    MyClass mine = clazz.newInstance();If you want to use a constructor that takes parameters, you'll have to use java.lang.reflect.Constructor.
    Google for java reflection tutorial for more details.
    BUT reflection is often abused, and often employe when not needed. Why is it that you think you need this?

  • How to run RFWT0020 to update withholding tax data

    Can anyone explain the difference between these two options when running RFWT0020 to update withholding tax data? Data Regeneration vs. Changes to Source Tax Code? I can't find any mention of the two options in the program documentation
    When I do test runs with the two different options, the program is selecting difference documents to update. If we are just turning on the 1099 functionality now (beginning with the 2011 tax year), should I run the program once with Regeneration mode and once with Changes to Source Tax Code???
    Thanks for any advice!
    Allison

    Hi,
    he program enables the withholding tax code to be changed for reconciled and open items with existing withholding tax data. For this, the tax rate of the existing withholding tax data as well as the tax rate of the new withholding tax code must be 0%. The new withholding tax codes are taken from the customer or vendor master data. In the case of extended withholding tax, the withholding tax code is only changed if the related withholding tax categories are the same. The withholding tax base amount is not changed by this procedure.
    Recreating or changing the withholding tax data requires that the program first be executed for invoices and then executed for payments in a subsequent step.
    When you start the program, the selection screen appears. You can make selections according to vendors, tax code 1, tax code 2 (vendor master record), customers, tax code 1, tax code 2 (customer master record), company codes, document numbers and posting data. The selection determines which items are checked for possible subsequent entries in tables BSEG, BSAK, BSIK, BSAD, BSID, WITH_ITEM.
    You can also decide whether only withholding tax data is to be handled for cases where the documents in question contain no withholding tax data. There is no withholding tax data if no withholding tax entries exist for the item selected in table WITH_ITEM (extended withholding tax) or the die withholding tax fields in table BSEG are not filled.
    The selection can also be made in test mode. If you do this, no changes are made in the database. You are therefore advised to run the program in test mode initially.
    Regards
    Aditya

  • How to create apple id for mac app store without using credit card and there is no any option for payment none. please tell how to download free apps from mac app store

    how to create apple id for mac app store without using credit card and there is no any option for payment none. please tell how to download free apps from mac app store

    my problem solve by me
    first create apple id
    fill credit card details
    and complete your account creating  process.
    than go to app store or itune store
    login your acount
    click right side  - account button
    than again login for account setting
    next go to payment information and click edit button
    when u enter payment infomation
    click none button in payment method and click done button.
    than ur credit card has been removed.
    but rs. 60 will deducted in your account when u doing this process.

  • 1099 Withholding Tax data

    hi,
    how do we delete the withholding tax data for a document after it has been cleared. user has mistakenly entered the invoice as withholding  but  it should not.
    how can we fix this.
    Thanks
    Sivaram

    Hi
    you have to reverse and reset clearing  the document  with FBRA  and post again without witholding tax.
    BR Tarik

Maybe you are looking for

  • File Not Found error in Citrix Server

    I have a client who is running an application through Citrix that uses Crystal Reports, and the application is erroring out when trying to load a report, ONLY when the user does not have anything mapped as their C:\ drive. The default setup at this c

  • Sync iPhone 4G to my MacBook Pro

    When I sync my iPhone 4G to my MacBook Pro, the address book updates on my iPhone do not populate to my MacBook Pro?...HELP!

  • Data conversion program

    can u give idea about data conversion program for inventory management program stocks,which reads legacy extract file and the valuation master file from pc gets issue storage location valuation details and output a file with these details regards, ph

  • Only One domain controller, Remote Registry service keeps DISABLING itself. Where in the registry could this be set?

    This is killing my remote management. I have 4 server 2012R2 domain controllers.  Only one of them is being affected with this problem.  Almost everytime I check, the remote registry service is disabled again.  It seems like there is a corrupt group

  • Mouse being weird

    In minecraft, when i try to pick up an object in a chest it doesnt let me and i have to manually hold left click and move it into my inventory.  This is not normal.  It all started when i attached my moshi hdmi converter into my mac book pro.  I trie