06-12-2008 1:16 PM
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
06-12-2008 1:20 PM
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
06-12-2008 1:18 PM
Hi,
we can not use select-options in DP.
tell me your requirement
Regards,
Ani
06-12-2008 1:20 PM
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
06-12-2008 1:22 PM
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
06-12-2008 1:27 PM
Hi,
Module pool report does not having selct options.
for any selection we have to create saparate screens in SE51
Thanks,
Murali.
06-12-2008 1:29 PM
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
06-12-2008 1:30 PM
Hi,
Just create 2 boxes from value and to value and check for it in your program.
Regards
Susheel
06-12-2008 1:36 PM
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.
06-12-2008 1:49 PM
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
06-12-2008 3:12 PM
06-12-2008 5:39 PM