Restricting the Select-options by using the FM   "SELECT_OPTIONS_RESTRICT"

Hi ,
Thank You very much for reading this query.
My requirement is, I need to display 3 select-option fields on my selection screen.
1) Field1 is S_periods which is to populate the Numbers.For this field I need to provide the options single and ranges (First 2 options).
2) Field 2 is S_RECIPIENTS which should contain user IDs.For this field I need to give first option which is single values.
3) Field 3 is S_TRANSACTIONS which should contain 3 options (Select singles, ranges and Exclude singles).
So by calling the FM "SELECT_OPTIONS_RESTRICT' only once, Can i provide all these options or I need to call this FM 3 times for 3 fields .
Can any one help me on this.
If possible plz provide me some pseudo code on this.I have gone through so many forum points on this but I havenot seen this kind of requirement.
Thanks and Regards,
K.krishna Chaitanya.

Check this code for first and second case.
I don't think third case is possible.
* T A B L E S
TABLES: afko, mara.
* D A T A   D E C L A R A T I O N S
TYPE-POOLS: sscr.
DATA:  gt_restrict TYPE sscr_restrict,
       gs_selopt   TYPE sscr_***,
       gs_opt_list TYPE sscr_opt_list.
SELECT-OPTIONS: s_aufnr FOR afko-aufnr,
                s_matnr FOR mara-matnr.
* INITIALIZATION
INITIALIZATION.
* MATERIAL
  CLEAR gs_opt_list.
  gs_opt_list-name          = 'OBJ_MATNR'.
  gs_opt_list-options-eq    = 'X'.
  gs_opt_list-options-bt    = 'X'.
  APPEND gs_opt_list TO gt_restrict-opt_list_tab.
  CLEAR gs_selopt.
  gs_selopt-kind            = 'S'.
  gs_selopt-name            = 'S_MATNR'.
  gs_selopt-sg_main         = 'I'.
  gs_selopt-op_main         = 'OBJ_MATNR'.
  APPEND gs_selopt  TO gt_restrict-***_tab.
* ORDER
  CLEAR gs_opt_list.
  gs_opt_list-name          = 'OBJ_AUFNR'.
  gs_opt_list-options-eq    = 'X'.
  APPEND gs_opt_list TO gt_restrict-opt_list_tab.
  CLEAR gs_selopt.
  gs_selopt-kind            = 'S'.
  gs_selopt-name            = 'S_AUFNR'.
  gs_selopt-sg_main         = 'I'.
  gs_selopt-op_main         = 'OBJ_AUFNR'.
  APPEND gs_selopt  TO gt_restrict-***_tab.
  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
    EXPORTING
      restriction            = gt_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.

