cancel
Showing results for 
Search instead for 
Did you mean: 

index in classical report?

Former Member
0 Kudos

i want the serial numbers for my final output table to be displayed, ie. 1,2,..n.

iam using classical report. pls tel the procedure.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thanks all.

Former Member
0 Kudos

Hi,

if u wants that in your list u can go for system fields

SY-PAGNO

Current page during the list creation.

SY-CPAGE

Page number of the first displayed page of the list from which the event was triggered. Counting starts at 1

with luck,

pritam.

Former Member
0 Kudos

Hi,

If you want the serial numbers to be displayed on the list with out storing then you can do it in two ways..

Assign a counter variable to 1 firstly and as you loop the internal table to write the contents on the list then before writing the contents in the loop assign counter variable = SY-TABIX or directly print SY-TABIX.... If you are loop it in DO-ENDDO then write SY-INDEX....

Or if you want that serial no in internal table then specify that field in your structure of internal table you defined. and after you had retrieved that data into internal table using query or what ever loop that internal table using LOOP--ENDLOOP and assign SY-TABIX to the particular field of internal table structure and modify that field.

Hope you got helpful information.

Any queries please revert back.

Regards

Narin Nandivada