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: 

Creating a pop up window & passing the parameters to it.

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

12 REPLIES 12

Former Member
0 Kudos
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

Former Member
0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

How to fill the selection screen parameters dynamically from internal table?

Regards,

Rahul

0 Kudos

Hi Rahul,

Just go through this Pdf.

This is one will be very useful for you,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a07a330f-126c-2910-c684-d2a45f0f...

hope this will help you.

0 Kudos

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

0 Kudos

hi Rahul,

Please go through this link for your requirement.

very good one.

This link can give you some ideas about creation of selection-screen in dynamic way with OOPS concept.

hope this works.

Former Member
0 Kudos

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.