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

Enable already disabled selection screen block

Former Member
0 Likes
1,209

Could anyone please tell me how to enable the disabled selection screen block(disabled using screen-active = '0').The block was deactivated when the first selection screen was checked.

Now,I need to enable it again during my second checkbox selection.

Could anyone please tell me how to enable the disabled selection screen block(disabled using screen-active = '0').The block was deactivated when the first selection screen was checked.

Now,I need to enable it again during my second checkbox selection.

9 REPLIES 9
Read only

Former Member
0 Likes
1,180

Small correction : The block was disabled when the first checkbox was selected.

Read only

Former Member
0 Likes
1,180

Hi for the second check box

give screen-active = 1.

In the screen loop.

Regards,

Pravin

Read only

0 Likes
1,180

Hi Pravin,

screen-active = '1' is set. My code isnt working inspite of that. Thanks for ur reply

Read only

0 Likes
1,180

Hi,

Kindly show how you built your selection-screens.

thanks,

Read only

Former Member
0 Likes
1,180

Assign a MODIF ID to the screen block and code as below:

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'ABC' AND CHECKBOX2 IS NOT INITIAL. "ABC IS MODIF ID

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Read only

0 Likes
1,180

Hi Amit,

I ve coded the same way ! Still no luck . Thanks for ur response

Read only

0 Likes
1,180

Hi shweta

let assunme you have 2 check boxex CHB1 and CHB2.

MODULE modify_screen OUTPUT. " create a module in PBO.

if chb1 = 'x'.

loop at screen.

if screen-group1 = 'ABC'. " group id assgned to

screen-active = 0. " disabling your screen

modify screen.

endif.

endloop.

elseif.

chb2 = 'X'.

loop at screen.

if screen-group1 = 'ABC' AND screen-active = 0.

screen-active = 1.

modify screen.

endif.

endloop.

endif.

Try this I hope it will work for you.

thanks

Lalit Gupta

Read only

Former Member
0 Likes
1,180

Did u solve the issue?

If not paste your code here so that will be easy to idetify the issue.

Regards,

Pravin

Read only

0 Likes
1,180

Hi Pravin/Lalit,

Thanks for ur help. My issue got solved.

Regards,

Shweta.