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: 

Adding selection screen elements at run time

Former Member
0 Kudos

Hi,

I have a selection screen with four drop down list which has 20 elements.

When i select any element from drop down, i must be able to add some other UI in the same line.

DD1

DD2

DD3

DD4

If i choose a first item in DD1,

DD1 Lable1 IP1 lable2 IP2

DD2

DD3

DD4

these lables and input fields are not known till selecting the item.

Will i be able to do this in selection screen?

Thanks

Vimalraj

4 REPLIES 4

Former Member
0 Kudos

Have a look at this Report

demo_dynpro_modify_screen

0 Kudos

Hi..

I wanted to add UI elements to selection screen at run time.

Is it possible?

To my understanding, it possible to change the properities of the exixting elements at runtime.

If there is a way, please help me.....

Former Member
0 Kudos

Have a look at this Report. you have to Capture events on User Command and modify the screen accordingly.

REPORT  ztesttt.

PARAMETERS: test1(10) TYPE c MODIF ID sc1,
            test2(10) TYPE c MODIF ID sc2,
            test3(10) TYPE c MODIF ID sc1,
            test4(10) TYPE c MODIF ID sc2.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-group1 = 'SC1'.
      screen-active = '1'.
      MODIFY SCREEN.
      CONTINUE.
    ENDIF.
    IF screen-group1 = 'SC2'.
      screen-ACTIVE = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

0 Kudos

I have to add new UI elements on the above actions.

Not modifying the properities of existing UI elements.

I guess my question is understandable.