2009 Aug 17 1:04 PM
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.
2009 Aug 17 1:13 PM
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
2009 Aug 17 1:07 PM
2009 Aug 17 1:08 PM
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
2009 Aug 17 1:09 PM
2009 Aug 17 1:13 PM
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