Populating select-options through code

Hi Experts,
   I have a requirement like in my selection screen I will have a select-options which will be input disabled. But in the initialization event I want to populate some values through coding. How can I populate multiple values. I should not use variant. I have to code only.
Expecting your help,
Venkatraman.

Hi,
As problem has Solved but following my Sample Code can help People who will Search, in fact i am posting this one because it is different from all the previous replies i am using Macro to populate Select-Options or you can do the Same for Ranges.
DEFINE fill_select_options.
  clear: &1.  &1-sign = &2.    &1-option = &3.   &1-low = &4. &1-high = &5.  append &1.
END-OF-DEFINITION.
SELECT-OPTIONS: sodate FOR sy-datum.
INITIALIZATION.
  fill_select_options sodate 'I' 'BT' '20080101' '20080131'.
  fill_select_options sodate 'E' 'BT' '20080110' '20080115'.
  fill_select_options sodate 'I' 'EQ' '20080201' '20080201'.
  fill_select_options sodate 'I' 'EQ' '20080205' '20080205'.
Regards,
Faisal

Similar Messages

  • Populating select-options in a variant through selection variable

    I have a select-options on the selection screen of a report. I have created a variant for this report. Now i want to populate this variant field through selection variable (entries of table TVARVC). How can i manage to populate multiple values in this. Suppose i want the variant to hold a range of values, how do i set the variable in the table so that the multiple values can be set dynamically?

    Hi Ravi,
    I know how to populate select-options but i want to know how to set up the selection variable in table TVARVC for using it in populating a select-option in a report variant. we populate these selection variables using the transaction STVARV where we specify a value against a particular variable. How can this variable multiple values (for example a range) so that a select-option can be populated dynamically through this?
    regards,
    Priyank

  • Passing values to a select option through submit

    hi all,
    i am using the following code to submit report.
    SUBMIT :rko7co88 USING SELECTION-SET 'ZTEST_PS'
                     WITH SELECTION-TABLE seltab
                     WITH perio = v_month
                     WITH gjahr = v_year
                     WITH vaart = c_1.
    the table seltab is being populated as shown below.
    LOOP AT i_aufnr INTO i_aufnr_wa.
      seltab_wa-selname = 'AUFNR'.
      seltab_wa-sign = 'I'.
      seltab_wa-kind = 'S'.
      seltab_wa-option = 'EQ'.
      seltab_wa-low = i_aufnr_wa-aufnr.
      APPEND seltab_wa TO seltab.
      CLEAR seltab_wa.
    ENDLOOP.
    but when i run this program it gives a short dump saying program has excceded the maximum time permited.
    the problem seems to be with passing table seltab to select option, because when i run the program witout that statemant  "WITH SELECTION-TABLE seltab" . it works fine.
    in seltab i have selected only open orders which r confirmed, when i run the program without passing seltab it takes all the orders and works fine but according to my requirement i have to run the program for only open orders.
    pls suggest the way out.
    thanks
    pankaj sharma

    Hi pankaj,
    1. I tried the same thing, and now its working fine.
    2. I also used the extension of submit
      <b>  via selection-screen.</b>
       to temporarily check what values are going in the screen.
    3. just copy paste to get a taste of it.
    4. Values 11111, 2222 will come in AUFNR.
    5.
    report abc.
    DATA : SELTAB LIKE RSPARAMS OCCURS 0 WITH HEADER LINE.
    SELTAB-SELNAME = 'AUFNR'.
    SELTAB-KIND  = 'S'.
    SELTAB-SIGN  = 'I'.
    SELTAB-OPTION  = 'EQ'.
    SELTAB-LOW  = '11111'.
    APPEND SELTAB.
    SELTAB-SELNAME = 'AUFNR'.
    SELTAB-KIND  = 'S'.
    SELTAB-SIGN  = 'I'.
    SELTAB-OPTION  = 'EQ'.
    SELTAB-LOW  = '222222'.
    APPEND SELTAB.
    submit  RKO7CO88
    WITH perio = '001'
    WITH gjahr = '2006'
    WITH vaart = '1'
    WITH SELECTION-TABLE SELTAB
    via selection-screen.
    regards,
    amit m.

  • Passing select options through subroutines

    Hi
    how do you pass select option values through subroutines?

    Hello,
    Is this what you are looking for:
    TYPES: ty_r_bukrs TYPE RANGE OF bukrs.
    DATA:
          v_date TYPE datum,
          v_bukrs TYPE bukrs.
    SELECT-OPTIONS:
    s_bukrs FOR v_bukrs OBLIGATORY,
    s_date FOR v_date.
    AT SELECTION-SCREEN.
      PERFORM f_check_cocd
      USING s_bukrs[].
    *&      Form  f_check_cocd
    *       Check Comp. Code
    FORM f_check_cocd
      USING fp_s_bukrs TYPE ty_r_bukrs.
      DATA: l_v_bukrs TYPE bukrs.
      SELECT bukrs UP TO 1 ROWS
      FROM t001
      INTO l_v_bukrs
      WHERE bukrs IN s_bukrs.
      ENDSELECT.
      IF sy-subrc <> 0.
    *   Throw Error Message
      ENDIF.
    ENDFORM.                    " f_check_cocd
    BR,
    Suhas

  • Populating select-option, parameter simultaneously

    Hi All,
    I have a select option and a parameter on the selection screen. The parameter is disabled for input and enabled for output. The F4 for the the select option has a numeric value and a corresponding text (comes from a standard function module). When I select a value from F4, the numeric value should go to the select-option and the text should go to the input disabled parameter.
    At the moment, I am having to press an enter after choosing F4, for the text to reflect in the parameter field. I need both of them displayed at the same time, without having to press an enter.
    Please guide me about how I could achieve this.
    Thanks and Regards,
    Vidya.

    use this code in your F4 Help of Select Option after F4 Help Function Module .
    DATA SCR_FIELDS  LIKE DYNPREAD   OCCURS 0 WITH HEADER LINE.
    SCR_FIELDS-FIELDNAME =  ur parameter Name.
    SCR_FIELDS-FIELDVALUE =  ur parameter value(ur Text Field)
    APPEND SCR_FIELDS.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          DYNAME               = PROG_name
          DYNUMB               = SY-DYNNR
        TABLES
          DYNPFIELDS           = SCR_FIELDS
        EXCEPTIONS
          INVALID_ABAPWORKAREA = 1
          INVALID_DYNPROFIELD  = 2
          INVALID_DYNPRONAME   = 3
          INVALID_DYNPRONUMMER = 4
          INVALID_REQUEST      = 5
          NO_FIELDDESCRIPTION  = 6
          UNDEFIND_ERROR       = 7
          OTHERS               = 8.
    So you need not have to press Enter
    Regards,
    Alpesh
    Edited by: Alpesh on Mar 14, 2009 11:44 AM

  • Submit statement and populating select options.

    Hi to all experts.
    My requirement to call the program RSWUWFML2 in my zreport with selection option (task) from zreport should be populated into the standard program selection screen.I know this can be done using submit report how to populate the select options .

    Hi,
    The screen elements of the called program must be declaredd as  ranges in the calling program as shown..
    RANGES: seltab1 FOR spfli-carrid,
            seltab2 FOR spfli-connid.
              seltab1-sign = 'I'.
              seltab1-option = 'EQ'.
              seltab1-low = 'AA'.
              APPEND seltab1.
              seltab2-sign = 'I'.
              seltab2-option = 'EQ'.
              seltab2-low = '0017'.
              APPEND seltab2.
    SUBMIT <called prog> VIA SELECTION-SCREEN
                                WITH s_carrid IN seltab1
                                WITH s_connid IN seltab2
                                AND RETURN.
    to call  report RSWUWFML2.....
    in zreport declare ranges as:
    RANGES: seltab1 for swwwihead-wi_rh_task.
              seltab1-sign = 'I'.
              seltab1-option = 'EQ'.
              seltab1-low = '<value>'.
              APPEND seltab1.
              seltab2-sign = 'I'.
              seltab2-option = 'EQ'.
              seltab2-high = '<value>'.
              APPEND seltab1.
    SUBMIT RSWUWFML2 VIA SELECTION-SCREEN
                                WITH p_tasks  IN seltab1
                               AND RETURN.
    Hope it helps.....
    Regards,
    Mdi.Deeba
    Edited by: Mdi.Deeba on Aug 3, 2009 10:59 AM

  • Populating select-options dynamically

    Hey Everybody,
    I've done some reports with Select-options, but all the fields directly related to some field in a transparent table. As many of you might have experienced, things changed with the latest report that I have to develop.
    I have to derive the drop-down for the select-options dynamically.
    Could anybody provide me with the details, code snippets, hints on how to do this.
    Thank You.
    Sumit.

    Here is an example program where you are generically defining the select-option and building its F4 help at runtime.
    report zrich_0001 .
    data: begin of ihelp occurs 0,
          field type char10,
          ftext type char50,
          end of ihelp.
    data: a_field(20) type c.
    select-options s_field for a_field.
    initialization.
      ihelp-field = 'A'.
      ihelp-ftext = 'Description A'.
      append ihelp.
      ihelp-field = 'B'.
      ihelp-ftext = 'Description B'.
      append ihelp.
      ihelp-field = 'C'.
      ihelp-ftext = 'Description C'.
      append ihelp.
    at selection-screen on value-request for s_field-low.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'FIELD'
                dynprofield = 'S_FIELD'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = ihelp.
    start-of-selection.
    REgards,
    Rich Heilman

  • How to design select-option through screen painter

    I am new to screen painter. I want to make a screen having range of values high/low (just like select-option)......How can I do this using screen painter?

    Hi!
    Method 1
    a) Create a subscreen area in your screen layout where you want to create the select options.
    b) In the top include of  your module pool program declare a selection screen as a subscreen e.g.
           SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
                 select-options s_matnr for mara-matnr.
           SELECTION-SCREEN END OF SCREEN.
    c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
           CALL SUBCREEN sub_area INCLUDING    
      This call subscreen statement is necessary for transport of values between screen and program.
    Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
    Method 2
    a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
    struc_tab_and_field-fieldname   = con_cust.      " 'KUNNR'
    struc_tab_and_field-tablename = con_kna1.     " 'KNA1'.
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
              EXPORTING
              TITLE                   = ' '
                text                         = g_titl1                                " 'Customers'
                tab_and_field     = struc_tab_and_field
              TABLES
                RANGE                   = rng_kunnr
              EXCEPTIONS
                NO_RANGE_TAB          = 1
                CANCELLED                    = 2
                INTERNAL_ERROR     = 3
                INVALID_FIELDNAME = 4
                OTHERS                           = 5.
    IF NOT rng_kunnr[] IS INITIAL.
             Read the very first entry of the range table and pass it to
             dynpro screen field
               READ TABLE rng_kunnr INDEX 1.
               IF sy-subrc = 0.
                  g_cust = rng_kunnr-low.
               ENDIF.
    You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements
    You can go with it also ....
    Re: Select-options in dynpro
    Regards....

  • Populating select-options in the main view

    hi
    i have two views. main screen and view1.
    in main i have created a selection screen with 6 fields. view1 also has selection screen and same fields in it. when i go to view1 and click on ok button, i need to comeback to main view and populate the selection field with the values entered in view1. i am successful to some extent. i am able to access the values entered in view1 selection fields in "modify" method of the main view, but do not know how to fill the selection fields of main view with this values.
    thanks

    Hi,
    I just want to be sure that have you created the node in the context of the component controller and mapped the same in both of the views for building the selection screen?
    If yes then you wont be having any problem in accessing the values from any views, changes in any view will reflect in the other .
    If no then just modify the design as per the above description.
    TO read the vlalue...just read the context of the node in the view using the code wizrd, and set the value to the attributes using set_attributes method.
    Hope this might help you out.
    Pooja

  • Requirement to add some select options in Code inspector inspection SCII

    Hello Experts,
    I want to add some more fields to the parameter Naming convention of the Check variant (such as Internal table ,work area) in transaction SCII.
    Please let me know how it can be done.
    Thanks and Regards,
    Rahul Sinha

    Hello,
    I think you can customize the trxn (create your own variants) using SCI. I am not sure if SCII can help you on this.
    To maintain your own set of naming conventions :
    SCI --> Create Check Variant --> Programming Conventions --> Naming Conventions.
    Please go through the blog. It is very well documented on how to proceed with creating your own variants & using them in your code.
    In SCII you have a "Temporary Definition" radio button. Here you have the tree like: Programming Conventions --> Extended Naming convention for Program
    Here you can maintain the naming convention for you internal table & structures
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 8, 2010 11:08 AM

  • SELECT-OPTIONS in a "Get_Persistent_by_QUERY".

    Hi Experts,
    I am using a SELECT-OPTIONS in the method: "Get Persistent by Query". But I have an error. This is my code below.
    SELECT-OPTIONS so_date     FOR    sy-datum                      .
    DATA lo_query_manager TYPE REF TO if_os_query_manager           .
    DATA lo_query         TYPE REF TO if_os_query                   .
    DATA lo_agent         TYPE REF TO zca_persistence_zint_rsbankinv.
    DATA lo_base          TYPE REF TO zcb_persistence_zint_rsbankinv.
    DATA lo_rsbankinv     TYPE REF TO zcl_persistence_zint_rsbankinv.
    DATA lo_table         TYPE        osreftab                      .
    DATA ls_table         TYPE REF TO zcl_persistence_zint_rsbankinv.
    DATA ls_tmp           TYPE REF TO object                        .
    DATA lv_string        TYPE        string                        .
    DATA lo_exception     TYPE REF TO cx_root                       .
    TRY .
       lo_agent    = zca_persistence_zint_rsbankinv=>agent.
    * Create Query
       lo_query_manager = cl_os_system=>get_query_manager( ).
       lo_query         = lo_query_manager->create_query( i_filter     = 'ZEXDAT IN PAR1' ).
       lo_table         =
       lo_agent->if_os_ca_persistency~get_persistent_by_query(
       i_query = lo_query
       i_par1  =  so_date
       LOOP AT lo_table INTO ls_tmp.
         ls_table ?= ls_tmp        .
         lv_string = ls_table->zget_all_fields( ).
         WRITE lv_string.
       ENDLOOP.
    CATCH cx_root INTO lo_exception.
       lv_string = lo_exception->get_text( ).
       WRITE lv_string.
    ENDTRY.
    Error message :
    Syntax error when parsing a query : Excepected symbol 'IN' (row: O, column: 7)
    Have you got any idea regarding this error. And how could I code a SELECT-OPTION in a Get Persistence by Query ?.
    Also, I have found something interesting. I have used the MF: "RDS_RANGE_TO_WHERE" to build a WHERE SQL condition from a SELECT-OPTION but I don't know if it is usable for my need:
    WHERE Statement: 'ZEXDAT BETWEEN '20110203' AND '20150203' AND NOT ZEXDAT IN ('20140219','20140306','20140321')'
    Many thank for your help !
    Rachid.

    Hi Custodio,
    thank you for reply. I have a last question.
    Is it possible to build a Query with the SELECT OPTION through attribut I_PARAMETERS_TAB ?
    I guess attr. I_PARAMETERS_TAB is used when you need to use more than 3 criteria of selection (PAR1,PAR2,PAR3) .
    My SELECT OPTION is like that :
    Have you got any idea for using I_PARAMETERS_TAB ?
    ...if_os_ca_persistency~get_persistent_by_query( i_query = lv_query
                                                                                    i_parameter_tab = ?????
    *                                                                               i_par1 =
    *                                                                               i_par2 =
    *                                                                               i_par3 =
    Unfortunately, I have no examples in SCN.
    Best regards.
    Rachid.

  • 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 |

  • 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.

  • Select-options in SELECT query - syntax error

    Hi all,
      I get the error below when I try to use the select options in a SELECT query . Please help me.
    "The IN operator with "SO_AWART" is followed neither by an internal
    table nor by a value list."
    The code i have used(Logical database  PNP is used):
    TABLES: pernr,
            catsdb.
    INCLUDE ztime_cwtr_top.    " global Data
    INCLUDE ztime_cwtr_f01.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS SO_AWART FOR CATSDB-AWART.
    PARAMETERS P_THRES TYPE I.
    SELECTION-SCREEN END OF BLOCK B1.
    Get data from CATSDB table. Workdates within the date interval are considered.
      SELECT pernr workdate awart catsquantity beguz enduz status
      FROM catsdb
      INTO TABLE it_catsdb
      WHERE pernr  = pernr-pernr    AND
           workdate GE pn-begda     AND
           workdate LE pn-endda     AND
           status   IN ('20', '30') AND
           awart    IN  so_awart .
          awart    IN ('1100', '1137', '1138', '1139', '1140',
                      '1147', '1148', '1149', '1157', '2003' ).
    when I give the values directly i do not get any syntax error, but when I use select options in the where condition I get the syntax error.
    I have tried different options like using only the select-options in the where condition.
    Thanks in advance.....
    Madhu

    Solved.
    Code with syntax error:
    include z...top .
    include z...fo1.
    select-options: xxxxxxx
    Code  with no syntax error:
    select-options: xxxxxxx
    include z...top .
    include z...fo1.
    Thanks for all your help,
    Madhu

  • Event should trigger when enter is pressed on select option for validation

    Hi,
    I want to trigger a event when enter is pressed on a select option field for validation.
    I have created a select option through coding. I am not able to find out any method or class for that.
    please advice.

    Hi Sachin ,
         If you want ot use the methods in the class CL_WDR_SELECT_OPTIONS.
    You can find here:-
    [WDR_SELECT_IPTIONS|https://cw.sdn.sap.com/cw/docs/DOC-20864.pdf]
    Check these if can find ur required one.
    If you are using any ui element then you can use ON_ENTER event as a action as stated by Baskaran.
    Check also if these threads can help you:-
    [WebDynpro ABAP select options method SET_VALUE_OF_PARAMETER_FIELD;
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd]
    Thanks & Regards,
    Monishankar Chatterjee

Maybe you are looking for

  • Lost ethernet connectivity

    Fisrt of all, thanks everybody. I'have been facing a problem of lost of connectivit at ethernet interface. I'm using 2 Aironet 1310 as bridge between 2 buildings. The wireless configuration is OK. It is an intermmitent problem. Sometimes all computer

  • Pass retrieval - two accounts only one email addre...

    Hi everyone, Somehow I seem to have two Skype names registered to the one email address. Let's call them "One" and "Two". I'm trying to access account One, but there seems to be a password issue. When I go through password recovery, I get sent an ema

  • C:\Windows\system32\ntvdm.exe Error

    I keep getting this message when I start iTunes and when I go to sync my iTouch C:\Windows\system32\ntvdm.exe Error. iTunes seems to be working properly. But is annoying

  • Historical data move.

    Hi, In my database i have various main transactional tables which contains 8 to 9 years of old data but my users hardly fetch data which is older than 2 years. Some time this much data in my tables impact the application performance. Now i want to mo

  • Pls tell me the syntax of editable alv

    i am trying to make an alv report which should be editable pls let me know