cancel
Showing results for 
Search instead for 
Did you mean: 

serial numbers

Former Member
0 Kudos

how to print serial numbers for each row in main window

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

for scripts u can increment like &SAPSCRIPT-COUNT(+)&

it will automatically increment.

while using smartforms

Declare a variable in global definition type i.

declare Program lines.

input out put

count count

in count lines,

count = count + 1 .

u r no will be incremented.

with Regards,

Kiran.G

former_member184657
Active Contributor
0 Kudos

if u are using smartforms:

define a field srno in ur table eg.

types: begin of ty_ekpo,

ebeln type ekpo-ebeln,

ebelp type ekpo-ebelp,

srno type sy-tabix,

.......

end of ty_ekpo.

and then while u are looping ur main internal table add this code:

loop at ist_ekpo into wa_ekpo.

wa_ekpo-srno = sy-tabix.

...............

endloop.

hope it helps.

pk

former_member196280
Active Contributor
0 Kudos

Use &SAPSCRIPT-COUNTER_1(+)& it will automatically increment with + 1 .. it will display serial numbers.

close the thread once your question is answered.

Regards,

SaiRam