2014 Nov 21 5:29 PM
Hi friends,
I am using BAPI_ACC_DOCUMENT_POST function module for posting account payable, currency and tax details.
I have 1 item in accountpayable (item no 00001 ), 3 currency items in curreny table (00001, 00001, 00001) and 3 tax items in tax table (00001, 00001, 00001).
But when I post using BAPI , I m getting error as "fi interface line items several entries".
Can pls help me on this.
Sudheer
2014 Nov 22 3:34 AM
Hi,
Your parameters are wrong.. you need to debug to where the message is raised.
Not a very satisfying answer, I know, but you don't give enough information to pinpoint the problem.
cheers
Paul
2014 Nov 22 7:05 AM
hi paul,
i have already done the debugging and was not able to find the issue.
i am using accountpayable ,Currency and accounttax internal table.
in accountpayable internal table :
item_acc(first field in the structure) has 0001 value..
currencytable:
0001....
0001....
0001....
in tax table :
0001...
0001...
0001..
But when i post using FM i am getting error message as "Several line item entries".
2014 Nov 23 10:02 PM
Hi,
The ITEMNO_ACC field is what links the ACCOUNTPAYABLE item with their corresponding CURRENCYAMOUNT and ACCOUNTTAX item.
If, for example, you use itemno_acc values 0001, 0002 and 0003 in the ACCOUNTPAYABLE table, then you need to use the same item numbers in CURRENCYAMOUNT and ACCOUNTTAX.
And don't repeat them (like you did with 0001).
cheers
Paul
2014 Nov 23 5:34 PM
In currency items table, you should have items corresponding to each of payable items.
You might have mapped items incorrectly.
2014 Nov 26 1:01 PM
Hi Chinmay,
i am uploading 2 currencies information for GL.
GL account:
Line item -0002
Currency:(for this currency ,there are 2 tax records which got by calculate_tax_from_grossamount)
Line item : 0002(first Currency)
0003(first tax record)
0004(second tax record)
0002(Second Currency)
0005(first tax record)
0006(second tax record)
accounttax:
Line item : 0003
0004
0005
0006
But i am getting errore message as "FI/CO line item without transaction currency information" for line item 0003 in currency.
Please help me on this.
2014 Nov 26 10:06 PM
Hi,
You don't seem to be grasping it... when you are passing an item to a BAPI, you identify it with an item number (eg 0001). This is just an identifier.
Any other items related to this 0001 item (such as the Currency or Tax items) need to use the same identifier. That's the only way the BAPI knows that they are related.
For example:
ACCOUNTGL
0001
0002
CURRENCYAMOUNT
0001 .... $400 <-- related to item 0001
0002 ... $600 <-- related to item 0002
ACCOUNTTAX
0001 ........ 001 <-- related to item 0001
0001 ......... 002
0002 ......... 001 <-- related to item 0002
The same concept is used with most BAPIs.
cheers
Paul