Skip to Content
author's profile photo Former Member
Former Member

Display Mode - Module Pool

Hi Friends,

Need help in Module Pool,

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 06:27 AM

    Hi,

    Check program for Tcode TZ50

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 31, 2008 at 06: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.