Application Development and Automation 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: 
Read only

Select-Options

Former Member
0 Likes
613

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,

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
588

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

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
588

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
589

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

Read only

Former Member
0 Likes
588

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.

Read only

Former Member
0 Likes
588

Thanks Reymond,

Point has been Given