Get Withholding Tax Line Item Using FM

Hi all,
Is the any FM that allows me to get withholding tax line item (in table WITH_ITEM) based on the line item in BSEG? What I want from the result is that it will be able to tell me which line item in WITH_ITEM belongs to which line item in BSEG.
Thanks for helping out.
Regards,
Goh Tiam Tjai

Hello,
I've found a way to do it, and considering that I could not find the answer in SCN I'll post it.
I've created a report to show the calculated WHT which would be posted only at the payment moment. Also, in Brazil we work with extended WHT (and not the classic one).
You will need an ABAP.
Create a Z function module as copy of ZFI_WT_FB05_CALCULATE_WT.
This FM has only input parameters, therefore it does not provide you with the calculated WHT as an output (as standard). Knowing this, it is necessary to change it (the FM) by summing all T_WITH_ITEM-WT_QBSHH per accounting document (this table is present in the standard FM).
You need to provide the logic in order to obtain the parameters, The field which need to be filled are:
I_AKTYP              =             "H”
I_DYNCL              =             "Z”
Table I_POSTAB
Pick the data below from BKPF/BSEG of the accounting document which needs WHT to be calculated:
BELNR 
BUKRS
GJAHR
BUZEI
WAERS
BUDAT
BLDAT
BSCHL
KOART
SHKZG
DMBTR
WRBTR
KONKO
XAKTP = "X"
XAKTS = "X"
Table  I_BKPF
BUKRS
GJAHR     = year of the system date
BLART     = KZ
BLDAT     = system date
BUDAT     = system date
MONAT     = period of the system date
TCODE     = FBZ2
WAERS
Then after changing the FM to have T_WITH_ITEM-WT_QBSHH as output, simulate it by inserting the values of the accounting document which has WHT, and check the result, if it is the same as calculated by F-53 or F110.

