03-09-2009 4:33 AM
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.
03-09-2009 4: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
03-09-2009 4: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
03-09-2009 4:40 AM
Hi
use this syntax
CALL SCREEN dynnr
[STARTING AT col1 lin1
[ENDING AT col2 lin2]].
and call it in PAI
03-09-2009 4: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
03-09-2009 4: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
03-09-2009 4:43 AM
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.
03-09-2009 4:44 AM
Hi,
Yes when you call a subscreen, then it will be displayed as a popup only.
Regards,
Tarun
03-09-2009 4:47 AM
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 =
03-09-2009 4:50 AM
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
03-09-2009 4:54 AM
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
03-09-2009 5:12 AM
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
03-09-2009 5:19 AM
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
03-09-2009 5:25 AM
yes i am doing that.But i have to display it like as a pop-up window.
03-09-2009 5:35 AM
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.
03-09-2009 5:36 AM
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..
03-09-2009 5: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
03-09-2009 5: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.
03-10-2009 5: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
03-12-2009 3:52 AM
Hi Neeraja,
If you have got your answer mark this thread as answered.
Regards,
Qamar.
03-12-2009 4:46 AM