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

POSTING_INTERFACE_DOCUMENT - too many lines error

Former Member
0 Likes
1,328

Hi experts,

I am using BAPI POSTING_INTERFACE_DOCUMENT for posting.

This BAPI has a restriction for 950 lines posting at a time.

But user wants to post it for more than 3000 lines at a time.

What should be the possible solution for it other than asking the user to split the file and post it.

Can anyone please tell me is it possible by some way to increase the no. of lines which is 950 in this case.

Thanx in advance.

Regards,

Anil.

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
870

The field BSEG-BUZEI has only three digits, and SAP reserves some lines, so you should not be able to force the data (else duplicate rows when BUZEI = 999 + 1 = 0...)

You may programmatically use a "technical account", when the number of lines reach 949, you add a line on this account with an amount that balance the other items (if not already balanced) . Don't forget to cancel the balance of this account on the last block of items (if not already zeroed). Nevertheless you will got more than one document, but user don't have to manage the size of their documents.

Regards,

Raymond

Read only

0 Likes
870

Hey Raymond,

Can u plz explore on ur soln.

I didnt get dat logic of adding technical acc n addn of line with an amount and then cancel it.

Do u mena adding field technical acc in my final table b4 updating it thru BAPI or sumthing else.

I have not understand it properly.Plz throw some light on it.

Thanx,

Anil.

Read only

0 Likes
870

Basically you post documents of 950 lines, but you must add a "dummy" item to balance the documents. User did balance the document of 3000 items, but subset of 950 lines are not balanced (debit = credit)

Regards,

Raymond

Read only

Former Member
0 Likes
870

Hi Anilsagrawal,

You can store first 950 lines in one internal table

Then Call FM POSTING_INTERFACE_DOCUMENT in the same program

next 950 lines in another internal table...

Then Call FM POSTING_INTERFACE_DOCUMENT in the same program

next 950 lines in another internal table...

Then Call FM POSTING_INTERFACE_DOCUMENT in the same program

Repeat it untill your all records(3000) get processed ...

OR

You can copy FM POSTING_INTERFACE_DOCUMENT and modify according to your requirement...

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya