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

How to get select-options type fields in module programming

naveenvishal
Contributor
0 Likes
575

i need to get ranges type of fields ( like we use select-options in reports) in module prgrming..im only gettin single entry field (like we use in paramenters)...how to get it like this

field1 ___ to ___ ->

field2 ___ to ___ ->

Thanx,

Naveen Vishal

1 ACCEPTED SOLUTION
Read only

Former Member
4 REPLIES 4
Read only

Former Member
Read only

Former Member
0 Likes
557

You can pretty well use selection-screen and select options.

In the attributes tab in SE51 you see three radio buttons as selection-screen, subscreen, screen.

You can pick selection-screen and give screen number.

Or it does not matter if it's module pool or not .you can declare your selectoptions in the program itself.

type select-options in the program and click F1. You will have syntax and stuff that helps you to use those.

I hope it helps.

Thanks.

Read only

Former Member
0 Likes
557

Hi,

report zrich_0006 .

tables: mara.

Custom Selection Screen 1010

selection-screen begin of screen 1010 as subscreen.

selection-screen begin of block b1 with frame title text-001.

parameters: p_rad1 radiobutton group grp1 default 'X',

p_rad2 radiobutton group grp1,

p_rad3 radiobutton group grp1.

select-options: s_matnr for mara-matnr,

s_matkl for mara-matkl,

s_mtart for mara-mtart.

selection-screen end of block b1.

selection-screen end of screen 1010.

start-of-selection.

call screen 100.

&----


*& Module STATUS_0100 OUTPUT

&----


module status_0100 output.

SET PF-STATUS 'xxxxxxxx'.

SET TITLEBAR 'xxx'.

endmodule.

&----


*& Module USER_COMMAND_0100 INPUT

&----


module user_command_0100 input.

endmodule.

Create Screen 100 with a subscreen area called "subscreen_1010"

Screen Flow Logic follows

*process before output.

*

module status_0100.

*

call subscreen subscreen_1010 including sy-repid '1010'.

*

*process after input.

*

call subscreen subscreen_1010 .

*

module user_command_0100.

Read only

0 Likes
557

Muralikrishna - if you're going to copy Rich's program, you might give him credit.

Rob