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

Error while posting data with BAPI_ACC_ACTIVITY_ALLOC_POST

Former Member
0 Likes
1,238

Hi All

I am using BAPI_ACC_ACTIVITY_ALLOC_POST to post documents but getting error as 'The document has too many line items (maximum number = 997). Even though my input file has only 900 records.

I tried reducing it to 600 . Even then I am getting same error.

Has anybody come across this , message class BK (829).

I have traced that this message comes from function module K40C_DOCUMENT_CREATE which is being called internally in the BAPI.

Please help me on this , its urgent.

Thanks & Regards

Babita Sharma

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
778

There are two lines in accounting for each line in the BAPI DOC_ITEMS parameter

(one for sender, one for receiver)

Regards

Read only

Former Member
0 Likes
778

Change your code to create 400 line items for each document number. I mean, 1 header for 400 line items.

That way you will have one structure HEADER and 400 lines in table ITEMS.

RMS.