Skip to Content
author's profile photo Former Member
Former Member

BAPI_ACC_DOCUMENT_POST Tax (NVV)

Dear Experts,

I'm currently using BAPI_ACC_DOCUMENT_POST to post accounting documents.I calculated my taxes via function module CALCULATE_TAX_FROM_GROSSAMOUNT and each accountgl table was filled for each currencyamount table before passing into the BAPI. The taxes were

appended as extra line items after I have posted.

In order for the taxes to be displayed on FB03, I populated the accounttax instead.

If the tax only has VST, the posting is successful.

However, the taxes for my postings have both VST

and NVV (input sales tax). Problem comes in when I'm trying to post both VST and NVV via the BAPI.

Lets say I have to post $100 with tax code IP to GL account 000475100.

Tax code IP has VST and NVV.

---- -ACCOUNTPAYABLE --


accountpayable-itemno_acc = 1.

accountpayable-vendor_no = 0000213664.

APPEND accountpayable.

CLEAR accountpayable.

---- ACCOUNTGL --


accountgl-itemno_acc = 2.

accountgl-gl_account = 0004751000.

APPEND accountgl.

CLEAR accountgl.

---- -ACCOUNTTAX --


accounttax-itemno_acc = 3.

accounttax-gl_account = '0001863140'. "tax gl acct

accounttax-cond_key = 'MWVS'.

accounttax-ACCT_KEY = 'VST'.

accounttax-TAX_CODE = 'IP'.

APPEND accounttax.

CLEAR accounttax.

accounttax-itemno_acc = 4.

accounttax-cond_key = 'MWVN'.

accounttax-ACCT_KEY = 'NVV'.

accounttax-TAX_CODE = 'IP'.

APPEND accounttax.

CLEAR accounttax.

---- CURRENCYAMOUNT --


currencyamount-itemno_acc = 1.

currencyamount-amt_doccur = -100

APPEND currencyamount.

currencyamount-itemno_acc = 2.

currencyamount-amt_doccur = 93.45

APPEND currencyamount.

currencyamount-itemno_acc = 3.

currencyamount-amt_doccur = 4.78. "VST

currencyamount-amt_base = 93.45. "net amt

APPEND currencyamount.

currencyamount-itemno_acc = 4.

currencyamount-amt_doccur = 1.77. "NVV

currencyamount-amt_base = 93.45. "net amt

APPEND currencyamount.

When i passed the tables to the bapi, I get error 'Balance in

transaction currency'. I do not understand as my currencyamount table

is balanced.

I have implemented OSS 838350 and 979102.

I've also looked through OSS 626235 but do not understand.

Please help me.

Thanks.

Regards,

Hwee Ling

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 07, 2013 at 07:56 PM

    Hello experts,

    Do you know how to solve this case as i am facing the exact same issue 😔

    Thank you in advance,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2013 at 03:20 AM

    Hello,

    NVV amounts are statistical, hence the NVV portion of the amount must be included as part Itemno_acc 2.

    CURRENCYAMOUNT

    currencyamount-itemno_acc = 1.

    currencyamount-amt_doccur = -100

    APPEND currencyamount.

    currencyamount-itemno_acc = 2.

    currencyamount-amt_doccur = 95.22 (Base amount + NVV amount as NVV Amount is statistical)

    APPEND currencyamount.

    currencyamount-itemno_acc = 3.

    currencyamount-amt_doccur = 4.78. "VST

    currencyamount-amt_base = 93.45. "net amt

    APPEND currencyamount.

    currencyamount-itemno_acc = 4.

    currencyamount-amt_doccur = 1.77. "NVV

    currencyamount-amt_base = 93.45. "net amt

    APPEND currencyamount.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2013 at 04:16 AM

    Hi,

    Please read below SAP Note:

    Note: 367175 No Tax Calculation function in FI/CO BAPIs

    487064 Direct posting to tax account with AC BAPIs

    1548302 Posting direct tax items using BAPI

    Regards,

    Sujeet

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 24, 2013 at 10:07 AM

    Chelsea,

    how did you solve this?

    kr

    Nico

    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.