Restrict number of entries in Select-Options

Hi,
I would like to restrict the number entries in select options. Lets say I have select options field defined for GL and I want only 10 GLs to be entered on Select-Options. If more than 10 Gls then it should give message that GL count is exceeding its Limit.
Please may I know how I can do this ?
Thanks for you help.

Try this if you want to restrict rows in s_matnr for example.
At selection screen.
data: line type i.
describe table s_matnr lines line.
if line > 10.
   Message 'Error' Type 'E'.
endif.
or else if you want only 10 Materials to be selected then try this.
At selection-screen.
if s_matnr-high - s_matnr-low > 10.
    Message 'Error' type 'E'.
endif.
Regards,
Vamsi

Similar Messages

  • Entries in Select-Options Range

    Hi Experts,
    I am experiencing short dump if i give more no of entries in select option (in range)
    can any one please suggest a solution to this?
    Points will be awarded.
    Thanks
    Dany

    Maximum number of entries in select options is only around 1630, you cannot give more than that
    i guess it is around 1600 - 1700
    chk this program , if u increase the do loop to 1800 it will give dump
    REPORT ychatest LINE-SIZE 350.
    TABLES : mara.
    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    DATA : BEGIN OF itab OCCURS 0.
            INCLUDE STRUCTURE mara.
    DATA:    END OF itab.
    DO 1600 TIMES.
      s_matnr-sign = 'I'.
      s_matnr-option = 'BT'.
      s_matnr-low = ''.
      s_matnr-high = ''.
      APPEND s_matnr.
      CLEAR s_matnr.
    ENDDO.
    SELECT  * FROM mara INTO TABLE itab WHERE matnr IN s_matnr.
    WRITE : 'hi'.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • Is there any restriction on no of entries in Select-option-low ?

    Is there any restriction on no of entries in Select-option-low ? I have a select option which has 22 thousand entries and the select query is thrwoing a dump.
    Any inputs ?
    Regards,
    Ankur Bhandari

    Hi Ankur,
    1. i had faced same problem.
    2. Virtually the limit in SELECT-OPTION low
       is not the problem.
    3. The problem is with SQL query and database limit.
    4. The R/3 system generates final database query
       in the form of (for select option)
       FIELD IN ('ABC','DEF','XYZ',........'')
    5. Now Oracle/SqlServer
       has limit of THESE IN VALUES.
       limit is something in 2500 approx.
    6. So your approach will not work
      using IN.
       It will always give error when
       entries are more.
    7. SOLUTION which i did.
       1. First select all appropriate records from
          master table in your itab
         (without using IN select option clause)
      2. After that use this concept.
         Loop at ITAB.
         If Itab-Field in SelectOption.
         Else.
         DELETE ITAB.
         ENDIF.
    The above will take care for any number of records. 
    I hope it helps.
    regards,
    amit m.
    Message was edited by: Amit Mittal
    Message was edited by: Amit Mittal

  • How to restrict values displayed using a select-options

    Can someone please tell me how to restrict values displayed using a select-options.
    Example- in my table I have 100 entries. However when the user will click on the required field- I want to be display only 25 options based on a given value of another field in the table.
    Thanks,
    Mahesh.

    get the screen value for the selectd field  using the fm
    DYNP_VALUES_READ.
    for that value filter the internal table values and pass the table to f4 help of the field.
    below code will help u
    write the f4 help for the field.
    At Selection Screen on value request                                *
    F4 help for Corporate
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CORP.
    Get Corporates for selected division
      PERFORM GET_CORP.
      PERFORM F4HELP_CORP.
    *&      Form  GET_CORP
    Get the corporates for the selected division
    There are no interface parameters to be passed to this routine
    FORM GET_CORP .
    Table for conglomerate
      DATA:
        LT_CONG      LIKE STANDARD TABLE OF FS_CORP,
    Fields of current screen
        LFS_DYNPREAD TYPE DYNPREAD,
    Table for current Screen fields
        LT_DYNPREAD  LIKE STANDARD TABLE OF LFS_DYNPREAD.
      LFS_DYNPREAD-FIELDNAME = 'P_DIV'.
      APPEND LFS_DYNPREAD TO LT_DYNPREAD.
    Get selection screen value for division
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME               = SY-REPID
          DYNUMB               = SY-DYNNR
        TABLES
          DYNPFIELDS           = LT_DYNPREAD
        EXCEPTIONS
          INVALID_ABAPWORKAREA = 1
          INVALID_DYNPROFIELD  = 2
          INVALID_DYNPRONAME   = 3
          INVALID_DYNPRONUMMER = 4
          INVALID_REQUEST      = 5
          NO_FIELDDESCRIPTION  = 6
          INVALID_PARAMETER    = 7
          UNDEFIND_ERROR       = 8
          DOUBLE_CONVERSION    = 9
          STEPL_NOT_FOUND      = 10
          OTHERS               = 11.
      IF SY-SUBRC EQ 0.
        READ TABLE LT_DYNPREAD INTO LFS_DYNPREAD INDEX 1.
        IF SY-SUBRC EQ 0.
          P_DIV = LFS_DYNPREAD-FIELDVALUE.
        ENDIF.                             " IF SY-SUBRC EQ 0
      ENDIF.                               " IF SY-SUBRC EQ 0
      REFRESH T_CORP.
    Get the conglomerate for the selected division
      SELECT KUNNR                         " Conglomerate
        FROM KNVH
        INTO TABLE  LT_CONG
       WHERE HITYP  EQ C_HITYP
         AND VKORG  EQ C_VKORG
         AND VTWEG  EQ C_VTWEG
         AND SPART  EQ P_DIV
         AND DATAB  LE SY-DATUM
         AND DATBI  GE SY-DATUM
         AND HKUNNR EQ SPACE.
      IF SY-SUBRC EQ 0.
        SORT LT_CONG BY KUNNR.
        DELETE ADJACENT DUPLICATES FROM LT_CONG
                        COMPARING KUNNR.
    Get the corporates for the selected conglomerates
        SELECT KUNNR                       " Customer Number
          FROM KNVH
          INTO TABLE  T_CORP
           FOR ALL ENTRIES IN LT_CONG
         WHERE HITYP  EQ C_HITYP
           AND VKORG  EQ C_VKORG
           AND VTWEG  EQ C_VTWEG
           AND SPART  EQ P_DIV
           AND DATAB  LE SY-DATUM
           AND DATBI  GE SY-DATUM
           AND HKUNNR EQ LT_CONG-KUNNR.
        IF SY-SUBRC NE 0.
          CLEAR: SSCRFIELDS.
          MESSAGE I531(0U) WITH TEXT-005.
          STOP.
        ENDIF.                             " IF SY-SUBRC NE 0
      ELSE.
        CLEAR: SSCRFIELDS.
        MESSAGE I531(0U) WITH TEXT-004.
        STOP.
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " GET_CORP
    *&      Form  F4HELP_CORP
    F4 help for corporate
    There are no interface parameters to be passed to this routine
    FORM F4HELP_CORP .
    F4 help for corporate
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'KUNNR'
          DYNPPROG        = 'Z_EXCESS_USAGE'
          DYNPNR          = '1000'
          DYNPROFIELD     = 'P_CORP'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = T_CORP
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC EQ 0.
    Do nothing
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " F4HELP_CORP

  • Restrict F4 help values for select option

    Hi All,
    How to restrict the F4 help for select option in Webdynpro for ABAP based on some input.
    Regards,
    Karthick S

    Hi Karthick,
    Use OVS help. It will take your inputs for search and give you corresponding search value list.
    Refer my blog, it will be helpful.
    [OVS Help in WDA|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]
    Thanks.

  • How to pass Multiple entries of select-options to FM

    Hi friends,
            i need to pass values date_from and date_to of FM BAPI_AR_ACC_GETSTATEMENT in my report. i have select-option in the selection screen for the posting date i.e, s_pstgdate-low = date_from and  s_pstgdate-high = date_to.
        My question is how to pass values if the user enters multiple entries in s_pstgdate (selection-screen).
        Hope i'm clear with my question.
        Thanks in anticipation.
    Regards
    Poorna

    Hi,
    This is not possible.
    You may wish to call it multiple times with each row of your select-option, and consolidate the returned records.
    Better is to restrict the select-option with no-extension.
    cheers,

  • How to restrict f4 help values in select options of  Employee Search

    Hi,
    I am using HRASR_EMPLOYEE_SEARCH  for employee search and created a new query ,infoset , usergroup which is responsible to  fetch the selection criteria and result.I have one field in the search criteria as Cost Center which is connected to P0001-KOSTL.f4 help for that field fetches all the values(Local cost center,starts with M and Global Cost Center,starts with G)
    I want to filter out the f4 values in WDA  so that it can fetch values only starts with G
    Thanks
    Bala Duvvuri

    Hi Bala,
    Do you mean to say that when the user gets the OVS popup he should be able to use wildcard characters like G* in there? If thats your requirement then thats quite possible. You can do this within the phase 2 of the OVS. You first read the values that were entered by the user in the restriction screen by saying something like:
    assign ovs_callback_object->query_parameters->* to <ls_query_params>.
    You then fetch the desired attribute into a local variable like:
    lv_matnr = <ls_query_params>-matnr.
    Then you can say like:
    REPLACE ALL OCCURRENCES OF '*' IN lv_matnr WITH '%' .
    SELECT <your fields>  FROM <table> INTO TABLE lt_select_list WHERE MATNR LIKE lv_matnr.
    Hope that this is clear for you now. You can also try go through this [full example|http://****************/Tutorials/WebDynproABAP/OVS/page1.htm] where they have explained the same concept using step-by-step screenshots.
    Regards,
    Uday

  • Restricting Select Options to Multiple Single Entries

    Hi All,
           I have a requirement where we have two select options. I need to restrict only One of the select options to only accept multiple single entries. I have tried using the  'SELECT_OPTIONS_RESTRICT'  Function module. But it provided little help to me.
    Please check the below code.
    gv_w_opt_list-name = 'A'.
      gv_w_opt_list-options-eq = 'X'.
      APPEND gv_w_opt_list TO gv_w_res-opt_list_tab.
      gv_w_***-kind = 'A'. 
      gv_w_***-name = 'YTRADE_DESC'.
      gv_w_***-sg_main = '*'.
      gv_w_***-sg_addy = 'N'.
      gv_w_***-op_main = 'A'. 
      APPEND gv_w_*** TO gv_w_res-***_tab.
    It allows to restrict intervals for select-options in selection screen
        CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
          EXPORTING
            program                = sy-repid
            restriction            = gv_w_res
          EXCEPTIONS
            too_late               = 1
            repeated               = 2
            selopt_without_options = 3
            selopt_without_signs   = 4
            invalid_sign           = 5
            empty_option_list      = 6
            invalid_kind           = 7
            repeated_kind_a        = 8
            OTHERS                 = 9.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    Please help me if you have any information related to this requirement. Relevant anwers will be surely rewarded.
    Regards
    Nagaraj

    I have a code sample I use in a report. Result is only EQ and no intervals and no excludes
    LOAD-OF-PROGRAM.
        Subscreen: Select Options for delivery                                    *
      SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN
                                          NO INTERVALS.
      SELECT-OPTIONS:
      so_dlvno FOR /scwm/s_aspq_tu-docno
                                     MODIF ID dlv .
      SELECTION-SCREEN END OF SCREEN 1100.
        Subscreen: Select Options Restrictions                                  *
    Include type pool SSCR
      TYPE-POOLS sscr.
    Define the object to be passed to the RESTRICTION parameter
      DATA restrict TYPE sscr_restrict.
    Auxiliary objects for filling RESTRICT
      DATA t_opt_list TYPE sscr_opt_list.
      DATA ***      TYPE sscr_***.
      CLEAR ***.
      ***-kind    = 'S'.        "Apply only to the named SELECT-OPTION
      ***-name    = 'SO_DLVNO'.  "This is name of the SELECT-OPTION
      ***-sg_main = 'I'.        "I = ONLY Inclusions; * = Both
      ***-op_main = 'NOINTERVALS'. "This must match opt_list-name
      APPEND *** TO restrict-***_tab.
    Create t_opt_list entry to specify capabilities of S_BUKRS.
      CLEAR t_opt_list.
      t_opt_list-name       = 'NOINTERVALS'."This must match ***_tab-op_main
      t_opt_list-options-bt = space.     "Do not permit BETWEEN
      t_opt_list-options-cp = space.     "Do not permit MATCHES-PATTERN
      t_opt_list-options-eq = 'X'.       "       Permit EQUALS
      t_opt_list-options-ge = space.     "Do not permit GREATER-OR-EQUAL
      t_opt_list-options-gt = space.     "Do not permit GREATER-THAN
      t_opt_list-options-le = space.     "Do not permit LESS-OR-EQUAL
      t_opt_list-options-lt = space.     "Do not permit LESS-THAN
      t_opt_list-options-nb = space.     "Do not permit NOT-BETWEEN
      t_opt_list-options-ne = space.     "Do not permit NOT-EQUAL
      t_opt_list-options-np = space.     "Do not permit NO-PATTERN-MATCH
      APPEND t_opt_list TO restrict-opt_list_tab.
    Call function module
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction                = restrict
        EXCEPTIONS
          too_late                   = 1
          repeated                   = 2
          not_during_submit          = 3
          db_call_after_report_call  = 4
          selopt_without_options     = 5
          selopt_without_signs       = 6
          invalid_sign               = 7
          report_call_after_db_error = 8
          empty_option_list          = 9
          invalid_kind               = 10
          repeated_kind_a            = 11
          OTHERS                     = 12.
    Exception handling
      IF sy-subrc NE 0.
      ENDIF.
    Edited by: Suhel Awad on Feb 1, 2011 3:06 PM

  • Restrict no. of entries in the multiple selection of DOCNUM of EDID4 tab

    Hi,
    Is it possible to restrict number of entries in the multiple selection of DOCNUM of EDID4 table.
    i.e., Select the content button on se11 for EDID4 table. We can see the selection screen of the table. Press the multiple selection button of 'DOCNUM', we get a popup. Is it possible to restrict the no. of docnum entry to 500. If i enter more that 500 entries, it should popup a message.
      Please share your ideas. I am working on 4.6c.
      Points will be rewarded.
    Thank you.
    Regards,
    Ramesh

    Hi Atish,
       Thanks for your reply.  I checked for BAdis. But I couldnt find. Is there any other ways of doing this?
    User is trying to import the docnum values from presentation server file using the 'Import from text file' icon on multiple selection popup. As the no. of docnum were 4500, during the execution of this process, other process trying to connect to oracle is going for short dump with message 'Run-time error (Oracle error code: ORA-4031)'.  So user wanted to restrict it to 500.
    Hope my explanation is clear.
    Regards,
    Ramesh

  • Validating select-options entries

    hi
    i need to check whether all entries in SELECT-OPTIONS range are valid or not.
    *my select-options field is s-pernr as below.
    SELECT-OPTIONS: s_pernr  FOR pernr-pernr.
    *all valid entries from PA0000 table will be selected into pernr_table.
    SELECT DISTINCT pernr
            FROM pa0000
            INTO TABLE pernr_table
            WHERE pernr IN s_pernr.
    now i have to check all invalid pernr's in s_pernr.
    s_pernr contains: 1, 5, 6, 7, 8, 9, 10.
    PA0000 contains: 1, 2, 5, 8, 10, 11, 13, 15...
    then pernr_table = 1, 5, 8, 10 only.
    that means pernr 6, 7, 9 in s_pernr were invalid.
    How to fetch these values  as s_pernr is SELECT-OPTIONS field and it may have any combination of values.

    Hi,
      As far as what i get from your question is, user put multiple values in the LOW field of the select-option and you have to
    check all the values entered in the select-option-LOW field.
      If this is the case, you can loop at select-option as show :-
    1) create an internal table of type
    BEGIN OF ty_pernr ,
       sign(1)   TYPE c,
       option(2) TYPE c,
       low       TYPE pa0000-pernr,
       high      TYPE pa0000-pernr,
    END   OF ty_pernr.
    2) create workarea of type ty_pernr.
    data wa_pernr type ty_pernr.
    3) loop at the select-option.
    loop at s_pernr into wa_pernr.
        SELECT single pernr
       FROM pa0000
        INTO TABLE pernr_table
        WHERE pernr eq wa_pernr-low.
      if sy-subrc ne 0.
         "give error message.
      endif.
    endloop.
    Hope this solves ur problem.
    Regards,
    Bhavesh.

  • How To... Change the Data Type for a SELECT-OPTIONS at run time.

    Hello,
    I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
    The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
    I would like the following example to be possible:
    The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
    I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
    The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
    declaration of variables for user interface
      DATA c_char(32) TYPE c.
    declaration of count variable
      DATA i_count TYPE i.
    declaration of user interface
      SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
        PARAMETERS: p_ipack TYPE RSLOGDPID.
      SELECTION-SCREEN END OF BLOCK a1.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
        PARAMETERS: p_char1 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char1  for c_char NO INTERVALS.
        PARAMETERS: p_char2 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char2  for c_char NO INTERVALS.
        PARAMETERS: p_char3 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char3  for c_char NO INTERVALS.
      SELECTION-SCREEN END OF BLOCK b1.
    Is what I am trying to do possible???
    Thanks for any help. Ross.

    You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
    Here is what you do:  Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR..  The first thing you do here is read the value of the parameter field (p_ipack in your example).  You can use function module DYNP_VALUES_READ.  Based on this value, you can propose values for the select-option fields.  Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field.

  • Regarding selection options

    whan i am using select-options prior to this i what to display check  box on the same line.
              when i am selecting the this check box it should execute automaticall
    could u plz explain the code clearly with example.

    search forums.
    Re: Dynamic Selection Options
    Posted on: Jul 17, 2006 5:50 PM, by user: Praveen -- Relevance: 100% -- Show all results within this thread
    am doing exactly as you had stated. But the user wants to see it something like this: 1. For the selection options, he wants to see three box's. a. Technical Name of the field selection. b. ...
    Re: regarding selection options
    Posted on: Mar 15, 2007 8:46 AM, by user: SHIBA DUTTA -- Relevance: 99% -- Show all results within this thread
    you have to use begin of line and end of line. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(10) TEXT-001 FOR FIELD P1. PARAMETERS: ...
    Re: Restricting selection-options
    Posted on: Jan 18, 2005 8:58 AM, by user: Andreas Mann -- Relevance: 90% -- Show all results within this thread
    FOR vbak-vbeln OBLIGATORY DEFAULT '5300000000'. INITIALIZATION. PERFORM init_1001. START-OF-SELECTION. SELECT belnr FROM bkpf INTO bkpf-belnr WHERE bukrs = '0001' AND ...
    Check that at least on Selection Options are filled
    Posted on: May 25, 2006 4:37 AM, by user: Boater -- Relevance: 90% -- Show all results within this thread
    I have a program that has four selection options. The user needs to enter a selection for at least one of the four selection options. ...
    possible entry for selection-options
    Posted on: Feb 22, 2007 7:32 AM, by user: Tiwa Noitawee -- Relevance: 89% -- Show all results within this thread
    F-1 At last 3 alphabets of Prod.hierarchy is Product line (EX1, PC5) that users have to choose via selection-options like this <b>EX1</b> EXCEL 251 : F-1 <b>PC5</b> POWERTOP W-200 ...
    select-options multiple selection
    Posted on: Mar 5, 2007 3:06 AM, by user: venkateswarao gangavarapu -- Relevance: 87% -- Show all results within this thread
    hi can u send code for getting multiple selections in select-options Thanks in advance venkat ...
    Submitting Report with selection screen options
    Posted on: Apr 27, 2005 5:45 PM, by user: Rajesh Nittala -- Relevance: 85% -- Show all results within this thread
    Hi all, I have a situation, in my report i am using a selection screen which contains input select-options are store(range), date (from ..to)....after that ...
    sample program to remove standard selection-options & replace user defined.
    Posted on: Dec 7, 2005 5:37 AM, by user: Josephine Clara Arokiasamy -- Relevance: 83% -- Show all results within this thread
    The standard selection-options are provided for the logical database. i need to supress the standard selection-options ...
    Adding default value for a select-options in a selection-screen
    Posted on: May 26, 2006 11:51 AM, by user: sid alpay -- Relevance: 77% -- Show all results within this thread
    hello gurus, i have a report program with the following select-options in a selection-screen block:
    select-options: so_site for MyTable-werks.
    i want the so_site ...
    Adding Selection Options Fields in Report(Using Query)
    Posted on: Aug 25, 2004 5:26 AM, by user: lijo joseph -- Relevance: 76% -- Show all results within this thread
    Hi, how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which ...
    Getting the selection parameters/options in a diffrent program
    Posted on: May 11, 2006 3:05 AM, by user: Chad Cheng -- Relevance: 75% -- Show all results within this thread
    use Submit to get a report from a diffrent program and I am using variants to get the value of the selection criteria. However, for a less tedious approach, I think it would be better if I get the selection ...
    Read options from selection-screen
    Posted on: Aug 24, 2006 3:30 PM, by user: Silke Eng -- Relevance: 75% -- Show all results within this thread
    Hi Kiran, as all other questions are answered already, remains the one on the select-options. Function module <b>RS_REFRESH_FROM_SELECTOPTIONS</b> returns those. Kind regards, Silke ...
    Selection screen for SAP Query: OR between options
    Posted on: Jun 29, 2006 3:04 PM, by user: Tania Pouli -- Relevance: 74% -- Show all results within this thread
    need a variant where either of two fields should not be 0. Is there some way to add an OR between two selection options? I can't change the actual query because it's used with many other variants. Thanks ...
    Pass internal table of selection-options through method!
    Posted on: Nov 22, 2004 3:49 PM, by user: Frank Roels -- Relevance: 74% -- Show all results within this thread
    I created a selection screen with multiple select-options. Now I want in a method of a class work with the internal ...
    select-options: at selection-screen on value-request
    Posted on: Sep 18, 2006 10:51 PM, by user: Sumit Agarwal -- Relevance: 72% -- Show all results within this thread
    one field is dependent on the values of the other field in the select-options. I am using the "at selection-screen on value-request event on" to populate the select-options field, S_AUFNR, that is dependent ...
    Pages: 16 [ 1 2 3 4 5 6 7 8 9 10 |

  • Select-options on Module pool

    Hi,
      COuld any body tell me how to give range of values as in input in module pool program same as Select-options on standard selection screen.
    Regards,
      Satya

    Hi,
    The two statements:
    SELECTION-SCREEN BEGIN OF SCREEN numb [TITLE tit] [AS WINDOW].
    SELECTION-SCREEN END OF SCREEN numb.
    define a user-defined selection screen with screen number numb. All PARAMETERS, SELECT-OPTIONS, and SELECTION-SCREEN statements that occur between these two statements define the input fields and the formatting of this selection screen. Screen number numb can be any four-digit number apart from 1000, which is the number of the standard selection screen. You must also ensure that you do not accidentally assign a number to a selection screen which is already in use for another screen of the program.
    From your screen program in which selection screens are defined, you can call these screens at any point of the program flow using the following statement:
    CALL SELECTION-SCREEN <numb> [STARTING AT <x1> <y 1>]
    [ENDING AT <x2> <y 2>].
    Look at the DEMO program <b>DEMO_DYNPRO_SUBSCREENS.</b>
    Regards
    Sudheer

  • Select options field disable mode

    hi  all .
    i use select-options .
    i want disable entries area(select options high ,low)
    how can i do ?
    Thanks.

    Hi
    i'm talk about WDR_SELECT_OPTIONS    .
    im set variant in select-option  so  i want to  mustn't change  this value
    i'm find this method  UPD_SELECTION_FIELD but
    i don't run it .
    CALL METHOD LR_HELPER->UPD_SELECTION_FIELD
      EXPORTING
    I_ID                      = 'ZKVJID'  
       I_WITHIN_BLOCK            = MC_ID_MAIN_BLOCK
       I_DESCRIPTION             =
       I_IS_AUTO_DESCRIPTION     = ABAP_TRUE
       IT_RESULT                 =
       I_OBLIGATORY              = ABAP_FALSE
       I_COMPLEX_RESTRICTIONS    =
       I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
       I_NO_COMPLEX_RESTRICTIONS = ABAP_FALSE
       I_VALUE_HELP_TYPE         = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
       I_VALUE_HELP_ID           =
       I_VALUE_HELP_MODE         =
       I_HELP_REQUEST_HANDLER    =
       I_LOWER_CASE              =
       I_MEMORY_ID               =
       I_NO_EXTENSION            = ABAP_FALSE
       I_NO_INTERVALS            = ABAP_FALSE
       I_AS_CHECKBOX             = ABAP_FALSE
       I_AS_DROPDOWN             = ABAP_FALSE
       IT_VALUE_SET              =
    I_READ_ONLY               =   ABAP_TRUE
       I_EXPLANATION             =
       I_TOOLTIP                 =

  • Select options and loop statement

    Dear forum,
    I have the scenario where i need to restrict the loop from the select-options.
    in the select-options, user enter currency.
    then in the loop i need to loop base on the currency user enter.
    may i know what steps should i use for the loop as loop cannot support where.
    thanks

    HI Gengis
    I have the scenario where i need to restrict the loop from the select-options.
    in the select-options, user enter currency.
    then in the loop i need to loop base on the currency user enter.
    may i know what steps should i use for the loop as loop cannot support where.
    as per your requirement.
    you have some data in your internal table also you have a select-options to input values.
    on the basis of the values in your select option you want to fetch the values from your internal table. right???
    then there should be a field like your select option in your internal table.
    select-option: s_matnr for mara-matnr.
    let assume you have an internal table with matnr and other fields also and your select-options is for mara-matnr.
    then you need to select the values in your internal table according to the values in your select-options like below.
    SELECT MATNR field1 field2........ from dbtable into table itab where matnr = s_matnr.
    the above code will give you the values matching the values in your select-options.
    you need not to apply loop becasue you already have only those values for which yo u have found records in the DBTABLE.
    in case you want to apply loop on an internal table on the basis of s_matnr's values, then you can write.
    in this scenario you need to define 2 internal table one with already fethced values and another in which we will fetch the values according to select-options.
    loop at itab into wa_itab.
    read table itab1 into wa_itab1 where matnr = wa_itab-matnr.
    write statement........
    endloop.
    before that youwill have to fetch values in itab according to s_matnr.
    I hope this will clear your query.
    Thanks
    Lalit Gupta.

Maybe you are looking for

  • Xml document validation using Schema

    I want to validate XML Document using XML Schema... does any body have an idea how to do it. Every time i m running my java file by using different XML FILE AND XSD FILE in command line i m getting same error. error is: Exception in thread "main" org

  • Xbox 360: How To Open Your BT Home Hub Ports!

    If you use a BT Home Hub and Xbox Live, you may need to open ports for a better connection, even if your NAT tests as Open. Some issues that this will fix: Friends list Voice chat Joining friends list games Joining some games such as Call of Duty 3 (

  • Using a file in a Dashboard Embedded Content

    If I remember correctly I could include a .pdf file in a dashboard (obiee 10g). Now in 11g, the embedded content properties points to an URL. I suppose I can still access a file (in a network drive or local drive for testing) but I am struggling with

  • HSE 1.8 can't discover 11506 after upgrade to 7.4

    We just upgraded one of our CSS's to 7.4, now our HSE version 1.8 cannot see it correctly. I am assuming some MIB's got changed, how do I fix this? here is what i see; 10.28.3.6 10.28.3.6 CSS 11506 10.28.3.7 10.28.3.7 .1.3.6.1.4.1.9.9.368.4.6 10.28.1

  • Transaction aborted (possibly due to transaction time out) - Question

    This one is driving me insane! Bellow you will find the code, the descriptor stuff and the exception. The code belongs to a CMP EJB using CMT (transactions). This gets called from a session bean. Please help. Here is the code: public Object ejbCreate