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

BAPI_ACC_DOCUMENT_POST getting error while giving tax details

Hi guys,

I am using BAPI_ACC_DOCUMENT_POST for FI posting.Here I want to have Tax VAT details to be posted.

After filling G/L details into lt_gldata I filled




'MWAS' TO lt_accounttax-cond_key,

'MWS' TO lt_accounttax-acct_key.






when I run the BAPI I am getting an error 'Foreign currency translation not supported for tax calculation'

please help to find why the above error is coming...?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2009 at 06:59 AM


    Contact FO, some data or config problem.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      *Posting Key indicates gl account

      CLEAR st_gldata.

      MOVE: st_lineitem TO st_gldata-itemno_acc,

      gt_input-hkont TO st_gldata-gl_account,

      gt_input-sgtxt TO st_gldata-item_text,

      gt_input-zuonr TO st_gldata-alloc_nmbr,

      gt_input-projk TO st_gldata-wbs_element,

      gt_input-kostl TO st_gldata-costcenter,

      gt_input-prctr TO st_gldata-profit_ctr,

      gt_input-xref1 TO st_gldata-ref_key_1,

      gt_input-xref2 TO st_gldata-ref_key_2,

      gt_input-mwskz TO st_gldata-tax_code,

      st_bukrs TO st_gldata-comp_code.

      APPEND st_gldata.

      *Move data to currency table

      CLEAR st_curr.

      MOVE: st_lineitem TO st_curr-itemno_acc,

      st_waers TO st_curr-currency,

      st_kursf TO st_curr-exch_rate,

      gt_input-wrbtr TO st_curr-amt_doccur,

      gt_input-fwbas TO st_curr-amt_base,

      '00' TO st_curr-curr_type.

      IF gt_input-hkont EQ tax_acct.

      CLEAR : st_curr-amt_base.

      MOVE: gt_input-fwba2 TO st_curr-amt_base,

      gt_input-fwste TO st_curr-tax_amt.

      *Move data to Tax table

      CLEAR st_accounttax .

      MOVE: st_lineitem TO st_accounttax-itemno_acc,

      gt_input-hkont TO st_accounttax-gl_account,

      gt_input-mwsk2 TO st_accounttax-tax_code,

      'MWAS' TO st_accounttax-cond_key,

      'MWS' TO st_accounttax-acct_key.

      st_accounttax-itemno_tax = st_lineitem - 1.

      APPEND st_accounttax .


      APPEND st_curr.

  • author's profile photo Former Member
    Former Member
    Posted on Mar 26, 2009 at 07:03 AM

    Can you check what currency you are using for posting the document. If it different from Company code currency? Check setting the value for CURTP in BAPIACCR09 accordingly.

    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.