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: 

How to check for screen number

Former Member
0 Kudos
3,195

Hi,

Now i writing an enhancement for VA01, i want to work this enhancement only for tcode VA01 and screen '4301'

checking for tcode is done using sy-tcode = 'VA01'

is there any option to use checking for screen number

Regards

Nausal

1 ACCEPTED SOLUTION

Former Member
474

Try the variable

SY-DYNNR Current Screen Number

SY-DYNGR Screen Group of Current Screen

3 REPLIES 3

Former Member
475

Try the variable

SY-DYNNR Current Screen Number

SY-DYNGR Screen Group of Current Screen

Former Member
0 Kudos
474

The system variable SY-DYNNR stores the screen number.

regards,

Jinson

GauthamV
Active Contributor
0 Kudos
474

You can use system variable SY-DYNNR.


 CASE g_action.
  WHEN 'A01'.
      e_cprog   = 'SAPLZMEMIGOBADI'.
      e_dynnr   = '0004'.                     "External fields: Input
      e_heading = 'ADD DATA-GR item'(001).
ENDCASE.