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: 

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

Former Member
0 Kudos

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.

20 REPLIES 20

GauthamV
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

viquar_iqbal
Active Contributor
0 Kudos

Hi

use this syntax

CALL SCREEN dynnr

[STARTING AT col1 lin1

[ENDING AT col2 lin2]].

and call it in PAI

I355602
Advisor
Advisor
0 Kudos

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

uwe_schieferstein
Active Contributor
0 Kudos

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

0 Kudos

Hello all.

I want to display that call screen window as a pop-up window.

It means i want to display it as a small window.

0 Kudos

Hi,

Yes when you call a subscreen, then it will be displayed as a popup only.

Regards,

Tarun

0 Kudos

No i dont want to call it as a subscreen.I want to call it as a screen only.Can i use this pop-up function module to display like a pop-up window.

In that options what i have to give the data.Plz tell me.For diagnosetext,textline1,titel.What i have to give there.

call function 'ZPOPUP_TO_CONFIRM_WITH_MESSAGE'

exporting

  • DEFAULTOPTION = 'Y'

diagnosetext =

diagnosetext1 =

  • DIAGNOSETEXT2 = ' '

  • DIAGNOSETEXT3 = ' '

textline1 =

  • TEXTLINE2 = ' '

titel =

  • START_COLUMN = 25

  • START_ROW = 6

  • CANCEL_DISPLAY = 'X'

  • IMPORTING

  • ANSWER =

0 Kudos

Hi friend,

Like Uwe said, use Call screen in PBO of another screen.

For example in PBO of screen 200 use like below.

MODULE status_0200 OUTPUT.

CALL SCREEN 0100 STARTING AT 40 9 ENDING AT 80 11. <--- Change Positions accordingly

ENDMODULE. " STATUS_0200 OUTPUT

Thanks..

Edited by: Sap Fan on Mar 9, 2009 5:55 AM

0 Kudos

Hi,

Use FM POPUP_TO_CONFIRM_STEP

In this you will get three buttons YES, NO and CANCEL.

For YES you will get answer as J

For NO you will get answer as N

For CANCEL you will get answer as A

So you cal code like:-


if v_ans = 'J'. "user clicked yes
  "code
elseif v_ans = 'N'. "user clicked no
  "code
elseif v_ans = 'A'. "user clicked cancel
  "code
endif.

Hope this helps you.

Regards,

Tarun

0 Kudos

Sorry i am not getting like a pop-up window.I have to display it like a pop-up window.Tell me how to do it exactly

0 Kudos

Hi Neeraja,

The screen which you are calling using CALL SCreen in that screen's attribute make it as Modal Dialog Screen not as a normal screen.And call that screen using CALL SCREEN 100 STARTING AT 10 10.

Hope this works.

Regards,

Qamar

0 Kudos

yes i am doing that.But i have to display it like as a pop-up window.

0 Kudos

Hi,

Goto se51 and enter the program name(your report program name or the name of the program from which you are calling the screen 100) and the screen no ie 100.In the Attributes tab select the screen type to Modal Dialog Box.And rest is as that of the normal screen.And now call the screen using CALL SCREEN 100 STarting at 10 10 in your main program and write this call screen in the User command of that program.

Hope now it clears your doubt.

Regards,

Qamar.

0 Kudos

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..

I355602
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

qamar_javed
Participant
0 Kudos

Hi Neeraja,

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

Regards,

Qamar.

Former Member
0 Kudos

thanQ