‎2007 Dec 05 8:58 AM
hi experts,
how to use select-options in module pool programming.
Thanks in advance.
‎2007 Dec 05 9:05 AM
Hi Gourav,
Try RANGES instead of select option
Message Edited
Shibu
‎2007 Dec 05 9:05 AM
Hi Gourav,
Try RANGES instead of select option
Message Edited
Shibu
‎2007 Dec 05 9:11 AM
hi,
thanks for the reply.
but how can i design select-options layout in screen-painter??
Gaurav
‎2007 Dec 05 1:44 PM
hi Gaurav,
Define an internal table(for reading multiple values) variable(for one value) of type SELTAB in the module pool program and use this program variable on screen to take the input values.
sirish
‎2007 Dec 06 5:42 AM
hi sirish,
thanks for reply.
Frankly saying i didn't get what you tried to convey.please explain in detail. If possible then give some screenshots too. Please it's urgent issue.
Gaurav
‎2007 Dec 06 5:44 AM
Hi Gaurav,
You can make use of the FM : COMPLEX_SELECTIONS_DIALOG to make select options in a module pool program.
Regards
Gopi
‎2007 Dec 06 5:45 AM
Hi
You can make use of the Function Module 'COMPLEX_SELECTIONS_DIALOG' to make a field as select options and to get the extended multiple selection button as well.
Please see the sample code as below
In the user command of the button for multiple selection wirte this code wiht the specidfied fields
data: begin of RAN_TRACK occurs 0,
SIGN type C length 1,
OPTION type C length 2,
LOW type ZTRACK_NO,
HIGH type ZTRACK_NO,
end of RAN_TRACK.
form MULTIPLE_SELECTION_TRACK_NO .
call function 'COMPLEX_SELECTIONS_DIALOG'
exporting
TITLE = 'Multiple Selection for Tracking Number'
* TEXT =
* SIGNED = 'X'
* LOWER_CASE = 'X'
* NO_INTERVAL_CHECK = ' '
* JUST_DISPLAY = ' '
* JUST_INCL = ' '
* EXCLUDED_OPTIONS =
* DESCRIPTION =
* HELP_FIELD =
* SEARCH_HELP =
* TAB_AND_FIELD =
tables
RANGE = RAN_TRACK
exceptions
* NO_RANGE_TAB = 1
* CANCELLED = 2
* INTERNAL_ERROR = 3
* INVALID_FIELDNAME = 4
others = 5
.
if SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " multiple_selection_track_no
‎2007 Dec 06 5:59 AM
hi thank you all,
i got the idea. But this thins i need to activate after pressing a button na. Can't i have select-options layout in module pool as well??
Gaurav
‎2007 Dec 06 6:00 AM
and
Check this Example..
Tables:Mara.
Select-options:s_matnr for mara-matnr.
Types:Begin of i_mara,
matnr like mara-matnr,
end of i_mara.
data:it_mara type standard table of i_mara.
At selection-screen on value-request for s_matnr-low.
Select matnr from mara into table it_mara.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'MATNR'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_MATNR-LOW'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_MARA
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
‎2007 Dec 06 6:03 AM
hi naresh,
This things will work fine in report programming. But in screen painter how can we get the select-options layout??
Thanks for reply
Gaurav
‎2007 Dec 06 9:18 PM
‎2007 Dec 15 7:10 AM
‎2007 Dec 20 4:44 AM
Hi,
One of the basic diff. between report and module pool screen is taht we cannot have a select-option on the screen. The best we can have is the Ranges in Program because select option is a range itself.
PS: Reward Points if helpfull.
Regards
Naveen Gupta
‎2007 Dec 20 5:15 AM