BAPI_ACC_DOCUMENT_POST - 1 tax code, 2 lines: how to manipulate?

In our company code, we have a tax code, that has 2 tax percent.rates:
Goods/services tax   VST        7,000           160    100       GST
Provincial Sales Tax VST        8,025           170    100       PST
These have to be calculated on the same base amount.
E.g.
Payable line item:
amount:  1890
G/L line item:
amount:  1260,59
Tax line item 1:
amount:  115.02  (=7%)(base amount = 1260,59)
Tax line item 2:
amount:  361.45 (=8%)(base amount = 1260,59)
This has to create 2 lines in the BSET table!
When we create an invoice online (fb60), this works perfectly. When I do it via the BAPI ACC_DOCUMENT_POST it's only one line item!
The BAPI somewhat counts up the tax two amounts that I give up in the BAPI (7% amount and 8% amount are counted togehter), only one line is created.
What it needs to do is create two line items for this tax code, with on each line item: the same base amount, the respectively percentage and calculated amount
Anyone any idea how I can manipulate this somehow?
BSET table:
Invoice created online (ideal situation):
  line item 1, Base amount: 1643.12, Tax amount: 115.02
  line item 2, base amount: 1643.12, tax amount: 131.86
Invoice created via BAPI (wrong situation):
  line item 1, Base amount: 3286.24, Tax amount: 246.88
  (3286.24 = 1643.12 x 2, 246.88 = 115.02 + 131.86)
Thanks!

Hi,
RFBIBL00 program can be used as standard ABAP report program which reads the external file (eg .TXT). But format of TXT file is bit tricky. (see below)
This Report will convert the data and will generate a Batch Session which you have to execute using TCode sm35.
File format ..
Row 0: Value "0"
Row 1: Header (Choose the desired columns from BBKPF structure)
Row 2: Detail line item 1 (Choose the desired columns from BBSEG structure)
Row 3: Detail Tax Item 1(Choose the desired columns from BBSEG structure)
and so on repeating the header and detail/tax line item for each invoice (Row 1, 2, 3). Note Row 0 will appear only once.
Hope this helps your TAX update
Regards,
Rohit

