Skip to Content
author's profile photo Former Member
Former Member

Error while posting data with BAPI_ACC_ACTIVITY_ALLOC_POST

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 17, 2008 at 08:09 AM

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

    (one for sender, one for receiver)

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 10: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.