‎2007 Jul 26 3:53 PM
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.
‎2007 Jul 26 3:56 PM
Try using User command for this event & do the coding in tat...
‎2007 Jul 26 4:00 PM
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
‎2007 Jul 26 3:58 PM
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.
‎2007 Jul 26 4:03 PM
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.
‎2007 Jul 26 4:10 PM
Try this.
AT user-command.
If p_check = 'X'.
enable
ELSE.
Disable.
endif.
Regards
azad.
‎2007 Jul 26 4:23 PM
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.