cancel
Showing results for 
Search instead for 
Did you mean: 

flipping the visibility of a screen element.

Former Member
0 Kudos

how to change the visibility of a screen element if a specified condition is satisfied?

Accepted Solutions (1)

Accepted Solutions (1)

glio_ad
Active Participant
0 Kudos

Hi,

check this:

if the screen element is called P_TEST for example, you can hide it with the following code in the PBO module of your screen

LOOP AT SCREEN.

if screen-name cs 'P_TEST'.

if <HERE IS YOUR CONDITION.....>.

screen-active = 0.

MODIFY SCREEN.

endif.

endif.

ENDLOOP.

If this element is in the selection-screen, you could do the following:

PARAMETERS: p_test(1).

AT SELECTON-SCREEN OUTPUT.

LOOP AT SCREEN.

if screen-name cs 'P_TEST'.

screen-active = 0.

MODIFY SCREEN.

endif.

ENDLOOP.

If you just need to show the element but not allow for input, then you can change screen-active = 0. with screen-input = 0.

Please reward if it helps.

Regards,

George

Former Member
0 Kudos

hello dear

i appreciate your assistance but my problem is not yet solved

regards

brown

glio_ad
Active Participant
0 Kudos

Hi.

Can you please say exactly what you need to do so that I can help you more?

Regards,

George

Answers (0)