Similar Messages

  • How to pass value to select-option parameter using SET PARAMETER Command

    Hi,
        Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass  MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
    Passing values to parameter id
    set parameter id 'VKS' field kschl.
    set parameter id 'VKO' field vkorg.
    set parameter id 'VTW' field vtweg.
    set parameter id 'KDA' field erdat.
    set parameter id 'MAT' field matnr_from.
    Change condition price.
    call transaction 'VK12' and skip first screen.
    Thanks in advance.
    Regards,
    Balamurugan.

    Hi,
    instead of using set parameters and dden call transaction use this..........
    submit RV13A004  WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Cheers
    Will.

  • Is exist restriction for select-options.........?

    is exist restriction for select-options?
    for example:
    <b> data: ftxt04(4).
    select-options: txt04 for ftxt04.</b>

    Hi,
    You can restrict select-options.
    SELECT-OPTIONS : S_VKORG FOR TVKO-VKORG MEMORY ID VKO.
    Form F1000_RESTRICT_VKORG.
    INITIALIZATION.
    PERFORM F1000_RESTRICT_VKORG.
    Define the object to be passed to the RESTRICTION parameter
    DATA lw_restrict TYPE SSCR_RESTRICT.
    Auxiliary objects for filling RESTRICT
      DATA lw_opt_list TYPE sscr_opt_list.
      DATA lw_***      TYPE sscr_***.
    Assign selection screen objects to option list and sign
    NOINTERVLS: BT and NB not allowed
      CLEAR lw_opt_list.
      MOVE 'NOINTERVLS' TO lw_opt_list-name.
      MOVE 'X' TO: lw_opt_list-options-cp,
                   lw_opt_list-options-eq,
                   lw_opt_list-options-ge,
                   lw_opt_list-options-gt,
                   lw_opt_list-options-le,
                   lw_opt_list-options-lt,
                   lw_opt_list-options-ne,
                   lw_opt_list-options-np.
      APPEND lw_opt_list TO lw_restrict-opt_list_tab.
    KIND = 'S':
      CLEAR lw_***.
      MOVE:  'S'          TO  lw_***-kind,
             'S_VKORG'    TO  lw_***-name,
             'I'          TO  lw_***-sg_main,
             '*'          TO  lw_***-sg_addy,
             'NOINTERVLS' TO  lw_***-op_main.
      APPEND lw_***  TO  lw_restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
           EXPORTING
                restriction            = lw_restrict
           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.     "Restriction error encountered for Select
                             "Option
        MESSAGE  I001 WITH 'ERROR IN SELECT OPTION'."ERROR IN SELECT OPTION
      ENDIF.
    endform.                    " F1000_RESTRICT_VKORG

  • Complex Restrictions in Select-options

    Hi Team,
    I've coded SELECT-OPTIONS in my web dynpro(ABAP) and want to disable the complex selection button/link (displayed just before the actual field). This link takes the user to either "Exclude" the selection or other options like "GE", "BT" etc. I actually want that user should only select ONE value with sign="I" and Option='EQ'. Is there a way to manage this? Please help.
    Thanks for your time.
    P.S: Points will be awarded for solutions

    Hi Sanjay.
    You can switch of intervall and complex restrictions using the 
    parameters I_USE_COMPLEX_RESTRICTION and I_NO_INTERVALS
    of the method ADD_SELECTION_FIELD:
    wd_this->mr_selop->add_selection_field(
                             i_id = lv_fieldname
                             i_no_intervals = abap_true
                             i_use_complex_restrictions = abap_false
    Hope this helps.
    Cheers,
    Sascha

  • Select-options when Using PNP logical database

    Hi ,
    We get a default selection screen when we use logical database in HR ABAP.
    But we always get the selection elements as "PARAMETERS" and not as "SELECT-OPTIONS".
    How can we change it to select options ....
    I tried all the options in HR- Report categories but it is not working..
    Kindly Help..
    Regards,
    Ashwin.

    Hi,
       execute the program. In the selection screen
    For eg:
             personel Number select the Mutiple Selection option. After that select the tab select intervals and u can give the range.
    Regards,
    Srinivas

  • FM for getting select-options for use in ALV header

    Hi All,
    Our customer wants the choosen selection options in the report header (ALV). I'm looking for a FM that gets all select-options and puts them in  (end-user) readable form.
    Anyone experience with this? Or has created such functionality before?
    Any help would be appriciated,
    Kind regards from a cloude Holland,
    Bert Hokojoku

    Use the fm: PRINT_SELECTIONS
    you can also use this:
        CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
          EXPORTING
            CURR_REPORT     = sy-repid
          TABLES
            SELECTION_TABLE = IT_VARI_TAB
          EXCEPTIONS
            NOT_FOUND       = 1
            NO_REPORT       = 2
            OTHERS          = 3.
    Regards,
    ravi
    Message was edited by:
            Ravi Kanth Talagana

  • Adding a field in further selection option when using PNP

    when we run a report using PNP we get a further selections button on top.  can we add a new field like molga, in that further selection option if yes then how...can someone help me on that.

    Hi,
    I guess the Report your using must be SAP standard report.If yes, then you have to copy that program to some Z-program & make the change in the program itself.
    Because this logic is in program itself.
    This is the only way.
    Correct me, if I am wrong.
    Can I know the name of the report?
    Thanks,sarika.

  • Passing select-options values using call transaction method

    Hi Experts,
    I have a scenario in which i have three fields BUKRS,WERKS and MATKL in an internal table i_tab and I have MATNR as a selection-option.
    After this I have to use call transaction <tcode> for all the line items in the internal table and the MATNR select-option values I have to pass directly for each line of i_tab using call transaction method.
    TYPES:  BEGIN OF t_tab,
              bukrs TYPE bukrs,
              werks TYPE werks_d,
              matkl TYPE matkl,
            END OF t_tab.
    DATA:  w_tab TYPE t_tab,
                i_tab      TYPE STANDARD TABLE OF t_tab.
    SELECT-OPTIONS: s_matnr FOR marc-matnr.
    Now I am putting a loop at i_tab and have to use CALL TRANSACTION <TCODE> for each line with the SELECT-OPTIONS for MATNR.
    Please tell me whether we can pass multiple ranges for MATNR using call transcation method.
    for example there can be multiple single values/multiple ranges/excluded ranges for MATNR. so please suggest me how tho achieve this sceanrio using CALL transaction method of BDC.
    Thanks a lot.
    Regards,
    Krishan

    Hi Krishan,
    For the Call transaction TCODE there is extension ....OPTIONS from OPT. Just Check it out. I think it is possible like this.
    ... OPTIONS FROM opt
    *Effect*
    This addition gives you control using the values of the components of the structure opt, which must be of the Dictionary type CTU_PARAMS. The components have the following meaning:
    DISMODE
    Processing mode (comparable with the MODE addition)
    UPDMODE
    Update mode (comparable with the UPDATE addition)
    CATTMODE
    CATT mode (controlling a CATT procedure)
    The CATT mode can have the following values:
    ' ' No CATT procedure active
    'N' CATT procedure without single screen control
    'A' CATT procedure with single screen control
    DEFSIZE
    Use standard window size
    RACOMMIT
    COMMIT WORK does not end CATT procedure
    NOBINPT
    No batch input mode, that s SY-BINPT = SPACE.
    NOBIEND
    No batch input mode after BDC data has been read
    The components DEFSIZE , RACOMMIT, NOBINPT, NOBIEND always take the following values:
    'X' Yes
    ' ' No
    If the OPTIONS addition is omitted, the following settings are valid for the control parameters:
    DISMODE from the MODE addition
    UPDMODE
    from the UPDATE addition
    CATTMODE
    No CATT procedure active
    DEFSIZE
    Do not use standard window size
    RACOMMIT
    COMMIT WORK ends procedure successfully
    NOBINPT
    Batch input mode, that is SY-BINPT =X.
    NOBIEND
    Batch input mode also active after BDC data has been read
    Regards,
    Swapna.

  • Restrictions in select-options

    Hi,
    How to remove the diffrent tabs in the extention of a select-option? Foe example I want to remove 'exclude single values' and 'exclude range' from the extention of select-options.
    Thanks in advance
    Jaison Joseph

    Hi
    Please check the following link which has many examples from our friends in the forum.
    Re: Restricting Select-options
    And one small example from me:
    TABLES: VBAK.
    TYPE-POOLS: SSCR.
    *               S E L E C T I O N    S C R E E N                       *
    SELECTION-SCREEN BEGIN OF BLOCK BLK3 WITH FRAME NO INTERVALS.
    SELECTION-SCREEN BEGIN OF BLOCK BLK0 WITH FRAME TITLE TEXT-000 NO
    INTERVALS.
      SELECTION-SCREEN BEGIN OF LINE.
        PARAMETERS: P_ARC RADIOBUTTON GROUP RAD0 DEFAULT 'X'
                          USER-COMMAND ABC.
        SELECTION-SCREEN  COMMENT (20) TEXT-003 FOR FIELD P_ARC.
        SELECTION-SCREEN  POSITION 33.
        PARAMETERS: P_DIS RADIOBUTTON GROUP RAD0.
        SELECTION-SCREEN  COMMENT (20) TEXT-004 FOR FIELD P_DIS.
      SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK BLK0.
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001 NO
    INTERVALS.
      PARAMETERS: P_VKORG LIKE VBAK-VKORG OBLIGATORY.
      SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN OBLIGATORY NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK BLK1.
    SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002 NO
    INTERVALS.
      PARAMETERS: P_SO   RADIOBUTTON GROUP RAD1 DEFAULT 'X' MODIF ID ABC,
                  P_PO   RADIOBUTTON GROUP RAD1 MODIF ID ABC,
                  P_SOPO RADIOBUTTON GROUP RAD1 MODIF ID ABC.
    SELECTION-SCREEN END OF BLOCK BLK2.
    SELECTION-SCREEN END OF BLOCK BLK3.
    *         A T     S E L E C T I O N - S C R E E N     OUTPUT           *
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'ABC' OR SCREEN-NAME = '%B002014_BLOCK_1000'.
             CASE 'X'.
             WHEN P_ARC.
               SCREEN-ACTIVE = 1.
             WHEN P_DIS.
               SCREEN-ACTIVE = 0.
             ENDCASE.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
    *                   I N I T I A L I Z A T I O N                        *
    INITIALIZATION.
    DATA: RES TYPE SSCR_RESTRICT.
    DATA OPT_LIST TYPE SSCR_OPT_LIST.
    DATA ***      TYPE SSCR_***.
    MOVE: 'OPT1' TO OPT_LIST-NAME,
          'X'    TO OPT_LIST-OPTIONS-EQ.
    APPEND OPT_LIST TO RES-OPT_LIST_TAB.
    MOVE: 'S' TO ***-KIND,
          'S_VBELN' TO ***-NAME,
          'I' TO ***-SG_MAIN,
          ' ' TO ***-SG_ADDY,
          'OPT1' TO ***-OP_MAIN.
    APPEND *** TO RES-***_TAB.
       CALL FUNCTION 'RS_INT_SELOPT_RESTRICT'
         EXPORTING
           PROGRAM                      = SY-REPID
           RESTRICTION                  = RES
        EXCEPTIONS
          SELOPT_WITHOUT_OPTIONS       = 1
          SELOPT_WITHOUT_SIGNS         = 2
          INVALID_SIGN                 = 3
          EMPTY_OPTION_LIST            = 4
          INVALID_KIND                 = 5
          REPEATED_KIND_A              = 6
          OTHERS                       = 7.
       IF SY-SUBRC <> 0.
       ENDIF.
    *                S T A R T - O F - S E L E C T I O N                   *
    Regards
    Eswar
    Message was edited by:
            Eswar Rao  Boddeti
    Just checked that the thread is already answered, am slow... NVM, it had resolved your query:)

  • Restrict in select options

    Hi to all experts,
    I have a select option in the selection screen my requirement is that the records which have movement type 101 or 105 should only get printed even if the user select as 101 to 105 the remaining (102,103,104) records should not get printed how can we achieve this

    >
    mozam khan wrote:
    > Hi Amit,
    >
    >  Im printing from  smartform . what are the other ways that we can do this
    Hello Mozam,
    You must have developed a custom driver program for this purpose. And in the SF interface have you must have passed an internal table with the Movement details ?
    If yes, you can delete the other movement types from this table & keep only the required ones.
    DATA:
    R_BWART TYPE RANGE OF BWART,
    WA_BWART LIKE LINE OF R_BWART.
    WA_BWART-SIGN = 'I'.
    WA_BWART-OPTION = 'EQ'.
    WA_BWART-LOW = '101'.
    APPEND WA_BWART TO R_BWART.
    WA_BWART-SIGN = 'I'.
    WA_BWART-OPTION = 'EQ'.
    WA_BWART-LOW = '105'.
    APPEND WA_BWART TO R_BWART.
    CLEAR WA_BWART.
    DELETE ITAB WHERE BWART NOT IN R_BWART.
    BR,
    Suhas
    Edited by: Suhas Saha on Feb 26, 2009 9:44 AM

  • Reading from select-options field into the internal table

    Hi,
      I have to read the low and high ranges from the select-options fields into a field in the internal table in order to update the same field in line item table. since the user may change the screen fields, i need to pass the values directly from the screen and store it in a variable in the internal table. Is there a way to pass both ranges, low and high to one variable which holds the entire range?
    Thanks,
    Sruthy

    Hi,
    In the Selection screen you can directly read the field(Select-option)value using read statement as follows:
    READ TABLE <SELECT-OPTIONS field name> [using index] INTO <work area>.
    After reading you can directly access all the values as follows and can store them in the variables:
    var1 = <work area>-LOW
    var2 = <work area>-HIGH
    var3 = <work area>-SIGN
    var4 = <work area>-OPTION
    as per your requirement.
    I think this will help you.
    <b>Kindly reward if helpful.</b>
    Regards,
    Shakuntala.

  • Restrict select options

    I am using a logical database in HR.I use the selection screen of the logical database but i want to restrict a select options for only permit introduce one value.
    I restrict in abap to only use values ,nor intervals by example and other conditions.Now i have to restrict to only one value.
    it must be work like a parameter

    Hi,
    U can use No-extension to restrict multiple selcet option button.
    See this link
    http://www.sapdevelopment.co.uk/reporting/selscr/selscr_restrictso.htm
    *: Report:  ZRESTRICT_SELOPT                                           :
    *: Author:  www.SAPdev.co.uk                                           :
    *: Date  :  2004                                                       :
    *: Description: Demonstrates how to restrict select options to only    :
    *:              allow specific restriction options:                    :
    *:                                     i.e.. EQ, NE, BT etc..          :
    REPORT ZRESTRICT_SELOPT.
    * Include type pool SSCR
    TYPE-POOLS sscr.
    TABLES: EKPO.
    * Selection-screen
    select-options : so_ebeln for ekpo-ebeln,
                     so_ebelp for ekpo-ebelp.
    * Variables for populating restriction data
    DATA: gd_restrict TYPE sscr_restrict.   "structure containing 2 tables
    DATA: gd_optlist  TYPE sscr_opt_list,   "header line for table 1
          gd_***      TYPE sscr_***.        "header line for table 2
    *INITIALIZATION.
    INITIALIZATION.
    * Restrict SO_EBELN to only except EQ, BT and NE.
      gd_optlist-name = 'KEY1'.      "Can be anything
      gd_optlist-options-eq = 'X'.
      gd_optlist-options-bt = 'X'.
      gd_optlist-options-ne = 'X'.
      APPEND gd_optlist TO gd_restrict-opt_list_tab.
      clear: gd_optlist.
      gd_***-kind = 'S'.
      gd_***-name = 'SO_EBELN'.
      gd_***-sg_main = 'I'.
      gd_***-sg_addy = SPACE.
      gd_***-op_main = 'KEY1'.       "Must be same as above
      APPEND gd_*** TO gd_restrict-***_tab.
      clear: gd_***.
    * Restrict SO_EBELP to only except CP, GE, LT.
      gd_optlist-name = 'KEY2'.      "Can be anything
      gd_optlist-options-cp = 'X'.
      gd_optlist-options-ge = 'X'.
      gd_optlist-options-lt = 'X'.
      APPEND gd_optlist TO gd_restrict-opt_list_tab.
      clear: gd_optlist.
      gd_***-kind = 'S'.
      gd_***-name = 'SO_EBELP'.
      gd_***-sg_main = 'I'.
      gd_***-sg_addy = SPACE.
      gd_***-op_main = 'KEY2'.       "Must be same as above
      APPEND gd_*** TO gd_restrict-***_tab.
      clear: gd_***.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
       EXPORTING
    *    PROGRAM                      =
        restriction                  = gd_restrict
    *    DB                           = ' '
       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.
    Kindly reward points for the answer which helped u and close the thread if ur problem got solved.
    Message was edited by: Judith Jessie Selvi

  • Select options using OVS empty

    Hi all,
    I have created a select options dynamically using OVS.
    If the output table is empty my OVS appears empty and i don't want that this appears.
    The search help must appear only when the output table is not empty.
    How do i solve this?
    Thanks

    Hi.
    My problem has not been repair.
    There is no way to disable an OVS at runtime.
    See:
    cancelling an OVS help?
    Thanks a lot.

  • Problem using select-options?

    Hi all,
    I am using select-options, in this 3 are selectoptions and 1 is normal.
    i am getting select-option value using..
    *cust code
      rt_KUNNR = wd_this->m_sel_opt->get_range_table_of_sel_field(
                                 i_id = 'KUNNR' ).
    but which method i ahve to use to get normal which is not of select-options.
    i am doing like this...
    *cust code
      rt_YEAR = wd_this->m_sel_opt->get_range_table_of_sel_field(
                                 i_id = 'GJAHR'
                                  ).  // I think this method is wrong place i used.
      assign rt_YEAR->* to <fs_GJAHR>.
      move <fs_GJAHR> to F_YEAR.
    *cust code
      rt_KUNNR = wd_this->m_sel_opt->get_range_table_of_sel_field(
                                 i_id = 'KUNNR' ).
      assign rt_KUNNR->* to <fs_kunnr>.
      clear S_KUNNR.
      loop at <fs_kunnr> into S_KUNNR.
        wa_kunnr-sign   = S_KUNNR-sign.
        wa_kunnr-option = S_KUNNR-option.
        wa_kunnr-low    = S_KUNNR-low.
        wa_kunnr-high   = S_KUNNR-high.
        append wa_kunnr to it_kunnr.
      endloop.
    But it is giving dump.. Field symbol has not yet been assigned.  at kunnr. but kunnar is select-option.
    Any helps...
    Thanks
    venkat.

    Hi Lekha
    thanks for your reply,
    i tried this...
    data : rt_YEAR TYPE REF TO data,
             <fs_gjahr> TYPE table,
             fs_year TYPE TABLE OF FYAC. // Fiscal year only year(4).
    call method wd_this->m_sel_opt->GET_SELECTION_FIELD(
                                 EXPORTING
                                 i_id = 'GJAHR'
                                 IMPORTING
                                 ET_RESULT =  rt_YEAR ).
      assign rt_YEAR->* to <fs_gjahr>.
      move <fs_gjahr> to fs_year.
    rt_year is still initial, and getting dum field symbol is not assigned. any helps???
    Thanks,
    Venkat.

  • OVS Help in Select Options-Text to be Shown and Code to be captured

    Hello Experts,
    I am using Select options in web dynpro abap.
    On a particular View container i have added a selection field using ADD_SELECTION_FIELD which has an OVS help to it.
    The selection field is of type CODE.
    And on click of a button i am reading the select option fields using GET_RANGE_TABLE_OF_SEL_FIELD and assigining this to a
    field symbol which inturn is being set to an attribute.
    My requirement is to show the TEXT to the user and send the CODE to the method which is called
    when the button is clicked and a table is populated.
    Normally we can keep two attributes one for TEXT and the other for CODE but for Select options i am not very sure how this can be achieved.
    Because in select options we are reading the values present on the select option field and there may be multiple values.
    Please guide me through this.
    Thanks in Advance,
    Shravan

    Hello Shravan,
    This can be easily achieved if you convert the selection field to dropdown.
    Create a valueset containing the list of valid values and then pass this to the ADD_SELECTION_FIELD method
    "Creating valueset
    DATA lt_valueset TYPE wdy_key_value_table.
    DATA ls_valueset LIKE LINE OF lt_valueset.
      ls_valueset-key = 'EN'.
      ls_valueset-value = 'English'.
      APPEND ls_valueset TO lt_valueset.
    "Creating selection field as Dropdown
    lr_helper->add_selection_field( i_id = <ID>
                                                       it_result = lt_range
                                                       i_as_dropdown = abap_true
                                                      it_value_set = lt_valueset ).
    BR, Saravanan

