‎2008 Jan 16 7:27 AM
hi,
Like in Selection-screen we use parameters or Select-Options.
I want ...
In module pool programming i want to use Select-Option like
Method..how to do that..
and how to use it in select statment.
From to value...
Thanks,
‎2008 Jan 16 7:38 AM
In a full module programming dynpro
(1) Declare a RANGE range in you data definitions,
(2) In dynpro editor create fields texts, fields range-low, range -high and a pushbutton (ICON_DISPLAY_MORE if more than one line else ICON_ENTER_MORE) to manage select-options
(3) In PAI manage the icon via function module COMPLEX_SELECTIONS_DIALOG, IN PBO just read first record of range (you can add an icon before -low field to display the -OPTION/SIGN of the record eg E/EQ => ICON_EQUAL_RED)
(4) in select use the range like any select-options (in range)
Another way is to call a selection-screen as a subscreen.
Regards
‎2008 Jan 16 7:36 AM
Hi,
we use select-options and parameters inorder to get the selection screen where user can enter values..in module pool as we straight away define the screen,hence no need for these...if u want to default any values to the fields u define in the screen,then in PBO module u can write that...if u want user to put values and basing on that selection should take palce then write it in PAI module..
Regards,
Nagaraj
‎2008 Jan 16 7:38 AM
In a full module programming dynpro
(1) Declare a RANGE range in you data definitions,
(2) In dynpro editor create fields texts, fields range-low, range -high and a pushbutton (ICON_DISPLAY_MORE if more than one line else ICON_ENTER_MORE) to manage select-options
(3) In PAI manage the icon via function module COMPLEX_SELECTIONS_DIALOG, IN PBO just read first record of range (you can add an icon before -low field to display the -OPTION/SIGN of the record eg E/EQ => ICON_EQUAL_RED)
(4) in select use the range like any select-options (in range)
Another way is to call a selection-screen as a subscreen.
Regards
‎2008 Jan 16 7:42 AM
Hi Kelly,
Try this in module pool program.
data t_spfli type table of spfli with header line
tables spfli.
selection-screen begin of screen 500.
select-options s_carrid for spfli-carrid.
selection-screen end of screen 500.
After that go to se51 and open the screen in change module write one module in PAI like this
.
&----
*& Module select INPUT
&----
text
----
module select input.
select * from spfli into table t_spfli where carrid in s_carrid.
endmodule. " select INPUT
Plzz Reward if it is useful,
Mahi.
‎2008 Jan 17 5:23 AM