Application Development 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: 

Display Mode - Module Pool

Former Member
0 Kudos
1,326

Hi Friends,

Need help in Module Pool,

when button click want to display screen in Display Mode only.....

1 ACCEPTED SOLUTION

Former Member
0 Kudos
402

Hi,

Check program for Tcode TZ50

4 REPLIES 4

Former Member
0 Kudos
403

Hi,

Check program for Tcode TZ50

former_member188685
Active Contributor
0 Kudos
402

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.

Former Member
0 Kudos
402

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.

Former Member
0 Kudos
402

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