Application Development 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: 

Can BAPI_ACC_DOCUMENT_POST handle 999 line items...?Please help

Former Member
0 Kudos
300

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

5 REPLIES 5

Former Member
0 Kudos
68

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

0 Kudos
68

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

0 Kudos
68

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

0 Kudos
68

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

0 Kudos
68

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