‎2007 Oct 23 1:35 PM
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
‎2008 Jul 17 9:09 AM
‎2010 Oct 28 11:35 PM
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.