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

How to check for screen number

Former Member
0 Likes
5,474

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

Former Member
2,753

Try the variable

SY-DYNNR Current Screen Number

SY-DYNGR Screen Group of Current Screen

3 REPLIES 3
Read only

Former Member
2,754

Try the variable

SY-DYNNR Current Screen Number

SY-DYNGR Screen Group of Current Screen

Read only

Former Member
0 Likes
2,753

The system variable SY-DYNNR stores the screen number.

regards,

Jinson

Read only

GauthamV
Active Contributor
0 Likes
2,753

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.