Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding slno in table control

Former Member
0 Kudos

Hi all,

Can any one tell me how to add serial no in table control of a screen in se80?

Thanks

Priya

2 REPLIES 2

Mohamed_Mukhtar
Active Contributor
0 Kudos

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

0 Kudos

Hi,

Thankss a lot. i have got it.

With regards,

Priya