cancel
Showing results for 
Search instead for 
Did you mean: 

Call Same screen in display Mode

Former Member
0 Kudos

Hi all ,

I have designed a screen with Inputfields as UI elements.

On a button click , i need to display the same screen in DISPLAY mode .

Is there any solution other than making a copy of the same screen ?

Thanks

Supriya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi supriya,

Create Transparent Container or Tray to place all your input fields.

Create one attribute of type WDY_BOOLEAN and bind it to enable property of your TC or Tray.

On action of button click enable that property using set_attribute.

  • get single attribute

lo_el_context->set_attribute(

EXPORTING

name = `ENABLED` // your attribute

value = ABAP_FALSE ).

Cheers,

Kris.

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

Put all the elements in a Transparrent container and disable the containcer in the event handler.

To disable, create a context attribute of type wdy_boolean and set the values as needed.

Do not forget to bind the enabled property of the transparent container to the context attribute.

Thanks,

Aditya.