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: 

S.NO numbers

Former Member
0 Kudos
95

hi all,

how to display S.NO. automatically in report according to the records present.

i have used a field name from table SYST. its not working. can anyone help me out pls.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
66

Hi Firend,

Do u only want to use a field from SYST table...if so u can use sy-tabix in the loop of ur internal table, but dont use it directly pass it into a local variable defined as INDEX Like SY-TABIX.

Or if u done want to use this u can use a counter in your loop as SN = SN + 1 and pass it into the serial no. field of for internal table u r constructing.

Hope this helps u.

Regards,

Akash Rana

4 REPLIES 4

Former Member
0 Kudos
66

Hai,

USe sy-tabix for automatic serial number.

former_member555112
Active Contributor
0 Kudos
66

Hi,

Do you mean the serial no??

When you are looping on your internal table to display the records; the field sy-tabix will contain the record no.

You can use the same to display or you increment any counter within the loop and display the same.

Regards,

Ankur Parab

Former Member
0 Kudos
66

hi,

In loop .

you can use.

SY-TABIX.

Regards,

Vijay

Former Member
0 Kudos
67

Hi Firend,

Do u only want to use a field from SYST table...if so u can use sy-tabix in the loop of ur internal table, but dont use it directly pass it into a local variable defined as INDEX Like SY-TABIX.

Or if u done want to use this u can use a counter in your loop as SN = SN + 1 and pass it into the serial no. field of for internal table u r constructing.

Hope this helps u.

Regards,

Akash Rana