Similar Messages

  • Withholding tax line items are not post

    Hi,
    I was configured all the steps for extended withholding tax up to Assign withholding tax to vendor master data
    and the i am used to post an vendor invoice
    given all required feild and press enrer and display the withhoding tax codes screen here also press enter button ....  i entered all required field and go to simulation this posting i am getting only 2 line items
    like for eg: --- Inventory Debit ,   Vendor Credit  only
    here my problem is i am not getting the all with holding tax line items
    please hepl
    Sree

    Dear Sree,
    if You defined the WT type at the payment time, the WT line items will be created at the payment time and not during the invoice posting.
    Please check.
    Mauri

  • Withholding Tax line item in Vendor Invoice (F-43)

    I am implementing EXT Withholding Tax for a client.  I have made all the settings but while doing the invoice after selecting the withholding tax codes for the vendor, system is not showing any line items for the withholding tax. 
    I have made the settings like this:
    Defined business place, section codes, withholding tax keys, tax types, tax codes, applied the tax codes in the vendor master with 'liable' tick, defined in the tax code the posting indicator 1 for posting separate line item and activated the Ex Withholding tax in the company code.  I have also made the field status of withholding tax as optional for posting key as well as FSV for GL accounts involved in the postings.  Also made the vendor account group field status as optional for Withholding tax postings.
    I am not getting where I have missed.  System is also not shooting any error.
    Please share your views.

    Hi,
    Did you do Configuration steps of Extended Withholding Tax(EWT) as follows.
    1.Define withholding tax type for invoice posting
    IMG----->financial accounting>financial accounting global settings>withholding tax---->
    Extended withholding tax-->calculation>withholding tax type--
    >define withholding tax
    type for invoice posting
    2.Define withholding tax type for advance posting
    IMG----->financial accounting>financial accounting global settings>withholding tax---->
    Extended withholding tax-->calculation>withholding tax type--
    >define withholding tax
    type for payment posting
    3.Define withholding tax codes
    IMG----->financial accounting>financial accounting global settings>withholding tax---->
    Extended withholding tax-->calculation>withholding tax codes--
    >define withholding tax
    codes
    4.Define formulas for calculating withholding tax
    IMG----->financial accounting>financial accounting global settings>withholding tax---->
    Extended withholding tax-->calculation>withholding tax codes--
    >define formulas for calculating withholding tax
    5.Assign Withholding tax type to company code
    IMG-->Financial accounting--->financial accounting global settings>withholding tax----->
    extended withholding tax-->company code--
    >assign Withholding tax type to company code
    6.Activate extended withholding tax
    IMG-->Financial accounting--->financial accounting global settings>withholding tax----->
    extended withholding tax-->company code--
    >activate extended withholding tax
    7.Assignment of accounts for automatic posting-----OBWW
    IMG---->financial accounting--->financial accounting global settings>withholding tax--->extended withholding tax>postings>accounts for withholding tax--
    >define accounts for withholding tax to be paid over
    8.Maintain company code settings for india
    IMG----->logistics-general--->tax on goods movements>India>basic settings--
    > maintain company code settings for india.
    9.Assign tax codes in vendor master----
    XK02
    Regards
    Venkat

  • In F-53, the Withholding tax line item is not geting calulated

    Hi All
    I have created a tax code for payment.
    while making payment through F-53, i dont see a sepreate line item getting created for for Tax(Withholding)
    When i double click on the vendor line item and check on the Withholding tax option box, its shows  as below
    Tax code: w3
    Tax base: 15000
    Tax amount is 0(Zero)
    can you please advise which setting i have missed

    Hi Priyanka,
    TDS is calculated at the time of Invoice or payment whichever is earlier..so if it is not getting deducted at the time of payment it is absolutely correct, until and unless it is not Advance payment.
    Even then if you want to know why....go to FK02>Witholding tax tab> the tax Code for Witholding Tax type for Payment must be blank. Check that..
    Regards,
    SAPFICO

  • WH  tax line items cleared along with Other line items Message no:8I701

    hI guru,
    When i run J1INCHLN  System givem the error is : Withholding tax line items cleared along with other line items, message no:8I701
    Pleas any one give solution ..
    I also cheked as respective g/l for tds IN FBL3N . All line items are opend.
    Also cheked all selection parameter in J1INCHLN  and FBL3N .is same .
    Why the sys behaviour like this .
    Thanks is andvance
    Milind

    HI,
    he error is occuring in this part of the
    unction Module J_1IEWT_CHALLAN_UPDATE
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    LOOP AT p_t_ausz1.
    Select the cleared line item from bseg table.
       SELECT SINGLE * FROM bseg INTO  p_bseg_tab
                WHERE bukrs = p_t_ausz1-bukrs
                AND   belnr = p_t_ausz1-belnr
                AND   gjahr = p_t_ausz1-gjahr
                AND   buzei = p_t_ausz1-buzei
                AND   ktosl = 'WIT'
                AND   qsskz NE space .
       IF sy-subrc <> 0.
    This is not an ewt clearing transaction relevant for challan update.
         p_no_with_clear = 'X'.
         EXIT.
       ELSE.
         APPEND p_bseg_tab.
       ENDIF.
    ENDLOOP.
    Even if one line item chosen is not of withholding tax entry, system
    should exit by error message.
    DESCRIBE TABLE p_bseg_tab LINES  p_bseg_lines.
    DESCRIBE TABLE p_t_ausz1  LINES  p_with_lines.
       IF p_bseg_lines > 0.
    At least one entry is found in bseg table for challan update.    IF p_with_lines NE p_bseg_lines.
    At least one line chosen by the user is not for challan updation.
          MESSAGE e701(8i).
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
    This is a clear case,that you are trying to post some documents
    which does not match with the selection parameters.
    I feel the above problem could be due to some document/s (open items of
    the earlier years)are incorrect which is causing the reported problem.
    Kindly run the challan update program for smaller date range so that you
    can find the faulty document.
    Hope this solves your query.
    Reg
    Madhu M

  • Withholding tax lines are being cleared along with other line items

    Hi All,
    While doing J1INCHLN(payment making of TDS), system giving error i.e.
    "Withholding tax lines are being aleared along with other line items"
    Please suggest me in this issue...it would be great help for me.
    Thanks,
    Saisri

    Hi,
    As per my analysis we found some documents, here We have made advance payment to vendors with TDS and again rised invoce to vendors with TDS and these documents have been nockedoff in F-54.
    We have many documents of such nature and as per me it is because of these documents  the system is throwing error. Pls. advice as to how to proceed on this.
    Thanks,
    Saisri

  • Withholding tax lines are cleared alongwith other line items (Msg 8I701)

    Hi,
    While processing j1inchln at the time of posting system gives error of Withholding tax lines are cleared alongwith other line items (Msg 8I701)
    regards,
    mahesh

    Hi,
    As per my analysis we found some documents, here We have made advance payment to vendors with TDS and again rised invoce to vendors with TDS and these documents have been nockedoff in F-54.
    We have many documents of such nature and as per me it is because of these documents  the system is throwing error. Pls. advice as to how to proceed on this.
    Thanks,
    Saisri

  • Business Area postings in Tax line items

    Hi Experts,
    As we know that Business Area is not updated in the tax line items, In one our company code we have done BA adjustment through F.5D and F.5E in 2007, after that there are thousands of line items in the system without business areas, now my client wants a tallied business area trial balance from 2007 onwards or aleast to ensure that the tax line items should get business area assignments from hereafter,  and also recently we have created one more company code, Please help how do I ensure that all the tax line items and items with blank business areas get the business area postings. Is there any user exit or any work around available for this... At present we have only one GL for Inter business area clearing for all types of accounts (reconciliation, tax accounts) in OBXM.
    Please help...
    Regards,
    Khan

    Hello,
    Are NewGL and document splitting active in your system? If yes, you should solve this problem with using splitting function.
    Otherwise, you can use business transaction event 00001120.
    I explained step by step how can you activate BTE 00001120. I give you message below.
    Re: FBCJ - Cash Journal Transaction
    In this exit, you must update t_bsegsub-gsber field which t_bseg-buzid = 'T' for tax item.
    But you can not split tax line items in this exit. For example in invoice you have 2 or more business area, but tax line item doesn't create for each buiness area (If you don't use document splitting functon). So in this exit you can only assign a business area to tax line item which is automatically generate while posting FI document.
    Regards,
    Burak

  • Tax line items in MIRO

    Dear Friends
    When we are doing MIRO, number of tax line items are created in a document for each material line item. How to get total tax in one tine item.
    Thanks & Regards

    Hi
    I would not recommend to use work-around if you do this there will so many scenarios will come into picture with each unique tax code. I think it is advisable to stick with SAP standard but still you want to try some work around then I following may or may not helpful
    LMR1M002 Account grouping for GR/IR account determination
    BAdI for saving an invoice document (INVOICE_UPDATE)
    Thanks,
    Jagdeep

  • Assignment field in tax line item

    Hi
    Withholding tax rates are maintanted in vendor master data. So while making entry vis fb60 it automatically posts to the TDS as per rate maintained. My problem is in line item for this kind of tax, which causes problem in document posting. Error log says that these tax line item need to be corrected.
    When i give some input in "assignment" field then only it allows to post. 
    Could you tell me where this "assignment" field is maintained as mandatory for posting?
    Thanks
    Sweta

    Hi Sweta,
    Use OBC4 and change from mandatory to optional the assignment number in respect of field status group (I suppose G001) which has been mentioned in respect of that GL Account which is meant for TDS.  This should solve your problem.
    Aravind Boddupalli

  • How to get the tax spliting functionality using BAPI_ACC_DOCUMENT_POST

    Hi Experts,
    In FB01 tcode when we post the invoice separate tax line item is getting created automatically.
    But we are posting invoice with BAPI_ACC_DOCUMENT_POST here it is not happening.
    Before posting this question here found a thread https://scn.sap.com/docs/DOC-43262.
    Here from the thread info we implemented the BADI and enabled the tax calc flag and implemented the exit.
    Still the separate tax line item is not getting created.
    Can any one please clarify how we can acheive that functionality.
    Thanks in advance.
    kind regards,
    Shiva

    Hello Shivram,
    Your requirement is post FI document with tax line item's automatically with using above BAPI ( FI Posting) ! Suppose you want to post vendor invoice as mentioned below.
    Expenses account.......Dr.....100
    Input tax account.........Dr.......10
      To Vendor account..............Cr....110
    Your upload format should be as mentioned below to post above document in SAP.
    Item No
    Company code
    Pos.date
    Doc.date
    Currency
    Ref
    Header text
    PK
    Account
    Amount
    Tax code
    Assignment
    Text
    00001
    1234
    28.05.2014
    28.05.2014
    USD
    TEST
    TEST
    40
    E1234
    5600
    XA
    TST
    TEST
    00002
    1234
    28.05.2014
    28.05.2014
    USD
    TEST
    TEST
    31
    1001
    6160
    Tax code line item of above '00001 pass in to Calculate tax BAPI which was mentioned above with all required fileds & you can get one retrun table over there > those line items ,you have to pass as additional line item in FI document. ( Through coding). Check with technical consultant.
    Read note : 1873588 - Filling tax information for BAPIs
    626235 - Tax postings with accounting BAPIs
    Above notes only information purpose
    Regards
    Mani Kumar

  • Tax line items when travel expenses are posted to intercompany

    Hello Experts,
    We are posting a expense report  to a different cost center other than the Master cost center(IT0001). In this case system understanding as intercompany transaction and posting the travel expenses to different cost center and different company code. But the problem is when there is a tax calcualted, this tax is initially getting posted to original master cost center and again transfering the taxes to the intercompany cost center. this is creating an additional FI documents and also additional tax line items which is becoming very difficult for reconcilation.
    can any one suggest me where could be the correction required in order to post the taxes to intercompany cost center in the first instance itself.
    Thanks&Regards
    Srinivas

    Hi Srinivas,
    Profit center was not picking for tax line item when we were doing multiple cost center in a TRIP. So we have activated "not deductible" in VST and it got worked.
    Later when we got a Cross company employee vendor posting, tax line items are posting in both company codes.
    So we have deactivated "not deductible" in VST and activated "set expense company code" in table T706K (to allow cross company code postings in TM)
    And defined a new solution in New GL config for the first prblem.
    We have not changed anything in "posting indicator" in OBCN, it was 2 (Separate line item) only. You should not change this.
    All postings went fine.
    Regards
    SM

  • Line Items used in Info Cube

    Hi All,
    Can anybody give me a clear concept of line items used in Infocube. I want to know what is the concept behind using the line items. How does it effect the performance of a Infocube.
    Regards,
    Kshitij

    Hi,
    go throught the link, you will get a clear idea.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a7/d50f395fc8cb7fe10000000a11402f/frameset.htm
    rgrds,
    v.sen.

  • Need FM/BAPI to get how many line items per given FI document...

    Hello Experts,
    IS there an available FM or BAPI to get how many line items there is for a given
    FI document? We are avoinding BSEG because of the performance.
    Hope you can help me guys. Thank you and take care!

    Hi,
    Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
    i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
    Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
    Regards,
    Oscean Tortona

  • Business area not defaulted for tax line item

    Hello Friends,
    I am posting Customer invoice, when I simulate the invoice that time Output tax is automatically calculating the tax. My problem is, in the Output tax line item business area is required field which is appearing in display mode.
    T code - OBXM. Here we will configure this and at the month end we will run the following transactions.
    F.5D, F.5E.
    I want to know step by step cinformation for this. If you have any documentation send it to [email protected]
    Rams.N
    Points will be assigned for the right answer

    hi,
    If you are using business area method then you want to create all sales tax GL with business area optional. And You create one GL like Tax clearing account(business area optional)and assign the same in OBXM against all the sales tax GLs.
    Then you want to run F.5d and F.5e on everymonth.
    govind.

Maybe you are looking for

  • Emails for process chains

    Hi Friends, I need your valuable suggestions for a problem we are currently facing regarding emails in process chains. An explanation of the issue is as follows: The users who load data (present at different geographical locations Ex. A, B, C) use a

  • Chnage pointers for a report

    Hi, I have a requirement where in I have to  modify all the  articles (MARC-MATNR)  which are specified in the selection screen of a report. This report would be running in back ground for every one hour. user would not be entering input in the selec

  • MSS Employee search; Remember last "Group of organization view"

    I have a business requirement that the "employee search" has to remember the users last selected view in "employee selection". Day 1: The user default gets "direct employees" (due to customizing) and changes the selection to "all employees". Day 2: T

  • Handling unit/ Packaging material

    Hello, I have a question in <b>handling/packing</b> materials. I have configured packaging materials and groups right, and assigned it properly to my warehouse. But when I provide the information regarding packaging material in HU02, it says "XXX (Pa

  • HT5429 iOS 6 Maps and Chinese writing every where

    Why is it that all the countries, cities etc have the name in English (which I expect) but also above that Chinese characters for I assume the name in Chinese. Very annoying where can I turn this off? Thanks