Post document with BAPI_ACC_DOCUMENT_POST with withholding taxes

Hi everyone!
I have to post some documents that I got from an Excel file. At first, they were G/L documents, so I only filled the table parameter ACCOUNTL of BAPI_ACC_DOCUMENT_POST to set the "account data" (without using ACCOUNTRECEIVABLE, ACCOUNTPAYABLE, ACCOUNTTAX or ACCOUNTWT).
After a few, another Posting Keys were allowed in the lines of the documents obtained from the excel file, so the documents can be G/L documents, receipts, etc.But, I still put every account data in ACCOUNTGL, and the created documents were right (at least nobody complained about them :P ).
No, 3 fields have been added in the excel file:
- QSSHB: Withholding Tax Base Amount
- QSFBT: Withholding Tax-Exempt Amount (in Document Currency)
- QSSKZ: Withholding Tax Code
As I understood, this BAPI is ready to allow withholding taxes, and I suppose I should have to fill this fields that I receive into some tables that are used as parameters in the BAPI. For example,
ACCOUNTWT-WT_CODE = Withholding Tax Code
ACCOUNTWT-BAS_AMT_LC = Withholding Tax Base Amount (Local Currency)
I think I should use this table (I don't know where I could "put" the other one). My question is, can I do that without using tables ACCOUNTRECEIVABLE and ACCOUNTPAYABLE? My feeling is that is not completely right not to use these tables if the documents are vendor or customer documents... If that's possible.. is it right to put the 2 fields that I have used in the last example (*) to fill that? Where I should put the third field??
I hope I have explained myself clearly, thanks in advance,
Victor

Dear Sreeraj,
The situations would be multiple, but to be precise I'll provide you one scenario where this BAPI would be failing to do the posting. The scenario is like this:
1. If you consider GL posting using F-02 by changing any of the reference fields XREF1, or XREF2, the BAPI has to consider the varying screens of each of the line items which internally depends on Transaction Variants of different screens of the Document, which the BAPI will fail to do so.
2. Also, if there is a Taxation to be done for each Item, still it should consider the above scenario and fill the WITH tables accordingly.
Hope this helps,
Regards,
-Wahid Hussain.

Similar Messages

  • How to post a PARK document with Withholding Tax

    Hi All,
    I have parked a document using FB60.Vendor is subject to withholding tax.Now,when i am posting the document through FBV0,the error message displayed is :
    "Field BSEG-SECCO does not exist in the screen SAPMF05A 0303".
    The error message says that Section Code (Withholding Tax) is missing for Special G/L Indicator Line Item.I dont have provision to enter section code in the screen.
    My entries are :
    29J Vendor a/c  Dr.
    50   XYZ a/c
    If i using F-02 and not parking ;then it is getting posted.
    Note: Line Item is a special G/L Indicator
    Please advise how to post a park document using FBV0 with special g/L Indicator and vendor is subject to withholding tax.

    Hi Parag,
    Section code field doesnot exist in the special G/L indicator line item of the document.So,i cannot enter it.
    But,when posting the parked document ,it is asking for Section Code.
    The error message displayed is:
    "Field BSEG-SECCO. does not exist in the screen SAPMF05A 0303"

  • 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

  • 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.

  • 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

  • G/L account item without tax code in document with deferred taxes

    Hi ,
    While releasing the billing document to accounting i get this error " G/L account item without tax code in document with deferred taxes". Not able to release it to accounts. What could be the possible reason??
    Actually, this error is occuring only when i am using a Discount Condition (Z Condition).
    Please guide what could be the problem in the Discount Condition?
    Thanks and Best Regards

    whats this Z condition type. Is it  a tax condition type. If yes , please check the tax code assigned to this in the condition type defintion (VK12) and in FTXP check if this code is assigned with Account key.
    Also in the pricing procedure, if this condition is Active (not statistical) whats the account key assigned to it. Then check  whats the GL Account assigned to this Account key (VKOA).
    Then in FS03 , check this GL account number and under "Control Data" whats the Tax category maintained. You can have a * for the tax category here.
    Hope this helps
    Regards
    Sai

  • How to update the posted documents with Business Area wise

    Dear experts
    Please suggest me how to update the posted documents with Business Area wise
    Ajeesh.s
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Nov 2, 2011 2:26 PM

    Hi,
    Select all your folders in Disco Administrator,ALT+ENTER to go to properties, then change the database from the default database to the remote database.
    Hope that helps,
    Rod West

  • Posting documents with in f110

    Dear gurus:
                        I am new to SAP Financial accounting module and a learner. I have IDES access and i faced the follwoing difficult situation while posting outgoing payment in F110 by executing a payment proposal. The system is posting document with document dates entered in them but i want that system should post the documents with posting date at proposal run date. Can expert throw some light on this how to accomplish this.
    Regards

    HI
    Link is Atif told is as Under
    partial payment in f110
    Mann

  • Mismatching of HR posting document with ZSAL Report

    Can anyone tell me how to resolve this issue. Actually when i am running the posting run its happening quite fine but there is a mismatch of the figures in the HR posting document with the Zsal report. Kindly help me resolve the issue at an earliest.
    Regards
    Jainab Fatima

    Dear Jainab,
    There might be a few heads that are missing in your ZSAL Report, For accuracy take help of PC00_M99_CWTR and compare the amount picked from this report.
    Thanks,
    Bhabagrahi

  • While posting truncation in   *j1incust* (enter withholding tax certificate

    Dear experts
    while posting truncation in   j1incust (enter withholding tax certificate from customer ) am getting this error
    No unpaid tax lines exist for the given selection criteria.
    Message no. 8I702
    Diagnosis
    The corresponding withholding tax line  &1& is not present in WITH_ITEM table.
    System Response
    For withholding tax recovered from the vendor, tax line is present in table BSIS, but the corresponding entry is missing in table WITH_ITEM , which is necessary for challan updation. Check the entries.
    Procedure
    check entries in table WITH_ITEM for the open tax items chosen for clearing.
    thankx in advance
    Ajeesh.s

    Dear,
    This happens mainly due to wrong or no business place assignment at invoice or payment.
    Try to update the business place and run teh program. You can update the business place using J1INPP.
    check also whether the TDS account is maintained on Open Item basis.
    regards

  • 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.

  • 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

  • Automatic posting of With holding tax

    Hi
    While making an entry in TC-F-51 (post with clearing) by selecting transfer posting with clearing under (transaction to be processed) with posting key 31(vendor invoice) the following message appears.
    Withholding tax information ignored.Hence the TDS amount is not getting deducted automatically.Pl. advice what i need to do.
    Thanks
    shivaji

    Hi Shankar,
    The actual scenariao is like this:
    1. Provision for expenses is created with the help of a BDC program which is not the actual expenses.
    Dr Expenses A/c         10,000
    Cr Vendor Clearing A/c 10,000
    2. In F-51, the following entry is passed:
        Vendor Clearing A/c   Dr  10,000
        To Vendor Payable            9000
        To Expenses                     1000
    The purpose of using F-51 is to have a control over the Vendor Clearing a/c.
    3. For TDS the following entry is passed manually:
        Vendor Payable a/c  Dr  9000
        To Vendor                     8500
         To TDS                         500.
    The REQUIREMENT is to pass the TDS entry in F-51.
    Kindly advise any other alternative solutions also.
    Thanx

  • Cannot create AR Invoice negative amount with WithHolding Tax negative amount via DI API

    Hi All,
    I tried to create AR Invoice Document via DI API, but with negative amount and negative withholding tax amount.
    Document added successfully, but when i open the document in SAP, and i open WTax Table information, withholding tax amount become zero,
    Please see image below.
    But when i add the same document through SAP Screen, i can fill WTax Amount with negative amount.
    SAP Version 9.0 PL 5
    Please kindly help,
    Thanks
    Best Regards
    Siddharta

    Hello.
    If this is different to the behavior of the B1 application it should be considered a bug - like any such difference between DI API and app.
    HTH

  • Posting document with profit segment values (FB01)

    Hi Experts,
    I have a req. to post a document with profit segment parameters in FB01. Please help me if any BAPI or FM exists for the same.
    I have searched for profit segment parameters in bapi_acc_document_post, but i didnt find any fields to pass
    BL , sales office,  curr, customer status and service fields in BAPI.
    Thanks and regards,
    Ravi

    You can use the strcuture EXTENSION1 of BAPI_ACC_DOCUMENT_POST alongwith the implementation of BTE "RWBAPI01". See the Wiki post [Business Transaction Event - RWBAPI01 - For Accounting Document Interface|http://wiki.sdn.sap.com/wiki/display/ABAP/BusinessTransactionEvent-RWBAPI01-ForAccountingDocument+Interface] for reference.

Maybe you are looking for

  • Online redo logs on a physical standby?

    A question on REDO logs on physical standby databases. (10.2.0.4 db on Windows 32bit) My PRIMARY has 3 ONLINE REDO groups, 2 members each, in ..ORADATA\LOCP10G My PHYSICAL STANDBY has 4 STANDBY REDO groups, 2 members each, in ..ORADATA\SBY10G I have

  • BADI after changing the User name

    Dear All, We have the scenario of Contact person and Interner User as in B2B. I have a scenario wherein if the user changes the username /UserAlias the contact person would get an email notification. Please help. Thanks MP

  • Unable to Install New version of iTunes due to Bonjour.

    Okay, I was trying to install the new version of iTunes for my ipod nano w/camera i just bought. While i was downloading, i had to download a newer version of Bonjour. When i tried to it said " Older version of Bonjour cannot be removed." I have hear

  • Absolute function

    hi,    Some one please help in finding the equivalent function module for WS_QUERY. Girish.

  • Results analysis: any way to exclude certain cost element from calculation?

    Hi everyone! We are implementing Results Analysis for projects. But the client is asking if there is a way to exclude some cost elements of the results analysis calculation. We are using method 07, POC based in the project milestones. This is why the