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

module pool

Former Member
0 Likes
730

Hi,

i am designing one screen in module pool, there i am putting one "CHECK" box, initially all the fields on that screen are disabled, when ever i choosen that "CHECK" box automatically all the fields should get enabled (with out entering "ENTER" key).

can any one suggest me on this.

Thnaks & Regards,

Sreeram.

6 REPLIES 6
Read only

Former Member
0 Likes
714

Try using User command for this event & do the coding in tat...

Read only

0 Likes
714

Hi Mathu,

can you tell me where i have to set this user command, if you have any sample code please send me.

Thanks & Regards,

Sreeram

Read only

Former Member
0 Likes
714

Hi,

Do onething.

assign a group to all your screen field in the properties window.

then in PBO event write.

If p_check = 'X'.

set fields in active mode.

ELSE.

disable mode.

ENDIF.

Hope u got an idea.

reward if helpful

ping me back if ne query.

Regards

Azad.

Read only

0 Likes
714

Hi Azad,

in this case, until and unless i press the "ENTER" key or some other key it will not go to PBO. with out pressing any key i wnat to provide this functionality.

i want to check the "CHECK" box automatically it should enable all these fields.

like report selection-screen, we will set one user command and by using Selection-screen output event we can do, the same functionality i need it in module pool.

Thanks,

Sreeram.

Read only

0 Likes
714

Try this.

AT user-command.

If p_check = 'X'.

enable

ELSE.

Disable.

endif.

Regards

azad.

Read only

former_member491305
Active Contributor
0 Likes
714

Hi Prasad,

I assume that you have a check box in screen ,not in selection screen.So You just got to set one function code for that check box in attributes of that check box in screen painter,then only Both PAI and PBO event of that screen will trigger.After that you can write the code in PBO module to change the screen attributes .

In PBO,

Loop at screen.

If screen-group1 = 'CHK'.

if w_check = 'X'.

screen-input = 1.

else.

screen-input = 0.

endif.

Endif.

Modify screen.

ENDLOOP.