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

Dynamic Selection Screen

Former Member
0 Likes
373

Hi all,

How can create a dynamic selection screen by using Comments.

Regards,

Smita

1 ACCEPTED SOLUTION
Read only

rejish_balakrishnan
Contributor
0 Likes
336

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

rejish_balakrishnan
Contributor
0 Likes
337

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.