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_ACC | 0000000002 |
GL_ACCOUNT | 44000000 |
ITEM_TEXT | BAPI Test G/L lin |
COMP_CODE | ABCD |
TAX_CODE | EX |
COSTCENTER | HZZ000MK00 |
ACCOUNTPAYABALE
ITEMNO_ACC | 0000000001 |
VENDOR_NO | ZXCV1 |
BLINE_DATE | 04.11.2015 |
ITEM_TEXT | BAPI Test A/P line item |
CURRENCYAMOUNT
ITEMNO_ACC | 0000000001 |
CURR_TYPE | 00 |
CURRENCY | INR |
AMT_DOCCUR | 10,000.0000- |
ITEMNO_ACC | 0000000002 |
CURR_TYPE | 00 |
CURRENCY | INR |
AMT_DOCCUR | 9,090.9100 |
ITEMNO_ACC | 0000000003 |
CURR_TYPE | 00 |
CURRENCY | INR |
AMT_DOCCUR | 909.0900 |
AMT_BASE | 9,090.9100 |
ACCOUNTTAX
ITEMNO_ACC | 0000000003 |
GL_ACCOUNT | 24011014 |
COND_KEY | JSVR |
ACCT_KEY | ZSE |
TAX_CODE | EX |
EXTENSION1
FILED1 | 0000000001 |
FILED2 | |
FILED3 | 400000011166 |
FILED4 | 000000 |
FILED1 | 0000000002 |
FILED2 | |
FILED3 | 31 |
FILED4 | 000000 |
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.