Skip to Content

BAPI_ACC_DOCUMENT_POST - Incorrect Base Amount in FB03

I am using BAPI_ACC_DOCUMENT_POST for mass create AP invoice. But I found that the base amount and tax amount of created invoice are wrong. It will sum up all the base amount, it will ignore whether it is debit or credit entry (+/-) in currencyamount table.

Anyone can help? I can't find the exact solution from the internet. Below is my value in Bapi, Only two items total. But it only shows either a credit base amount or debit base amount in fb03's tax data. Any missing field?

ACCOUNTGL-ITEMNO_ACC = 2 / 5 //SAME VALUE

ACCOUNTGL-GL_ACCOUNT = 75140060

ACCOUNTGL-ITEMTEXT = TESTING

ACCOUNTGL-COMP-CODE = 12

ACCOUNTGL--VALUE_DATE = 2020204

ACCOUNTGL-TAX_CODE = V1

ACCOUNTPAYABLE-ITEMNO_ACC = 1 /4 /SAME VALUE

ACCOUNTPAYABLE-VENDOR_NO = VEND123

ACCOUNTPAYABLE-COMP_CODE = 12

ACCOUNTPAYABLE-BLINE_DATE - 20200617

ACCOUNTPAYABLE-DSCT_DAYS1 = 3

ACCOUNTTAX - ITEMNO_ACC = 3 / 6 //same VALUE

ACCOUNTTAX -COND_KEY = MWVS

ACCOUNTTAX -ACCT_KEY = ZVP

ACCOUNTTAX -TAX_CODE = V1

ACCOUNTTAX -TAX_RATE = 19

CURRENCYAMOUNT- ITEMNO_ACC = 1

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR = 83.09-

CURRENCYAMOUNT- AMTBASE = 0

CURRENCYAMOUNT- ITEMNO_ACC = 2

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR = 69.82

CURRENCYAMOUNT- AMTBASE = 0

CURRENCYAMOUNT- ITEMNO_ACC = 3

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR =CURRENCYAMOUNT- ITEMNO_ACC = 1

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR = 13.27

CURRENCYAMOUNT- AMTBASE = 69.82

CURRENCYAMOUNT- ITEMNO_ACC = 4

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR =CURRENCYAMOUNT- ITEMNO_ACC = 1

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR = 85.97

CURRENCYAMOUNT- AMTBASE = 0

CURRENCYAMOUNT- ITEMNO_ACC = 5

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR =CURRENCYAMOUNT- ITEMNO_ACC = 1

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR = 72.24-

CURRENCYAMOUNT- AMTBASE = 0

CURRENCYAMOUNT- ITEMNO_ACC = 6

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR =CURRENCYAMOUNT- ITEMNO_ACC = 1

CURRENCYAMOUNT-CURRENCY = EUR

CURRENCYAMOUNT-AMTDOCCUR = 13.73-

CURRENCYAMOUNT- AMTBASE = 72.24-

Add a comment
10|10000 characters needed characters exceeded

  • There should be a debit base amount for item 8, but I can't find it from tax data.

    Also if I post above entry manually by f-02, g/l 18004301 will combine into one line item rather than three line items. So anyone can help?

  • Thank you for visiting SAP Community to get answers to your questions.

    Since you're asking a question here for the first time, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful), share screenshots of what you've seen/done, make sure you've applied the appropriate tags, and use a more descriptive subject line. The more details you provide, the more likely it is that members will be able to assist you. Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question -- but if that happens, you can leave more details in a comment).

    Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS.
    By personalizing your profile with a photo of you, you encourage readers to respond.

    Cheers,
    Julia, SAP Community Moderator

  • Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful), share screenshots of what you've seen/done, make sure you've applied the appropriate tags, and use a more descriptive subject line. The more details you provide, the more likely it is that members will be able to assist you. Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question -- but if that happens, you can leave more details in a comment). Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS. By personalizing your profile with a photo of you, you encourage readers to respond.

    Cheers,
    Julia, SAP Community Moderator

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 31, 2020 at 08:07 AM

    There should be a debit tax base amount for item 8, but I can't find it from tax data. It seems that Bapi just ignores the base amount of item 8.

    If I try to input below entry manually by f-02, three tax items (G/L 18004301 will combine into one item). Is below result correct from Bapi?


    screen.png (49.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.