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

Issue posting to accounting through BAPI

Former Member
0 Likes
914

Hi all,

I'm using BAPI BAPI_ACC_DOCUMENT_POST, with the following information:

Accounttax:

ITEMNO_ACC

GL_ACCOUNT

COND_KEY

TAX_CODE

DIRECT_TAX

30

230005

MWAS

A2

X

20

230005

MWAS

A2

X

10

230005

MWAS

A2

X

DOCUMENTHEADER:

BUS_ACTRFBU
USERNAMEKARINA
HEADER_TXTVTA. PROD. Y/O SERVI
COMP_CODE3000
DOC_DATE20120625
PSTNG_DATE20120625
FISC_YEAR2012
FIS_PERIOD6
DOC_TYPEDR
REF_DOC_NO117

ACCOUNTGL:

ITEMNO_ACCGL_ACCOUNTITEM_TEXTCOMP_CODEPLANTFIS_PERIODFISC_YEARPSTNG_DATEVALUE_DATETAX_CODECOSTCENTER
20700100Aceite Usado, Nov 2030003000620122012062520120625A23061000002
30700100Aceite Usado, Dic 2030003000620122012062520120625A23061000002

ACCOUNTRECEIVABLE:

ITEMNO_ACCCUSTOMERGL_ACCOUNTCOMP_CODEPMNTTRMSBLINE_DATEITEM_TEXTTAX_CODE
103000051210003000NT3020120625Venta Aceite UsadoA2

CURRENCYAMOUNT:

ITEMNO_ACCCURRENCYAMT_DOCCURAMT_BASETAX_AMT
30MXN48418.4000-41740.0000-6678.4000-
20MXN34962.4000-30140.0000-4822.4000-
10MXN83380.87188011500.8

The BAPI returns the error: E RW 14           FI/CO interface: Line item entered several times $ 0000000010      

It seems I'm not filling correctly the accounttax, any suggestion? how could I resolve this issue?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
581

Hi, You should pass the Account tax line as below.

ITEMNO_ACCGL_ACCOUNTCOND_KEYTAX_CODEDIRECT_TAX
40230005MWASA2X

The corresponding amount needs to be passed to the Currency amout table.

2 REPLIES 2
Read only

Former Member
0 Likes
582

Hi, You should pass the Account tax line as below.

ITEMNO_ACCGL_ACCOUNTCOND_KEYTAX_CODEDIRECT_TAX
40230005MWASA2X

The corresponding amount needs to be passed to the Currency amout table.

Read only

0 Likes
581

Thanks, problem solved!