on 04-28-2008 8:29 AM
how to print serial numbers for each row in main window
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.