‎2008 Mar 11 3:33 AM
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
‎2008 Mar 11 3:36 AM
‎2008 Mar 11 3:36 AM
‎2008 Mar 11 3:38 AM
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.
‎2008 Mar 11 3:43 AM
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.
‎2008 Mar 11 3:53 AM
Muralikrishna - if you're going to copy Rich's program, you might give him credit.
Rob