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

Former Member
0 Likes
1,070

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

6 REPLIES 6
Read only

paul_bakker2
Active Contributor
0 Likes
1,004

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

Read only

0 Likes
1,004

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".

Read only

0 Likes
1,004

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

Read only

Former Member
0 Likes
1,004

In currency items table, you should have items corresponding to each of payable items.

You might have mapped items incorrectly.

Read only

0 Likes
1,004

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.

Read only

0 Likes
1,004

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