2008 Jul 31 7:19 AM
Hi Friends,
Need help in Module Pool,
when button click want to display screen in Display Mode only.....
2008 Jul 31 7:27 AM
2008 Jul 31 7:27 AM
2008 Jul 31 7:39 AM
In PBO you have to write the code for it.
First capture the action (ok_code) for button you click .based on that you have to modify the screen.
using the LOOP AT SCREEN.
ENDLOOP.
you need to write this code in PBO module.
if all the fields you want to display then you can do this
or else with the help of screen name or screen group1 ,2,3,4
LOOP AT SCREEN .
screen-input = 0.
modify screen.
ENDLOOP.
2008 Jul 31 8:15 AM
Hi Sharavan,
I hope you want to achieve the Toggle Display Functionality. To achieve this you have perform this following steps:
1. Define the names Properly for each of the individual Screen Elements. Like for Button you can do BTN_01.. etc etc...
2. In the PBO Module define a Module like MODULE screen_settings. In this you will run the following code:
LOOP AT SCREEN.
IF SCREEN-NAME = 'BTN_01'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
For a group of BTNs or Text Elements you can form a GROUP and can Enable and Disable all at once.
3. The Next step is the handling of the Table Control.In the PBO event there you will have the LOOPing the Table control.
There inside the loop place a Module and enable and disable each and individual rows.
You must keep a central Instance from where you can check whether you want the screen elements in DISPLAY/CHANGE mode.
Hope this will help.
Thanks,
Samantak.
2008 Jul 31 10:03 AM
Hi,
If you are calling a screen when button is clicked then write the screen modification code in the PBO event of the called screen... If you want to modify the current screen place the screen modification logic in the PAI event
case ok_code.
when <Button>
loop at screen.
screen-input = 0.
endloop.
endcase.
regards
padma