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: 

Select-Option in Dialog programming

Former Member
0 Kudos

Hi Experts,

Can we use select-options in Dialog programming?

If yes, Please help me, how to do that?

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:27 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

We cannot use the select-options in dialog programming, but we can archive this by taking the RANGES.

Put the Ranges-low and Ranges-high one the screen and use them.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:27 PM

10 REPLIES 10

Former Member
0 Kudos

Hi,

we can not use select-options in DP.

tell me your requirement

Regards,

Ani

Former Member
0 Kudos

Hi,

We cannot use the select-options in dialog programming, but we can archive this by taking the RANGES.

Put the Ranges-low and Ranges-high one the screen and use them.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:27 PM

Pawan_Kesari
Active Contributor
0 Kudos

1. define a subscreen area in your screen.

2. define required select-option in you program as follows

SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-010.
SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN END OF SCREEN 1100.

3. Load this defined subscreen in you subscreen area define in step 1

Former Member
0 Kudos

Hi,

Module pool report does not having selct options.

for any selection we have to create saparate screens in SE51

Thanks,

Murali.

Former Member
0 Kudos

Yes you can add select option to ur dialog program. I have a sample report for this. How do i send it across?

Thanks

Nayan

Former Member
0 Kudos

Hi,

Just create 2 boxes from value and to value and check for it in your program.

Regards

Susheel

Former Member
0 Kudos

Hi,

generally select-options uses SELOPT structure. It contains four fields sign , option , low and high.

The same structure can be available in dailog programming using RANGES.

using Ranges stmt we have to define the values , it acts similar to select-options.

megha_h
Participant
0 Kudos

Hi Asrar,

Definitely you can use select-options in dialog programming.

You can do this using Subscreen.

define this scubscreen in top include.

selection-screen : begin of screen 100 as subscreen.

select-option : kunnr for kna1-kunnr.

selection-screen : end of screen 100.

-


in screen 200 where this selection screen appears, create a subscreen area 'SSA'.

Process on output. "200 screen.

call subscreen SSA including sy-repid '100'.

  • other modules

Process on input. "200 screen.

call subscreen SSA.

  • other modules

-


now you can access kunnr like other screen 200 objects.

<REMOVED BY MODERATOR>

Regards

Megha

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:27 PM

Former Member
0 Kudos

Thanks Pawan Kesari...

My problem is solved out..

0 Kudos

cheers..