Skip to Content
author's profile photo Former Member
Former Member

Multiple Values in Parameters

Hi all,

I need a Selection screen field which allows JUST multiple values, but not a range of values.

If i use Select Option and if the user selects a big range, it is creating a memory intensive operation.

Thanks,

Ravi.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 06:48 PM

    just use select options with no-intervals extension.

    it will allow only multiple values.

    Add a comment
    10|10000 characters needed characters exceeded

    • > In that case ,

      > jus use this ...add no-extennsion to that !!

      >

      > SELECT-OPTIONS:

      > S_VBELN FOR VBRK-VBELN no intervals no-extension.

      >

      > This will convert your select option to a parameter

      > and allow multpile values not a range !

      With no extension, you will not be able to enter multiple selections. Your only option is to use no intervals and then call the function module SELECT_OPTIONS_RESTRICT to further eliminate the ranges in the multiple selection screen.

      Srinivas

      Message was edited by: Srinivas Adavi

      Corrected the name of the function module.

  • Posted on Oct 19, 2005 at 06:46 PM

    Check out this sample program.

    
    report zrich_0001.
    
    * Type pools
    type-pools: slis, sscr.
    
    * Selection Screen
    select-options: s_date for sy-datum no intervals.
    
    initialization.
      perform initilization.
    
    
    ************************************************************************
    *  INITILIZATION
    ************************************************************************
    form initilization.
    
    * Restrict the select options for S_DATE
    * to just single values
      data: selopt   type sscr_ass,
            opt_list type sscr_opt_list,
            restrict type sscr_restrict.
    
      clear opt_list.
      opt_list-name          = 'EQ'.
      opt_list-options-eq    = 'X'.
      append opt_list to restrict-opt_list_tab.
    
      clear selopt.
      selopt-kind            = 'S'.
      selopt-name            = 'S_DATE'.
      selopt-sg_main         = 'I'.
      selopt-sg_addy         = ' '.
      selopt-op_main         = 'EQ'.
      selopt-op_addy         = 'EQ'.
      append selopt  to restrict-ass_tab.
    
      call function 'SELECT_OPTIONS_RESTRICT'
           exporting
                restriction            = restrict
           exceptions
                too_late               = 1
                repeated               = 2
                selopt_without_options = 5
                selopt_without_signs   = 6
                invalid_sign           = 7
                empty_option_list      = 9
                invalid_kind           = 10
                repeated_kind_a        = 11
                others                 = 12.
    
    
    endform.
    
    

    Regards,

    Rich Heilman

    Message was edited by: Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2005 at 06:47 PM

    You have to use select options but you can restrict the user to enter only single values. See this link. If you need more information let me know.

    Re: Select-Option

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.