Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_DOCUMENT_POST tax calculation with COPA Fields

aakash_patel
Explorer
0 Likes
1,145

Hi Experts,

I know there are lot of already discussion regarding this topic but i am unable to solve my problem even after referring all those posts.

My requirement is to post doc with tax calculation and also update COPA fields using this BAPI. I m using FM COPA_PROFITABILITY_SEGMENT which generates profit seg. number and passing this number to extension 1 table of BAPI.

tables are filled as below.

ACCOUNTGL

ITEMNO_ACC0000000002
GL_ACCOUNT44000000
ITEM_TEXTBAPI Test G/L lin
COMP_CODEABCD
TAX_CODEEX
COSTCENTERHZZ000MK00

ACCOUNTPAYABALE

ITEMNO_ACC0000000001
VENDOR_NOZXCV1
BLINE_DATE04.11.2015
ITEM_TEXTBAPI Test A/P line item

CURRENCYAMOUNT

ITEMNO_ACC0000000001
CURR_TYPE00
CURRENCYINR
AMT_DOCCUR10,000.0000-
ITEMNO_ACC0000000002
CURR_TYPE      00
CURRENCY        INR
AMT_DOCCUR9,090.9100
ITEMNO_ACC0000000003
CURR_TYPE00
CURRENCYINR
AMT_DOCCUR909.0900
AMT_BASE9,090.9100

ACCOUNTTAX

ITEMNO_ACC0000000003
GL_ACCOUNT24011014
COND_KEYJSVR
ACCT_KEYZSE
TAX_CODEEX

EXTENSION1

FILED10000000001
FILED2
FILED3 400000011166
FILED4000000
FILED10000000002
FILED2
FILED331
FILED4000000

I am getting error message 'F5 846 Debit/credit indicator is inconsistent'. If i remove extension 1 table then document posted successfully with tax calculation. Here  '0000011166' is profitability segment number which i m passing with posting key 40. Also with same data if i skip tax calculation and change currency table accordingly then this profit seg number updating successfully in doc. using same extension 1 table.

Please guide how to fill these tables.

1 REPLY 1
Read only

aakash_patel
Explorer
0 Likes
760

Solved !.