Application Development and Automation 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: 
Read only

Adding slno in table control

Former Member
0 Likes
547

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
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
490

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

Read only

0 Likes
490

Hi,

Thankss a lot. i have got it.

With regards,

Priya