2007 Sep 11 5:40 PM
Hi gurus,
Urgent help required on this issue....
Can BAPI_ACC_DOCUMENT_POST HANDLE MORE THEN 999 LINE ITEMS IN FI...if it cannot then how shud we split the line items so that it doesnt throw an error....
please suggest...
Cheers:
Jim
2007 Sep 11 5:44 PM
It cannot.
The solution is to group the line items into smaller groups, total the debits and credits and post this total to a special offset account. It should net to zero when you are done.
Rob
2007 Sep 11 5:51 PM
Hi Rob,
Thanks for your reply...
Can you provide me some code samples that i can look at on how to do this as i am new to this...
Your help will be really appreciated...
Thanks
Cheers:
Sam
2007 Sep 11 6:08 PM
I don't think I do; however, it was one of the first things I wrote many years ago, so even if you're new to it, it shouldn't be a problem.
It's more of a business problem, so you may want to talk to the funtional consultants about the process.
Rob
2007 Sep 11 7:09 PM
Hi Rob,
I did talk to the functional people and they say that i have to write the logic to handle this situation...
Could you provide me some inputs on this....I have no idea on how i shud proceed or how i shud split the line items....
Sample code would be helpful as I am still in the learning phase..
Thanks for your cooperation.
Cheers:
Sam
2007 Sep 11 7:31 PM
Loop through your data and keep track of the totals.
If you have created more than say 950 line items
create a balancing entry for the 950 items.
clear the totals
start a new document.
endif.
process this line item.
endloop.
Create a balancing entry for the last group.
Rob