Similar Messages

  • Is it possible to have more than one Tax code per line item in Billing docu

    Is it possible to have more than one Tax code per line item in Billing document ?

    Hi,
    I have a different perspective there.
    If an item is applicable for two different taxes which are represented by two different tax condition types and these tax conditions are configured in the tax procedure, FTXP and so on....then these two condition records can have two different tax codes.
    We actually have this scenario in EU now, where EU talks about service tax in 2010 apart from the normal VAT. So now we have MWST and ZWST(Say)
    Now there are some materials which come with a service associated with it. So a service charge is also levied when the material is sold. So the material price will become applicable for VAT and the service charge becomes applicable for service tax. In this case, the tax classification of the customer will have two entries in sales orders updated in the fields VBAK-TAXK1 and VBAK-TAXK2 based on the sequence number of these condition types.
    Now based on different tax classification of the customer, we have 2 different tax codes representing different %of tax.
    Hope it helps

  • AP - Supplier Sites Invoice Tab - Diff Btwn Tax code and Line Level

    Hi All,
    In paybles options setup, the Invoice Tax calculation is set to LINE Level and Allow Tax Calculation Override check box is checked.
    While Defining the supplier, in the Invoice Tab of Supplier Sites, I changed it from LINE Level to Tax Code and unchecked the Allow Tax Calculation Override and Distribution Amounts Include Tax check box is Checked.
    How will this change Impact on while creating the Invoices. What will be the Diff when we change the Tax Calculation from LINE Level to TAX CODE.
    Help Appreciated.
    Thanks

    user449960,
    Your scenario is a functional issue, follow Sumit's advise. If you feel there is something related to OAF, put your thoughts here.
    --Shiv                                                                                                                                                                                                                                                                                                                       

  • Withholding tax code in line item text field

    Dear All,
    Please suggest me on the below matter,
    When we will pass a vendor invoice through FB60 we will mention the Withholding tax type
    and tax code for withholding tax deduction from vendor . Then withholding tax line item will
    generate automatecally, but there will be nothing in the text field.
    I want that the withholding tax code will come automatecally in the text field after posting the entry.
    Is it possible?
    Regards
    Amitava

    Hi,
    You can define Text for line items in OB56. Just define Text ID and enter your text and tick the check box "Control Display". Now you can define Substitution rule and replace the Text "=XY" in text field (If you have defined Text ID XY in OB56).
    You can also try to maintain user exit with reference to OB56.
    Regards,
    Jigar

  • How system picks value from Tax Code

    Dear Experts,
    I have one scenario,
    In our pricing procedure there are tax condition types for which there are no condition records maintained. But the values are maintained in Tax Code.
    My doubt is, do we have to add these tax condition types in pricing procedure as they are already in Tax Code ?? Because I observed few condition types are not there in pricing procedure but the same are in Tax Code.
    Second, how the system comes to know that there is no condition record and the value is in Tax code. How does it determine and pick the value from Tax code.
    Thanks in advance
    Sagar

    Sagar,
    Let me try to clear your confusion :
    For Total determination of pricing we have two things
    Pricing Procedure and Tax Procedure.
    Pricing Procedure tell system about the what and how the price to calculated for material in Sale Order.
    In this pricing procedure the conditions JIN1 JIN2 etc ares pertaining to tax applicable on the Sale order Price.
    These conditions display the tax.
    Now the tax is calculated based on tax procedure.
    And a Tax procedure acts as a master and there is one tax procedure for one country.
    for that particular tax procedure there are tax codes defined.
    These Tax codes allows the using the same tax procedure but changing value of various conditions and removing which we dont require.
    Lets take an example : AS TAXINN is tax procedure for India. Based in this procedure many tax codes are defined for 12% vat, 6% vat , no vat etc.
    So what kind of tax will be applicable on the Sale order is governed by tax code which is mentioned in customer master.
    Based on this tax code taxes are calculated on Sales order net value and then the tax amount is displayed in pricing procedure
    You assign the tax condition types to Pricing procedure so that it will display the taxes in the sales order.
    I hope it will clear some of your doubts. Please let me know if you need further assistance.
    Thanks,
    Raja

  • How can I get tax code?

    Hi. Experts!
    I'm facing problem how to get tax code!
    Now there is billing document, and condition type for tax is Z100, and it relates to tax code "A1".
    How does SAP decide tax code?
    And how can I get tax code?
    Thanks in advance!

    Hi
    The tax codes are stored in A003.
    Tax code condition records are stored in condition table A003. The plantu2019s country (SD) or the company codeu2019s country (MM) along with the tax code, which was automatically determined from the SD/MM condition records, are used to read the tax condition records stored in table A003.
    [More info|http://help.sap.com/saphelp_rc10/helpdata/en/8c/453438fd263402e10000009b38f8cf/content.htm]
    Shiva

  • Tax code mapping issue

    Hi,
    Would like to know how tax code mapping can be set with respect to the below three cases:
    Case 1:Creating a PO release order manually based from the contract.  I have a contract with a tax code A0 ( correct one) which is the one which I need in my PO. There is no PREQ. Tax code 30 is maintained both in Vendor master and in the info record. I create a PO ( release order) based on the contract. But the tax code available in the PO is 30. What changes should I make so that the PO always picks up the tax code from the contract and not the one from vendor master or the PIR?  Any customizations or only program change?
    Case 2: Automatic PO creation from a PR with a contract link.  There is a contract with tax code A0. PREQ has been created by MRP. Source of supply( Fixed vendor) and contract/line is displayed in the PREQ. Now PO created by PO-PREQ auto conversion. Tax code available in the PO is 30 instead of A0. The PIR in the PO has the tax code 30. How do we ensure in this case that only tax code( A0) in the contract should only defaulted to PO and not the tax code 30.
    Case 3: Automatic PO creation from a PR without contract link: There is a contract with tax code A0. PREQ has been created by MRP. Source of supply( Fixed vendor) and contract/line not displayed in the PREQ. Now PO created by PO-PREQ auto conversion. Tax code available in the PO is 30 instead of A0. The PIR in the PO has the tax code 30. How do we ensure in this case that tax code( A0) in the contract should only defaulted to PO and not the tax code 30.
    Thanks

    The only expense available to set is Freight which is set correctly to Shipping. We are not using the Webtools interface so no way to look at the Tax. In the Sync Manager it is set to a Default of exempt. We need to pass CA for any California orders and set this in the BP record so the tax is calculated. For shipping we have tried passing the shipping type number with no luck.
    Thanks for the feedback.

  • MIRO, tax code

    Hi ..
    I have maintained Tax Code in Infor record
    This got copied to PO as expected
    when i go to MIRO, system by-default bringing diff tax code at header, i had to manually change to the tax entered in PO
    I could see in line item in MIRO tax code is properly brought-in from PO
    if default tax code is removed in go in spro == mm== liv== incoming invoice == Maintain Default Values for Tax Codes then will get blank entery in miro
    1. So there is no way that we get tax code of line item to header as well ?
    2. how the system will work below case
    Header - 2% tax
    Item1 : 100 USD - 1% tax
    item2 : 200 USD - 1% tax
    Please clarify above 2 questions, Thanks

    1. So there is no way that we get tax code of line item to header as well ?
    Ans. In the basic data header level in MIRO no, but at the tax tab yes, at the header level both the tax codes will get copied with required details and after selecting calcuate tax the tax will get calculated.
    2. how the system will work below case
    Header - 2% tax
    Item1 : 100 USD - 1% tax
    item2 : 200 USD - 1% tax
    Ans In the tax tab of MIRO tcode both the item level tax code will get copied once you enter the line items tax code which will get copied from PO.
    MIRO header Tax tab:
    100.00     Base amount      Tax code details
    200.00     Base amount      Tax code details
    BR
    Edited by: Sujoy on Feb 9, 2010 2:50 PM

  • MIRO. Different TaX codes

    Hi all.
    My users need to enter an invoice with MIRO.
    The issue is that they want to enter two Tax codes in the same PO line item.
    Is possible ?? How I can do this??
    Thanks a lot
    Ismael

    Hi
    ok
    if this is the case
    say invoice is for 15 qty and 100  so total amount 1500
    put the po number in MIRO it will show 15 qty change it to 12 qty and 1200
    angain put same po second line wil come againg 15 qty change it to 2 and amt 300
    now in header dont put any tax code
    in line item put taxcode for 16 % for first line and taxcode 4 % for 2 line
    Check by both wayes GR based invoice and with out gr based invoice
    hope this will help
    reward if helpful

  • Default tax code in MIRO item

    Hello Experts,
    While doing invoice through MIRO, system is defaulting the tax code in the line item level.There is no tax code in the header level. We have not entered tax code in the PO also. How to avoid the default tax code in the MIRO item, because the same information is going to accounting document also. Any way system is not calculating tax, we do not want the tax code to be shown in the document.
    Your inputs are highy appreciated.
    Regards
    Sanath

    Dear,
    Tax code in line item in MIRO can only be defaulted if they are maintained in transaction OMR2 for the transaction.
    Substitution will only help in sole FI transaction but MIRO is deemed to be Logistic Transaction...still check in transaction GGB1 if if there any substitution maintained....
    REgards,
    CHintan Joshi

  • Applying Tax code on document total as a whole.

    will it be possible to apply tax on a document total as a whole?
    for eg.
    I want to generate a purchase order for 3 items and doesn't want to apply tax code on line level.
    The document total will be say 5000 now i want to put tax code on this value.
    will it be possible.

    Hi,
    In SAP B1, You should link the Tax codes in row level (ie., for every item it's tax code should be defined in that row itself). We cannot define or calculate the tax amount for overall amount.
    Raja.S

  • ME21N : tax code

    Hi,
    When creating a PO i have this error message :
    "In case of evaluated receipt settlement, please enter tax code"                                                                               
    More details :
      Message no. 06750                                                                               
    Diagnosis                                                                               
    Evaluated receipt settlement (ERS) has been defined for this PO item. To
        permit implementation of this procedure, the tax code must be           
        maintained.                                                                               
    Procedure                                                                               
    Maintain the tax code.
    Please how to Maintain this tax code                                                  
    i hope ur help
    Regards

    ERS is Automatic Invoice Reciept in MM.
    Create a tax code in FTXP Transaction
    and assign it in Purchase order,
    Item Details, (Bottom Screen)
    Invoice Tab...

  • Need to change Tax code in po but GR and IR also completed

    Hi Gurus,
                I have one issue in the po, the line item "xxxxxxx" in the PO It shall be 36 instead of 39.but it is GR and IR also completed,now we need to change the Tax code,for this we need to cancel IR and GR or without cancel GR, IR also we can change Tax code,please guide me.,but  i am thinking this below mentioned steps to maintain for change the Tax code.
    (1) cancel IR
    (2) Cancel GR for line item  "xxxxxxx"
    (3) Change tax code for line item "xxxxxx" from 39 into 36
    (4) Re-post GR for line item "xxxxxx".
    (5)Re-Post invoice for line item  "xxxxxx"
    These steps are required to change the Tax code in the po or not
    please guide me,
    Thanks for your reply.
    Regards
    SAP MM

    Hi,
    If the Tax amount is merged to the expense/revenue account as per the Tax configuration.
    Then if the tax code is V1 --Tax amount is 100 Rs
    The system will post that amount to material account and same will be GR/IR.
    When you do the MIRO the GR/IR will match & vendor account will update.
    If the Tax amount is posted to seperate a/c then tax amount will not merge to material account so at GR tax amount has no reflection but in MIRO system will post the tax to seperate G/L account and vendor is updated with Material Price + Tax amount, GR/IR will be same as MIGO .
    hope you understand.
    rgds
    Chidanand

  • Import PO subsequent Debit: Taxes not calculated as per tax Code in MIRO

    Dear All,
    I am facing the problem while taking Subsequent debit (MIRO) of Import PO. I am using service Tax code 10.30 % .
    When I entered the amount 4000 INR. It calculated the taxes 348.18 which is not correct.
    I also check condition in FV13 its properly maintained.
    Thanks in Advance
    Regards
    Pawan Sarda

    Hello
    Thanks for ur Reply.
    MIRO --  Subsequent Debit -
    >Tax code - S3 ( 10.30 % Services Tax) -
    >PO NO. -
    > change Vendor ( Import Vendor to Domestic Vendor) -
    > Amount 4000 INR  -
    > also change Tax  Code of Line Item   -
    >Simulate
    Vendor A\c -
    >   4,348.18 INR Cr
    Stock A\c  -
    >  4,000.00 INR Dr
    Service Tax -
    >     338.04 INR Dr
    ECS             -
    >         6.76  INR Dr
    HECS          -
    >       3.38  INR Dr
    Above process I m doing against Import PO but I m not identify why its calculated Wrong Service Tax or calculating on which base amount ?
    Actual Entry
    Vendor A\c -
    >  4,412.00 INR Cr
    Stock A\c  -
    > 4,000.00 INR Dr
    Service Tax -
    >    400.00 INR Dr
    ECS             -
    >        8.00  INR Dr
    HECS          -
    >      4.00  INR Dr
    Edited by: pawansarda on Jan 21, 2012 11:41 AM

  • Tax code mandatory in vendor down payments

    Hello,
    I am posting a vendor down payment with a bank account not relevant for taxes, but when I enter the amount of the down payment in item 2, posting key 29A, the tax code is mandatory
    How could I change it?
    Thanks a lot

    Check two options
    1. Goto to FBKP-> Special GL -> Clear the tax column in the special GL for downpayment screen.
    2. Check out the field status group of the reconcilation account. FS00-> 3 rd tab -> Double click on the FSG and check if the tax items.
    3. Check out the Field status Group of the Account group in which the vendor is assigned.

Maybe you are looking for

  • New field on field catelogue

    Hi For a discount condition type I want to create a new condition table with a filed which is not in filed catelogue. So what and all the entire procedure I have to do. thns & rgds raju

  • Black title screen not large enough to cover video: see edges of underlying video

    Hello users, I am trying to use black title screens to display names of songs which are to appear for 5 seconds before fading and then showing the performer. I have the title screen on the track 2, above the video on track 1. I can see a very slight

  • Ambiguity in JSP

    Hi !!, I have a query on jsps. In my project we have an enhancement where we are trying to do the following : 1) We are having some existing users who can change their password through http://localhost/eportal/ChangePassword.jsp 2) [ENHANCEMENT] The

  • Cane I import a profile to camera calibration,

    Hi I have made a .pf3 file using Canon Picture style editor for my eos 6 D. Cane I import the profile to camera calibration in development module. Pálmi

  • Some place to leave feedback?

    I can't find anywhere to leave simple feedback, or suggestions. I tried the "contact us" link, but it makes you answer all sorts of questions that assume you need some sort of support. I just want to be able to leave a suggestion for something, but i