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: 

Dynamic Selection Screen

Former Member
0 Kudos
87

Hi all,

How can create a dynamic selection screen by using Comments.

Regards,

Smita

1 ACCEPTED SOLUTION

rejish_balakrishnan
Contributor
0 Kudos
50

Hi,

Report mydemo.

DATA: PLANT(20) type C.

SELECTION-SCREEN BEGIN OF SCREEN 500.
  SELECTION-SCREEN COMMENT 10(20) TEXT-001
                   FOR FIELD PARM.
PARAMETERS plnt LIKE (PLANT).
SELECTION-SCREEN END OF SCREEN 500.

PLANT = 'MARC-WERK'.

CALL SELECTION-SCREEN 500.

Also you can keep flag value in at selection-screen output

at selection-screen output.
if radio1 = 'X'.
flag = 1.
else.
flag = 0.
endif.

at selection-screen.
if w_flag = 1.
loop at screen.
if screen-name = 'FIELD1'.
screen-active = 1.
endif.
endloop.

Let me know if u understood the the process behind it.

1 REPLY 1

rejish_balakrishnan
Contributor
0 Kudos
51

Hi,

Report mydemo.

DATA: PLANT(20) type C.

SELECTION-SCREEN BEGIN OF SCREEN 500.
  SELECTION-SCREEN COMMENT 10(20) TEXT-001
                   FOR FIELD PARM.
PARAMETERS plnt LIKE (PLANT).
SELECTION-SCREEN END OF SCREEN 500.

PLANT = 'MARC-WERK'.

CALL SELECTION-SCREEN 500.

Also you can keep flag value in at selection-screen output

at selection-screen output.
if radio1 = 'X'.
flag = 1.
else.
flag = 0.
endif.

at selection-screen.
if w_flag = 1.
loop at screen.
if screen-name = 'FIELD1'.
screen-active = 1.
endif.
endloop.

Let me know if u understood the the process behind it.