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

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>

  • F110: how to pay an invoice with Withholding Tax and a credit memo?

    Hi All,
    in my SAP I've defined a Withholding Tax type for Payment Posting.
    I've posted a vendor invoice with with Withholding Tax.
    Later I've posted a credit memo with Withholding Tax which must compensate the prevuois invoice.
    When I launch t.code F110, SAP, in the right manner,  proposes to pay the invoice less the amount of the credit memo. 
    But the calculation of the Withholding Tax (that it should post al the payment time) is wrong: SAP proposes to post the amount of the Withholding Tax recorded in the table WITH_ITEM at the moment of the posting of the invoice. Instead, from it, SAP should detract the amount of the Withholding Tax recorded in the table WITH_ITEM at the moment of the posting of the credit memo.
    Why does SAP doesn't consider the amount of the Withholding Tax of the credit memo?
    Could anyone help me?
    Thanks

    Dear Rossi,
    if You defined the WT TYPE at the payment time this means that the WT amount will be calculated at posted during the F110 run as per the invoice as per the credit memo.
    If they are the same amounts and refer to the same wt type and code, when You run F110, they should match even for the WT calculation. It is clear that if You inserted manually the WT base amount or the WT amount into the invoice, the system will not do any automatic calculation but it will use these amounts that can be different from the one auto matically calculated by the system for the credit memo.
    I hope this can help You.
    Mauri

  • How to clear line items with withholding tax manually

    hi Experts,
    i posted a vendor invoice with withholding tax and i made payment as well but not through f-58.
    now i wanted to clear these two through f-44 but it gives the message withholding tax information ignored and didnt display the invoice as open item.
    how do i clear both the trasactions
    regards
    suresh

    hi Praisty,
    thanks for the reply
    i have a second opinion on your statement that no matter whatever tcode you use for payment it will clear the open item. Even in F-58, if u make partial payment it will not clear you open item. But i didnt use f-58 as i said earlier.
    i used FBV1 for parking the document through which i entered the payment details...ofcourse it doesnt have the option for clearing the open items, cheque printing and it will not update your cheque register. i posted the parked document through FBV0. for all practical purposes, this is my payment document but it didnt clear my open item, in order to clear it i now used f-44.
    regards
    suresh

  • 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

  • Issues with Withholding tax on advance paid

    Dear Experts
    Our client deducts TDS on the Advance amount paid and on posting of Invoices from the Vendors. The documents are posted with withholding Tax types configured for this purpose in F-48 and FB60 respectively. Document splitting has been activated in the system with all required configuration.
    The problem arises when we try to clear the advance amount against the Invoice along with the balance payment in F-53 if the invoice has more than one expense line posted to different Cost Centers in FB60. The system gives an error message " Balancing field "Profit Center" in line item 004 not filled ". Please follow the example given below for better understanding.
    Advance posting:
    vendor a/c....dr (Profit center 3)
    To bank Clearing (Profit center 3)
    To TDS on payment
    Invoice:
    Expense ....dr (Cost Center1 / profit Center 1)
    Expense ....dr (Cost Center 2 / Profit Center 2)
    To vendor a/c
    To TDS on Invoice
    Up to here the document splitting works fine with Profit Centers and segments getting displayed in all line items in GL view. The issue comes when we select both the documents in F-53 and try to pay out the balance amount.
    Please note the issue does not crop up if we do not populate the withholding tax code while posting the advance entry. The system automatically posts to the relevant profit centers and segments in F-53. But this is not the business scenario.
    It would be really helpful if somebody can throw some light on the above issue.
    Thanks in advance.
    Edited by: sid_das on Dec 14, 2011 11:26 AM

    Resolved at our end.

  • Error while posting A/R Downpayment Invoice with Excisable Tax Code.

    While posting A/R Dowpayment Invoice with Excisable Tax Code error of "Unbalanced Transaction" appears. This error does not occur while posting A/R Downpayment Invoices with Non-Excisable Tax Codes.
    Kindly provide a solution for the same.

    SAP Note Number: 1179405
    Error -5002 when trying to copy a document with Sales BOM
    In order to create the delivery via the DI, you need to set the oDoc.Lines.BaseLine value to the LineNum value from the RDR1 table (in the above example you should enter the value 2).
    we set oDoc.Lines.BaseLine=0 before starting the lines loop. This has resolved the issue.
    This note was really helpful and it was found in another query.
    You can also refer to this. https://forums.sdn.sap.com/click.jspa?searchID=19070513&messageID=6178079
    Thanks.
    Edited by: Sadanand Manda on Nov 24, 2008 12:16 PM

  • BAPI_ACC_DOCUMENT_POST for debtor with withholding tax

    Hello,
    I'm using the BAPI_ACC_DOCUMENT_POST to generate debtor invoices applying withholding tax.
    In order to obtain the withholding tax information, I'm using structure ACCOUNTWT, but when the document FI is generated, it has not line item for withholding tax, and table WITH_ITEM has no values for basis amount and withholding tax import, though the withholding indicator is there.
    With help of a colleague from basis team, I've been debugging the process and all the parameters seem to be OK. So I guess there's something missing that is doing table WITH_ITEM is being informed incorrectly.
    Another point is that I'm not sure if it's necesary to inform component SECTIONCODE (Withholding tax section) in structure BAPIACAR09 (Debtor position), and in this case, which value it expects to be passed.
    Could you, please, help me with this issue? Any idea will be welcome.
    Many thanks in advance.
    Best regards,
    Miriam.

    Hi Maurizio,
    Many thanks for your reply!
    I've checked the parameters you said, and they seem not filled. I'm going to ask a basis colleague for analyzing what's missing and doing the corresponding modifications.
    Thank you very much once again
    Regards,
    Miriam.

  • 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

  • Clear Withholding tax data while posting customer invoice

    Gurus,
    I am trying to post Customer invoice document using FB01 transaction.
    If the customer has with holding tax information available in Customer Master the corresponding information is getting posted into invoice document.
    Is there any user exit, enhancement or substitution available to clear this with holding tax data.
    Please do share if any code examples on this issue.
    Appreciate your quick response.
    Thanks,
    Suneel

    Dear AMD008
    were you maintain properly in OB40 MWS (out put tax) relevant GL Account
    Note: are you using NEW GL please conform me
    Regards
    shankar

  • Standard LSMW for open vendor items with Withholding tax

    Hi All,
    I am searching the direct input LSMW which is having the Withholdig tax. There is a direct input program in LSMW ( RFBIBL00) but it is not uploaded the withholding tax for open vendor and open customer items.
    If anybody know which LSMW is recammanded or anthing related to BAPI or IDOC for this requirements.
    Dhiraj.

    Hi
    If you need to upload the WT tax you have to fill the structure BWITH of std BI RFBIBL00, so your LSMW project should create a file like this:
    ---> Session data
    BGR00
    ---> Document data
    BBKPF (Header data
    BBSEG (Vendor or customer item)
    BWITH (Withholding tax data)
    BBSEG (G/L item)
    Max

  • 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 can I create a reserve invoice with DI API?

    HI,
    I need to create a reserve invoice with DI API, how do I this?.  I have SAP B1 2005A.
    Sorry for my english.
    Thank's.

    Hi César,
    Unfortunately, I think the reserve invoice is only available in the DI API in version 2007A.
    Kind Regards,
    Owen

  • BAPI_INCOMINGINVOICE_CREATE: Withholding tax data is not coming

    Dear all,
    I am using this BAPI to create Incoming Invoice. I am populating the Headerdata and Itemdata table. Then the invoice which is created doesnt have Withholding Tax Data Information.
    Even I tried to populate withtaxdata table, but didnt find the soln.
    The code is as shown below:
      DATA: t_headerdata LIKE STANDARD TABLE OF bapi_incinv_create_header WITH HEADER LINE,
            t_itemdata   LIKE STANDARD TABLE OF bapi_incinv_create_item WITH HEADER LINE,
            t_withtaxdata  LIKE STANDARD TABLE OF bapi_incinv_create_withtax WITH HEADER LINE,
            t_return     LIKE STANDARD TABLE OF bapiret2 WITH HEADER LINE,
            v_invoicedocnumber LIKE bapi_incinv_fld-inv_doc_no,
            v_fiscalyear LIKE bapi_incinv_fld-fisc_year,
            v_bukrs TYPE bukrs.
      DATA: v_knumv LIKE konv-knumv,
            v_kschl LIKE konv-kschl.
    LOOP AT itab1.
        tabix = 0.
        IF tabix = 0.
          LOOP AT itab2 WHERE ebeln = itab1-ebeln.
            MOVE-CORRESPONDING itab2 TO itab3.
            APPEND itab3.
          ENDLOOP.
          tabix = 1.
        ENDIF.
        SORT itab3 BY ebelp.
        count = 0.
        v_netamt = 0.
        LOOP AT itab3 WHERE ebeln = itab1-ebeln.
          v_menge = v_menge + itab3-tot_ton.
          v_dmbtr = v_dmbtr + itab3-frt_amt.
          AT END OF ebelp.
            count = count + 1.
            t_itemdata-invoice_doc_item = count.
            READ TABLE itab3 WITH KEY ebeln = itab1-ebeln
                                      ebelp = itab3-ebelp.
            IF sy-subrc = 0.
              t_itemdata-po_number   = itab3-ebeln.
              t_itemdata-po_item     = itab3-ebelp.
              t_itemdata-item_amount = v_dmbtr.
              t_itemdata-quantity    = v_menge.
              t_itemdata-po_unit     = itab1-meins.
              t_itemdata-item_text   = itab1-text.
              t_itemdata-tax_code = 'V0'.
    *Condition Type
              SELECT SINGLE knumv
                            FROM ekko
                            INTO v_knumv
                            WHERE ebeln = itab1-ebeln.
              IF sy-subrc = 0.
                SELECT SINGLE kschl
                              FROM konv
                              INTO v_kschl
                              WHERE knumv = v_knumv
                              AND   kposn = itab3-ebelp
                              AND   ( ( kschl = 'FRC1' ) OR ( kschl = 'FRB1' ) ).
                IF sy-subrc = 0.
                  t_itemdata-cond_type = v_kschl.
                ENDIF.
              ENDIF.
              APPEND t_itemdata.
              CLEAR: v_menge, v_dmbtr.
            ENDIF.
          ENDAT.
          v_netamt = v_netamt + itab3-frt_amt.
        ENDLOOP.
        t_headerdata-invoice_ind = 'X'.
        t_headerdata-doc_date    = itab1-inv_date.
        t_headerdata-pstng_date  = itab1-budat.
        t_headerdata-ref_doc_no  = itab1-refno.
        SELECT SINGLE bukrs INTO v_bukrs FROM ekko WHERE ebeln = itab1-ebeln.
        IF sy-subrc = 0.
          t_headerdata-comp_code   = v_bukrs.
        ENDIF.
        t_headerdata-currency    = itab1-waers.
        t_headerdata-gross_amount = v_netamt.
        t_headerdata-bline_date  = itab1-budat.
        t_headerdata-item_text   = itab1-text.
        t_headerdata-diff_inv = itab1-lifnr.
        t_headerdata-business_place = '1000'.
       APPEND t_headerdata.
       t_withtaxdata-wi_tax_type = 'C1'.
       t_withtaxdata-wi_tax_code = 'C1'.
       t_withtaxdata-wi_tax_base = v_netamt.
       APPEND t_withtaxdata.
       t_withtaxdata-wi_tax_type = 'C2'.
       t_withtaxdata-wi_tax_code = 'C2'.
       t_withtaxdata-wi_tax_base = v_netamt.
       APPEND t_withtaxdata.
       t_withtaxdata-wi_tax_type = 'C3'.
       t_withtaxdata-wi_tax_code = 'V3'.
       t_withtaxdata-wi_tax_base = v_netamt.
       APPEND t_withtaxdata.
        CLEAR: v_netamt.
        break bsfdev.
        CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
          EXPORTING
            headerdata                = t_headerdata
        ADDRESSDATA               =
       IMPORTING
         invoicedocnumber          = v_invoicedocnumber
         fiscalyear                = v_fiscalyear
          TABLES
            itemdata                  = t_itemdata
        ACCOUNTINGDATA            =
        glaccountdata             =
        MATERIALDATA              =
        TAXDATA                   =
        withtaxdata               = t_withtaxdata
        VENDORITEMSPLITDATA       =
            return                    = t_return
        CLEAR errflag.
        LOOP AT t_return.
          IF t_return-type EQ 'E'.
            it_message-text = 'Error in function'.
            it_message-text1 =  t_return-message.
            it_message-po_number = itab1-ebeln.
            it_message-exnum = itab1-exnum.
            APPEND it_message.
            errflag = 'X'.
          ELSE.
          ENDIF.
        ENDLOOP.
        IF errflag IS INITIAL.
          COMMIT WORK AND WAIT.
          IF sy-subrc NE 0.
            it_message-po_number = itab1-ebeln.
            it_message-text = 'Error in updating'.
            it_message-text1 =  t_return-message.
            APPEND it_message.
            EXIT.
          ELSE.
    *Fill Temporary table
            LOOP AT itab3.
              IF v_invoicedocnumber <> space.
                it_message1-po_number = itab3-ebeln.
                it_message1-po_item   = itab3-ebelp.
                it_message1-doc_number = itab3-belnr.
                it_message1-invoicedocno = v_invoicedocnumber.
                it_message1-exnum = itab1-exnum.
                APPEND it_message1.
                zpending_challan-po_number    = itab3-ebeln.
                zpending_challan-po_item      = itab3-ebelp.
                zpending_challan-doc_number   = itab3-belnr.
                zpending_challan-exnum        = itab3-exnum.
                zpending_challan-invoicedocno = v_invoicedocnumber.
                zpending_challan-menge        = itab3-tot_ton.
                zpending_challan-dmbtr        = itab3-frt_amt.
                zpending_challan-budat        = itab3-budat.
                INSERT zpending_challan FROM zpending_challan.
                COMMIT WORK.
                CLEAR: zpending_challan.
              ENDIF.
            ENDLOOP.
          ENDIF.
        ENDIF.
        IF errflag IS INITIAL.
          count = count + 1.
          CONCATENATE count 'Purchase Order Posted Out of '  no_recs1
                            INTO text1 SEPARATED BY space.
          CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
           EXPORTING
      PERCENTAGE       = 0
             text             = text1
          CONCATENATE 'Invoice Document No' v_invoicedocnumber 'generated'
                                            INTO text1 SEPARATED BY space.
          CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
           EXPORTING
      PERCENTAGE       = 0
             text             = text1
        ENDIF.
        CLEAR: t_headerdata[], t_headerdata,
               t_itemdata[], t_itemdata,
               itab3[], itab3.
      ENDLOOP.
    Kindly help. Its very urgent.
    Thanks.
    Vinod.

    Not used any more

  • 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

  • Publishing to wrong location

    When I am trying to publish my site via the new iWeb 09 integrated FTP publisher I am getting some weird results. I just want to publish my site to the public directory of my webspace (/public_html/ or just "/") but for some reason iWeb keeps publish

  • QT Movie won't drop into iDVD  HELP!

    Of course I'm down to the last minute again: I've got a 540 KB QT Movie exported in full quality DV from iMovie 3.03. Upon opening iDVD 2.1 and attempting to import or drag and drop the QT movie from my desktop, iDVD appears to do nothing and a butto

  • Do i need a genuine apple mini display to hdmi port?

    considering putting the display from my macbook pro (2011) to my tv and i was just wondering if needed a genuine apple mini dispaly to hdmi adaptor or if i could buy a third party one? cheers

  • Data Link after data migration

    Hello All, In a scenario during data migration from R/3 to Ecc. If we migrate the data related to orders, deliveries, invoices separately, how will we able to link these orders, deliveries and invoices after migration. As we will be giving new number

  • HT201272 If I purchased an HD version of a movie, can I download the SD version for free?

    Want to play a movie through my laptop to a non-HD projector, which is apparently impossible.  Do I have to PAY again to download the SD version?