Application Development 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: 

Problem in FB60 bapi

Former Member
0 Kudos
53

Hi friends ,

i m developing a prog with bapi of FB60 it always fire the error no 014

i.e.

FI/CO interface: Line item entered several times

i am feeding the data which is given below in the BAPI .

Please help me if anybody has worked on this BAPI

w_item = w_item + 1 .

t_headerdata-COMP_CODE = 'BAI' .

t_headerdata-PSTNG_DATE = sy-datum.

t_headerdata-BUS_ACT = 'RFBU' .

t_headerdata-USERNAME = sy-uname .

t_headerdata-HEADER_TXT = 'ABCsk123' .

t_headerdata-COMP_CODE = 'BAI' .

t_headerdata-DOC_DATE = sy-datum .

t_headerdata-PSTNG_DATE = sy-datum .

t_headerdata-FISC_YEAR = '2007' .

t_headerdata-DOC_TYPE = 'KG' .

t_headerdata-REF_DOC_NO = 'ABCsk123' .

append t_headerdata .

t_currency-itemno_acc = w_item .

t_currency-CURRENCY = 'IDR' .

t_currency-AMT_DOCCUR = '1000' .

t_currency-curr_type = '00'.

append t_currency .

t_accntgl-ITEMNO_ACC = w_item .

t_accntgl-GL_ACCOUNT = '0000619999' .

t_accntgl-COMP_CODE = 'BAI' .

t_accntgl-BUS_AREA = 'JA01' .

t_accntgl-PLANT = 'JA01' .

t_accntgl-doc_type = 'KG' .

t_accntgl-FISC_YEAR = '2007' .

t_accntgl-PSTNG_DATE = sy-datum.

append t_accntgl .

t_ACCOUNTPAYABLE-ITEMNO_ACC = w_item .

t_ACCOUNTPAYABLE-VENDOR_NO = '0000108521' .

append t_ACCOUNTPAYABLE.

Please help as this is very urgent

1 REPLY 1

Former Member
0 Kudos
29

Shouldn't you be incrementing "w_item" before adding in the accounts payable line item... and specifying the t_currency entry for it too?

Jonathan