05-04-2009 11:58 AM
Hi all,
Can any one tell me how to add serial no in table control of a screen in se80?
Thanks
Priya
05-04-2009 12:03 PM
hi,
Lets assume , this is the flow logic.
*&---------------------------------------------------------------------*
*& PROCESS BEFORE OUTPUT
*&---------------------------------------------------------------------*
PROCESS BEFORE OUTPUT.
LOOP AT it INTO wa WITH CONTROL tbctrl "---> tbctrl is the name of the table control
CURSOR tbctrl-current_line.
MODULE defaul_sno.
ENDLOOP.
*&---------------------------------------------------------------------*
*& PROCESS after input
*&---------------------------------------------------------------------*
PROCESS AFTER INPUT.
*&---------------------------------------------------------------------*
*& Module defaul_sno OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE defaul_sno OUTPUT.
data cnt type i.
cnt = tbctrl-current_line + 1.
cnt = cnt - 1.
<screenfield-sno> = cnt.
ENDMODULE. " defaul_sno OUTPUT
Thanks & Regards
05-04-2009 1:15 PM