cancel
Showing results for 
Search instead for 
Did you mean: 

Number of line Smartforms

Former Member
0 Kudos

Hi,

is it possible to calculate the number of line in a loop? In the loop i have lot of text with condition, and i want to know if it's possible to know how many line they are in the loop.

If it's not possible, have an other question, is it possible to write a text in the down of a window?

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the command LINES which gives the number of records in the internal table.

For eg: w_count = LINES( it_tab ).

You will get no. of records in w_count.

Yes, You can write text in the window.

Thanks,

Phani Diwakar.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi!

All lines within an internal table:

DATA: gv_lines TYPE i.

DESCRIBE TABLE itab LINES gv_lines.

The number of the actual line can be found in the SY-TABIX system variable.

Regards

Tamá

Former Member
0 Kudos

Please be clear with your question