11-22-2007 2:53 PM
Hi SDN,
Can any one tell me how to create a pop-up window and creating the parameters on the pop-up window?
I want to create some lables & input fields on the pop-up window.
Regards,
Rahul
11-22-2007 2:58 PM
Hi Rahul,
You have to go with the event
"AT SELECTION-SCREEN ON RADIOBUTTON GROUP RADI"
where RADI is the radiobutton group name.
sample code :
"This screen is created just to call afterwards.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
PARAMETERS page TYPE i.
SELECTION-SCREEN END OF SCREEN 500.
if R1, R2, R3 are the radiobuttons in SELECTION-SCREEN under the group RAD1.
selection-screen begin of block B1 with frame.
parameters: R1 Radiobutton group RAD1,
R2 Radiobutton group RAD1,
R3 Radiobutton group RAD1 default ' X '.
selection-screen end of block B1.
At selection-screen on Radiobutton group RAD1.
if R3 = ' X ' .
call selection-screen 500 STARTING AT 1 40 ENDING AT 50 40.
endif.
just copy this code and paste in your program and test.
Hpoe this works.
11-22-2007 2:56 PM
CALL SCREEN dynnr
[STARTING AT col1 lin1
[ENDING AT col2 lin2]].
give the dimensions in starting and ending. Defauting the parameters can be done in the PBO of the screen. of can use SET GET as well.
A
11-22-2007 2:58 PM
Hi Rahul,
You have to go with the event
"AT SELECTION-SCREEN ON RADIOBUTTON GROUP RADI"
where RADI is the radiobutton group name.
sample code :
"This screen is created just to call afterwards.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
PARAMETERS page TYPE i.
SELECTION-SCREEN END OF SCREEN 500.
if R1, R2, R3 are the radiobuttons in SELECTION-SCREEN under the group RAD1.
selection-screen begin of block B1 with frame.
parameters: R1 Radiobutton group RAD1,
R2 Radiobutton group RAD1,
R3 Radiobutton group RAD1 default ' X '.
selection-screen end of block B1.
At selection-screen on Radiobutton group RAD1.
if R3 = ' X ' .
call selection-screen 500 STARTING AT 1 40 ENDING AT 50 40.
endif.
just copy this code and paste in your program and test.
Hpoe this works.
11-22-2007 3:07 PM
Thanks Jagannathan for the reply,
I have the selection screen say 500 & I am having interanal table xvbap with data filled in it upto 10 rows.
Now i want to create the parameters on the screen from my internal table XVBAP at runtime the no. of parameter will be decided
Can you please tell me how to do that?
Regards,
Rahul
11-22-2007 3:09 PM
Read the following threads. might give u an insight to pop-up windows.
https://forums.sdn.sap.com/click.jspa?searchID=6879022&messageID=4028113
https://forums.sdn.sap.com/click.jspa?searchID=6879022&messageID=1775012
https://forums.sdn.sap.com/click.jspa?searchID=6879022&messageID=3230984
https://forums.sdn.sap.com/click.jspa?searchID=6879022&messageID=2901924
11-23-2007 6:22 AM
Hi Rahul,
That means you want to assign your selection screen at run time is it so??
or
you are going to keep the number of selection parameters as constant and at the same time you are going to fill those parameters during runtime during run-time??
are you working in module pool or classical Report??
Can you clarify your requirement??
11-23-2007 6:39 AM
hi
I am having an internal table XVBAP this will be get filled at runtime i want a screen having 2 fields say XVBAP-POSNR & XVBAP-CMPRE from the table.
i.e. the fields to be created for each position in a group of two.
Regards,
Rahul
11-23-2007 7:07 AM
hi Rahul,
1.If that is the case, you can call a modal dialog selection-screen (XVBAP-POSNR & XVBAP-CMPRE) (which you have to create with the selection parameters) immedialtely when your dynamic internal table (XVBAP) is created.
2.fill your modal dialog selection-screen parameters
(XVBAP-POSNR & XVBAP-CMPRE) with the values from dynamic internal table.
Note: Calling a Modal dialog selection-screen will be by
<b> call selection-screen 500 STARTING AT 1 40 ENDING AT 50 40</b>.
11-23-2007 7:26 AM
Hi,
How to fill the selection screen parameters dynamically from internal table?
Regards,
Rahul
11-23-2007 7:44 AM
Hi Rahul,
Just go through this Pdf.
This is one will be very useful for you,
hope this will help you.
11-23-2007 8:24 AM
Hi Jagannathan,
This is PDF is about reading/writing selection screen parameters dynamically.
I want to create selection parameters to be created dynamically.
Regards,
Rahul
11-23-2007 9:02 AM
11-22-2007 3:15 PM
Hi .
Try this .
If u have 10 rows in the internal table means just loop the call selection screen statement 10 times. Like i shown below. For eg:- <b>In Itab u have 10 rows.</b>
SELECTION-SCREEN BEGIN OF BLOCK sel1 WITH FRAME TITLE tit1.
PARAMETERS: cityfr TYPE spfli-cityfrom,
cityto TYPE spfli-cityto.
SELECTION-SCREEN END OF BLOCK sel1.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
SELECTION-SCREEN BEGIN OF BLOCK sel2 WITH FRAME.
PARAMETERS: airpfr TYPE spfli-airpfrom,
airpto TYPE spfli-airpto.
SELECTION-SCREEN END OF BLOCK sel2.
SELECTION-SCREEN END OF SCREEN 500.
data : begin of itab occurs 0,
Square type i,
Cube type i,
end of itab.
START-OF-SELECTION.
do 10 times.
itab-square = sy-index * 2.
itab-cube = sy-index * 3.
append itab.
enddo.
Loop at itab.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
endloop.
Reward if it is helpful.
Regards
Bala.