BAPI_ACC_DOCUMENT Tax line

Hi Group,
I am trying to post accounting document using BAPU_ACC_DOCUMENT with tax line, but my requirement is to consolidate all line items based on tax code and post it one tax line:
for example:
10   GL Line     VS(tax code)
20   GL Line     VS
30   GL Line     V6
40  GL  Line     V6
My tax line will be
50  VS  
60  V6  
Amount
10  amount after tax
20  amount after tax
30  amount after tax
40  amount after tax
50 Consildate tax amount of VS for 10 and 20
60 Consildate tax amount of VS for 10 and 20
Can any body suggest how I can build tax line and amount for this logic.

Can you try and use 'CALCULATE_TAX_FROM_NET_AMOUNT' instead of the one you are using and see if you are getting 6 entries?
In this the tax lines come as an internal table. This is the same FM that SAP uses to derive the tax lines within the standard transaction. Please let me know if this was helpful.
Thanks and Regards,
Hari

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

  • Tax Line in R12 in Quick Invoices Screen

    Hi Friends,
    Actually, am facing some problems relating to eB Tax architecture of R12.
    In R12, I am trying to create one invoice through Quick Invoices screen.
    The invoice contains.. 2 Lines.
    1. Item Line.
    2. Tax Line. I have entered all the information related to Tax (Tax Regime, Tax, Tax Status, Tax Rate Name).
    I saved the invoice and ran the Payables Open interface import program.
    It is getting rejected during import process with the following error.
    "The invoice cannot contain Tax Lines as tax calculation will be done for the invoice".
    Kindly help me with this issue.
    Regards,
    Ajit

    Hi Suhasar,
    Thanks for your response. But the main thihng, i would like to know is:
    In 11i, we used to create a new line of type TAX and work.
    Doesn't the same thing work in R12?
    If not, then why are we allowed to create a line of type, "Tax" in R12?
    What could be the reason for providing it but the same thing does not work out while importing, which works very well in 11i?
    I am quite confused about this. It would be great, if you could help out with this.
    Thanks in advance.
    Regards,
    Ajit

  • WHT - No unpaid tax lines exist for the given selection criteria

    Before going to execute Create remittance challan J!INCHLN ,
    i entered all the mentioned  parameters and  try to save but  i got error message  as follows
    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 updating. Check the entries.
    Procedure
    Check entries in table WITH_ITEM for the open tax items chosen for clearing.

    Hi,
    Please check for
    1. Section code/ Business place updated even in the tax lines of the document and not just the vendor line item.
    2. Check if there is a buzei mismatch between with_item table entries and bseg entries for the documents that are being pulled during the challan creation. If there is a Buzei mismatch, then please run the program in the note :885213 and then rerun the challan .
    3. Please check the note :1465529 . This is the consulting note for j1inchln.
    Hope this helps.
    Thank You.
    Regards,
    Anushya

  • No unpaid tax lines exist for the given selection criteria while+J1inchln

    Hi All,
    While doing J1inchln I am getting following 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.I have already updated Business Place and Section code while doing FB60.But still I am getting the same error.
    I have already updated Business Place and Section code in the entry while doing FB60 but error is coming. Please advise.
    Regards,
    Abhinav Sharma

    Hi ,
    Kindly go through the note no. 1465529 , which is a consulting note on J1INCHLN .
    It would resolve your query .
    Regards ,
    Dewang T

  • No unpaid tax lines exist for the given selection criteria.

    Hi
    at the time of remittance challan,getting following 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.

    Hi,
    It may cleared Manual posting at the time of posting.  If manual clear postings reverse and do through J1INCHLN only.
    and check the Date range for selection criteria.
    Regards,
    Kishore

  • Substitution of Business Area for Tax Line Items for Invoices posted in MM

    Hi
    We have one Business Area for every company code. A substitution rule has been created to populate Business Area in Tax Line Items, while booking vendor invoice. The substitution rule has been defined as
    Prerequite
    Company Code = 1234 and GL = 1323232
    Substitution
    Business Area = 6668
    The system is working fine, when the Vendor Invoice is posted through FI. However, when the vendor invoice is generated through MIRO or MIR7, the Business Area is not substituted.
    In Table VWTYGB01, we have maintained BSEG-GSBER as a field allowed for substitution with Boolean Class 09.
    We have created the susbstitution rule for Text and Assignment also and the rules are working fine for all document posted through FI and MM
    Regards
    Sanil
    Sanil K Bhandari

    Hi
    Business Area is a sensitive field, agreed. However, the substitution rule is working fine for FI posted documents and the issue is in MM generated documents.
    Regards
    Sanil Bhandari

  • 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

  • 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

  • Substitution for MIRO Business Area for tax line items

    Hi All,
    Our business requirement is updation of BA in tax line items during MIRO transaction. To fulfill this requirement i have written a substitution with user exit. Business user enters BA in bktxt . In user exit iam passing bktxt field to bseg-gsber. But BA is not updating in tax line items. Here iam giving the code which i have written in my user exit. Pls guide me what to do aprt from this.
      IF bkpf-bktxt IS NOT INITIAL.
        t_gsber = bkpf-bktxt.
      ENDIF.
      IF bseg-hkont EQ '0000098511' OR bseg-hkont EQ '0000098521' OR bseg-hkont EQ '0000098583'.
        cobl-gsber = t_gsber.
      ENDIF.
      IF bseg-hkont EQ '0000098511' OR bseg-hkont EQ '0000098521' OR bseg-hkont EQ '0000098583'.
        bseg-gsber = t_gsber.
      ENDIF.

    update like below:-
    UPDATE dbtab FROM TABLE itab. or
    UPDATE (dbtabname) FROM TABLE itab.

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

  • Business area not defaulted for tax line via OKC9 or OBBH

    Hi SAP gurus,
      I had created subsitution rule in both FI and CO, OBBH and OKC9, which did not to default business area into the tax line.
      In OBBH, it was overwritten by SAP standard to blank during debug, OSS explains that due to integration with other sub modules, it does not allow. In OKC9, since tax is balance sheet account, it does not work.
      I had also tick "business area financial statement" in global parameter setting.
      Could any gurus advise ?
    Reagrds,
    Soo Wan

    Dear Eric,
    Please help, I have the same problem;
    For transaction FAGL_FC_VAL foreign currency valuation new journal entries are generated for foreign exchange profit/ loss, it is done in batch proces but while executing batch it is asking foe cost element to be updated, i have fixed cost center in OKB9 for Business Area ( but i am having two cost centers for two business area for single cost element ie GL- Forex Gain/ loss.
    I need tp put Business area manually for each line item while running the batch.
    We are in ECC 6.0
    I want to develope Substitution, please advice
    Substitution for FI ????
    Substitution for Co????
    you can communicate me on neeleshpitaleattherateyahoodotcodotin or neeleshpitaleattherategmaildotcom
    Your help in this will be highly appreciated,
    Thanks,
    Nilesh

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

  • India Localization - AP - Asset Invoice with Tax Lines

    Dear Experts,
    In India Localization If I have Asset Invoice with Tax Lines and If I Perform Mass Additions will Tax Lines also Interfaced to FA or only Asset cost will be transferred FA (Excluding Tax Lines)
    Please help me out.
    Thanks
    Bharath

    Bharath,
    even though the tax lines are independently transferred to mass addition and merged ... it is merged to its owning transaction ... like if the invoice in AP is created for a capital asset using the Capital asset clearing account, the tax lines in that invoice is merged automatically to that invoice cost line in the mass addition stage ... similary for CIP clearing account ....
    Regards,
    Ivruksha

  • Tax Line items are not showing seperately as per exp in FB60

    Hi,
    In FB60, I have booked the two expenses with tax code separately.  While simulating the entry the tax lines are not showing separately as per expenses.  For example:
    Suppose my tax code = AB which is equal to 10% maintained in FTXP.
    At present entry is coming as follows through FB60 is:
    Debit     Postage expenses     500 tax code AB
    Debit     Stationery expenses     400 tax code AB
    Debit     Tax               100
    Credit     Vendor               1000
    But we need the entry is follows
    Debit     Postage expenses     500 tax code AB
    Debit     Stationery expenses     400 tax code AB
    Debit     Tax               50
    Debit       Tax               40
    Credit     Vendor               1000
    But I change the tax code for second line AB to XY then calculation of tax entries shows separately according to expenses.
    Please let me know where did I do the mistake in configu2026u2026..
    Regards,
    Babjee

    Hi!
    Normally, all amounts being posted to the same GL Account and determined from the same tax code as automatically derived, will generate one common auto-generated line item. This is because tax reporting is usually based on tax code (external/tax reporting) and or GL account (internal/financial reporting).
    In your first case since the tax code used for both line is the tax code was the same, it would be posting to the same GL Account - hence a common line item got auto-generated.
    Check the Account Key and Assigned GL Accounts in T.Code FTXP. Additionally, check the Condition Type set-up (identified from FTXP) in T.Code SPRO / from menu IMG node Check Calculation Procedure.
    Regards,
    Ruchi

Maybe you are looking for

  • Trouble with DV Type 2 AVI audio in Premiere Elements 11

    Please see the two screen captures below.  G-Spot says my clip is DV Type 2 AVI which Premiere Elements 11 supposedly handles well.  G-Spot says both the appropriate audio and video codecs are available on my Windows 7 x64 PC.  Main Concept DV codec

  • ADFS 3.0 and force password change

    I was wondering if anyone knows if ADFS 3.0 supports the AD flag "Force password at first login"?  I know 2.0 does not. I have been integrating Shibboleth with my ADFS and a custom login handler but I would really like to not complicate my setup and

  • ESB Exception handling

    Dave, In your Advanced Architecture presentation you mentioned about default and custom error handlers for non transactional end points. And you mentiond JMS:// and BPEL:// handlers as an example. So my question is how to configure this? I assume thi

  • Getting music from one computer to another

    I received a laptop for my birthday and installed itunes and authorized the laptop. I plugged the ipod in and it updated but when i took it out, there were no songs in the library or on the ipod. Please help me.

  • A site on one huge page?

    In the thread on (arghhh) music on a website, Nancy O refers to http://www.thepawn.com.au/ and I wonder how I could make a page like that?