Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

screen -invisble

hi experts,

I HAVE DOUBT ON INVISIBLE BUTTON

i am taking two push buttons p1 ,p2

if i am click on p1, same time p2 will invisible.

plz send me code realted to this functionality, with simple example

regards

Anand

Former Member
Former Member replied

Hi Anand,

When user clicks the button p1, capture the user action (okcode) in the PAI of the screen. i.e) your MODULE USER_COMMAND INPUT.

This you can simply do by assigning values.

<b>save_okcode = okcode.</b> (okcode should be defined in the attributes of the screen)

Then in the PBO where the screen is generated, you can make the button p2 to become invisible by looping thru the System table SCREEN which has all the attributes of the screen elements like this...

<b>MODULE Status_100 OUTPUT.

Case save_okcode.

When 'p2'. </b>" p2 is the function code for button p2 defined in screen<b>

loop at screen.

if screen-name = 'p2'.

screen-invisible = 1.

endif.

endloop.

endcase.</b>

That will change button p2 's status to invisible and display.

Hope that helps!

regards,

Naveenan.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question