Skip to Content
avatar image
Former Member

How to call "call screen in module pool.how to display it like popup window

How to call "call screen" in dialog program and where it has to call.Whether it has to call in se38 or se51.Please tell me the procedure.I have to call screen 0100.In that i designed the table control.Now i have to call that screen and i have to display it like a "pop-up window".How to write a code for that.Where i have to write the code.What is the procedure.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

10 Answers

  • Mar 09, 2009 at 04:35 AM
    module USER_COMMAND_0100 input.
    
    Case sy-ucomm.
    
    when 'DISP'.
    call screen 0300.
    
    when 'BACK' or 'EXIT' or 'CANCEL'.
    LEAVE TO SCREEN 0.
    
    endcase.
    endmodule.                 " USER_COMMAND_0100  INPUT
    
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 09, 2009 at 04:40 AM

    In PAI of the module pool, you can see the 'USER_COMMAND' module, if you double click on that then it will take you to SE38, in between Module-Endmodule, you can call the required screen based on sy-ucomm value.

    You no need to use subscreen here, just use CALL SCREEN ... (addition) STARTING AT...ENDING AT.

    Regards,

    ~Satya

    Edited by: Satya suresh Donepudi on Mar 8, 2009 11:42 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 09, 2009 at 04:40 AM

    Hi

    use this syntax

    CALL SCREEN dynnr

    [STARTING AT col1 lin1

    [ENDING AT col2 lin2]].

    and call it in PAI

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 09, 2009 at 04:40 AM

    Hi,

    Take the screen 0100 as a sub-screen and take a sub-screen area on this screen as SUBAREA and you call this sub-screen in module pool as:-

    At screen logic:-

    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN SUBAREA INCLUDING V_PROG V_DYNNR. "call subscreen with subscreen
    
    PROCESS AFTER INPUT.
      MODULE INIT_SUBSCREEN.
      CALL SUBSCREEN SUBAREA.
    

    In PAI,

    MODULE INIT_SUBSCREEN.
      CASE sy-ucomm.
        WHEN 'DISPLAY'. "when user clicks a button to call table control
          V_PROG = sy-repid.
          V_DYNNR = '0100'.
      ENDCASE.
    ENDMODULE.
    

    Hope this helps you.

    Regards,

    Tarun

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 09, 2009 at 04:41 AM

    Hello

    In order to display a screen as popup you need to use the following options with the CALL SCREEN statement:

    CALL SCREEN '0100' STARTING AT xx yy
                                     ENDING AT nn mm.

    Regards

    Uwe

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Change x,y values accordingly, u will get a small window popup window.

      Ex:

      CALL SCREEN 0100 STARTING AT 40 9 ENDING AT 80 11.

      In screen layout of 0100 put two push buttons like OK and CANCEL and it will also appear in popup window.

      Thanks..

  • Mar 09, 2009 at 05:48 AM

    Hi,

    Create a screen in SE51 with two buttons and call this screen using sytax:-

    CALL SCREEN 0100 STARTING AT 20 8 ENDING AT 60 12.
    

    But its better that you use a sub-screen and follow my first reply if using module pool programming.

    Hope this helps you.

    Regards,

    Tarun

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 09, 2009 at 05:50 AM

    hi,

    Neeraja S ,

    You can use this in the PAI of your code:

    CALL SCREEN 0100 STARTING AT X Y. 

    Change the XY as your requirement. Ex. 10 10. This will show your screen as a pop up.

    Regards,

    Amit.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 10, 2009 at 05:29 AM

    two things you will have to do...

    1. At first , you will have to go to the attributes of the <screenno> and change it from Normal to Modal Dialog Box.

    2. And then, write the code to call that screen from some other screen.

    CALL SCREEN <screenno> STARTING AT <X1> <Y1> ENDING AT <X2> <Y2>.

    Regards,

    Nilay

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 12, 2009 at 03:52 AM

    Hi Neeraja,

    If you have got your answer mark this thread as answered.

    Regards,

    Qamar.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 12, 2009 at 04:46 AM

    thanQ

    Add comment
    10|10000 characters needed characters exceeded