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 in module pool

Former Member
0 Likes
1,481

hi experts,

how to use select-options in module pool programming.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,410

Hi Gourav,

Try RANGES instead of select option

Message Edited

Shibu

13 REPLIES 13
Read only

Former Member
0 Likes
1,411

Hi Gourav,

Try RANGES instead of select option

Message Edited

Shibu

Read only

0 Likes
1,410

hi,

thanks for the reply.

but how can i design select-options layout in screen-painter??

Gaurav

Read only

0 Likes
1,410

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

Read only

0 Likes
1,410

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

Read only

gopi_narendra
Active Contributor
0 Likes
1,410

Hi Gaurav,

You can make use of the FM : COMPLEX_SELECTIONS_DIALOG to make select options in a module pool program.

Regards

Gopi

Read only

Former Member
0 Likes
1,410

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

Read only

0 Likes
1,410

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

Read only

Former Member
0 Likes
1,410

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

Read only

0 Likes
1,410

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

Read only

0 Likes
1,410

Please see this:

Rob

Read only

Former Member
0 Likes
1,410

Hi Gaurav,

Check the above link hope it helps,

<b>Kindly Reward points if you found this reply helpful</b>,

Cheers,

Chaitanya.

Read only

Former Member
0 Likes
1,410

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

Read only

Former Member
0 Likes
1,410

Hi Gaurav,

Please check this link it might solve your problem.