cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script Program Code

Former Member
0 Kudos

Hello,

I want to write a patch of code in SAP SCript which will fetch multiple lines of data(no of lines fetch is unknown). How can I do it? I tried Perform Endperform but it had limit to the varibales it can send back. I don't know the line items(values) it will return.

i cannot modify print program? How can I do it?

Thanks,

Amol..

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

If you do not want to modify the standard program and achive to display you can use sub-routine calls... firstly, you should identify the element that is displaying the line items and use your sub-routine call inside that element and display all the required fields.

Note: you there is no element which call for line items, I guess there is no other alternative then modifying the driver program.

Regards,

SaiRam

Answers (1)

Answers (1)

Former Member
0 Kudos

if need to count the line items. do one thing call a perform such that the subroutine is called for each line item . now inside the subroutine use a variable to keep the count, incrment it and export it to memory id and then import it again in the next call then increment and export again this way u'll get the count at the end.