‎2009 Aug 05 11:38 AM
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.
‎2009 Aug 05 11:45 AM
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
‎2009 Aug 05 12:19 PM
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.
‎2009 Aug 05 12:21 PM
‎2009 Aug 05 12:07 PM
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