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: 

Add logic of splitting 999 line ietms in a BDC program...?

Former Member
0 Kudos

Gurus,

I had written a function module that parks a FI document.In the FM i have embedded a BDC program of FV50L transaction..The FM works fine and it parks the FI document and generates the document number.

Now how shud i include the logic of parking more then 999 line items..Can any of u please provide insight into that...I did search SDN on this and i was able to find some gud posts but none of them talk about splitting in case of a BDC program...I am not able to figure out how will it be implemented...

Please provide some inputs on this.....

Thanks

Cheers:

Sam

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Did you see this:

<a href="https://forums.sdn.sap.com/click.jspa?searchID=5805497&messageID=4168645">https://forums.sdn.sap.com/click.jspa?searchID=5805497&messageID=4168645</a>

Rob

7 REPLIES 7

Former Member
0 Kudos

Did you see this:

<a href="https://forums.sdn.sap.com/click.jspa?searchID=5805497&messageID=4168645">https://forums.sdn.sap.com/click.jspa?searchID=5805497&messageID=4168645</a>

Rob

0 Kudos

Yes, I did Rob...

But i am not able to figure out how to code....Kindly help me in that....I am able to understnd that it has to be split....

How shud i code...

?

Thanks

Sam

0 Kudos

Hi,

If your line item number get incremented by 10,20,30 40 50.... then you can go upto 9999, otherwise if your line item incremented by like 1,2,3,4,5... you can go upto 99999.

in that case why it needed to split the line item from 999?

0 Kudos

IS it tru A@S...?

Its a BDC program and it will add line itmes one line at a time....so i have to worry about splitting the line ietsm...if i have to do it can u please help me with the code on doing it....

I have no idea on how it has to be implemented...

Thanks

Sam

Former Member
0 Kudos

BSEG-BUZEI is 3 digit numc so the max is 999 line items. Usually 950 is set so that remaining is left for tax lines which are automatically calculated. So in the BDC keep a count on line items and at 950 post the document and Start with a new document.

0 Kudos

Any inputs gurus....How shud i code on this...?

Thanks

Sam

0 Kudos

Sam - why don't you try the code yourself and if you have specific questions, get back to the forum

Rob