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: 

number of line items

former_member187457
Active Contributor
0 Kudos

Hi all

I am working on Check Printing..........using SAP Script.......n program RFFOUS_C

I m using the already existing fields...in the script F110_PRENUM_CHECK......

My requirement was to create a invoice table with line items (REGUP-BELNR)....

now i want the total number of invoice line items in the table.....

i want it to be printed on the invoice as a footer......

As we knw tht invoice line items r coming from the program but i am unable to figure out how to get it...........

once get it i ll use routine to get it into the check print.......

bt first i want number of invoice line items........

Plz help me...........

Thnx

Rohit

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can count the number of internal table line items using

DESCRIBE TABLE <itab> LINES <v_lines>.

And then once you get the count, display the same variable in footer window.

Thanks,

Srinivas

1 REPLY 1

Former Member
0 Kudos

You can count the number of internal table line items using

DESCRIBE TABLE <itab> LINES <v_lines>.

And then once you get the count, display the same variable in footer window.

Thanks,

Srinivas