Maybe you are looking for

  • Order Canceled: unable to verify information

    Placed a $30 order last week.  Cancelled immediately "unable to verify information" after getting the order confirmation.  Spent 45 minutes on the phone to be told, "I don't know."  Shipping and Billing info are correct.  The same credit card seems t

  • Help!  Pages 09 save as Word document then footnotes gone

    My book manuscript is due to the publishers TOMORROW and I'm converting my Pages chapters into Word chapters so that the evil PC universe can read them. In the conversion of one of my chapters, my footnotes are missing from the last half of the docum

  • Support for Array Binding and PL/SQL tables (IN, INOUT, or OUT)

    I have attempted, unsuccessfully, to use array binding in stored procedure/function calls where the sp/sf has parameters that are PL/SQL tables. I have seen the topic floating around in this forum, but I have not seen the explicit questions: - Does O

  • Using multiple variables in Dataslice

    Hello Experts, It appears that I can create a dataslice using variables. Here is my challenge. I have created a function to activate and de-activate the locks using a function module executed via a planning folder. I have two user-input variables pla

  • Image to flashmember - print

    Hi forum For shockwave i will like to learn to transfer an image to a flashmember - to be able to print the image. It seems to be a good solution, if trying to avoid the use of a dedicated xtra for printing. I can make an image of the stage or genera