WD: Select Options shows empty ranges

Hi there,
Im using select options in my wd application... I defined a few fields (numeric, dats and so on).  I was expecting that the select options in wd works like the normal ones in normal abap report.
But when I try to read the results from select options , the result range table has no sign or option value (low value ok) ... when I reach the result to a Select statement a shortdump happen with the notice there is no sign or option value in the IN parameter of the Selection statement.
Does any one know if this is standard behavior of WD select options ?

Hi ,
try to understand following code .
METHOD wddoinit .
  DATA:
       lr_componentcontroller TYPE REF TO ig_componentcontroller,
       l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
  DATA:
      lt_range_table       TYPE REF TO data,
      lt_types             TYPE string_table,
      rt_range_table       TYPE REF TO data,
      text                 TYPE string,
      typename             TYPE string.
  DATA: vbeln TYPE lips-vbeln,
        erdat TYPE lips-erdat,
        auart TYPE vbak-auart,
        trnsp TYPE vtadd01t-add_info,
        kunnr TYPE likp-kunnr.
  DATA:
    num_events TYPE i.
  DATA: uname TYPE sy-uname.
  uname = sy-uname.
  wd_context->set_attribute(  name = 'CUSTOMER'
  value = uname  ).
*  wd_context->GET_ATTRIBUTE( Name = 'TRANSPORTER_CODE'
*  Value = uname ).
* create the used component
  l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
    l_ref_cmp_usage->create_component( ).
  ENDIF.
* get a pointer to the interface controller of the select options component
  wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
* init the select screen
  wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
  lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBELN_VL' ).
  wd_this->m_handler->add_selection_field(
    i_description                = 'Sales Document'
    i_id                         = 'VBELN'
    i_obligatory                 = 'X'
    it_result                    = lt_range_table
    i_value_help_structure       = 'LIPS'
    i_value_help_structure_field = 'VBELN' ).
  lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'ERDAT' ).
  wd_this->m_handler->add_selection_field( i_id = 'ERDAT'  i_obligatory = 'X' it_result = lt_range_table ).
*lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VTTK_ADD01' ).
*wd_this->m_handler->add_selection_field( i_id = 'VTTK_ADD01' I_DESCRIPTION  = 'CHAHA' it_result = lt_range_table ).
*    wd_this->m_handler->add_selection_field(
*      i_description                = 'Transporters Code'
*      i_id                         = 'VTTK_ADD01'
*      it_result                    = lt_range_table
*      i_value_help_structure       = 'VTADD01T'
*      i_value_help_structure_field = 'ADD_INFO' ).
*Supress Global options in Used Component
  wd_this->m_handler->set_global_options(
      i_display_btn_cancel  = ''
      i_display_btn_check   = ''
      i_display_btn_execute = ''
      i_display_btn_reset   = '' ).
  lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBAK-AUART' ).
  wd_this->m_handler->add_selection_field(
    i_description                = 'Sales Document Type'
    i_id                         = 'AUART'
     i_obligatory                = 'X'
    it_result                    = lt_range_table
    i_value_help_structure       = 'VBAK'
    i_value_help_structure_field = 'AUART' ).
ENDMETHOD.
METHOD onactionexecute .
  DATA: node_saledoc TYPE REF TO if_wd_context_node.
  DATA: node_crdate TYPE REF TO if_wd_context_node.
  DATA: node_transcode TYPE REF TO if_wd_context_node.
  DATA: node_doctype TYPE REF TO if_wd_context_node.
  DATA: node1 TYPE REF TO if_wd_context_node.
  DATA: node2 TYPE REF TO if_wd_context_node.
  DATA: rt_saledoc TYPE REF TO data.
  DATA: rt_crdate TYPE REF TO data.
  DATA: rt_transcode TYPE REF TO data.
  DATA: rt_doctype TYPE REF TO data.
  FIELD-SYMBOLS: <fs_saledoc> TYPE table,
                  <fs_crdate> TYPE table,
                  <fs_transcode> TYPE table,
                  <fs_doctype> TYPE table.
* Retrieve the data from the select option
  rt_saledoc = wd_this->m_handler->get_range_table_of_sel_field(
  i_id = 'VBELN' ).
* Assign it to a field symbol
  ASSIGN rt_saledoc->* TO <fs_saledoc>.
* Retrieve the data from the select option
  rt_crdate = wd_this->m_handler->get_range_table_of_sel_field(
  i_id = 'ERDAT' ).
* Assign it to a field symbol
  ASSIGN rt_crdate->* TO <fs_crdate>.
* Retrieve the data from the select option
  rt_doctype = wd_this->m_handler->get_range_table_of_sel_field(
  i_id = 'AUART' ).
* Assign it to a field symbol
  ASSIGN rt_doctype->* TO <fs_doctype>.
* Retrieve the data from the select option
*rt_transcode = wd_this->m_handler->get_range_table_of_sel_field(
*i_id = 'VTTK_ADD01' ).
** Assign it to a field symbol
*assign rt_transcode->* to <fs_transcode>.
  node_saledoc = wd_context->get_child_node( name = 'S_VBELN' ).
  node_saledoc->bind_table( <fs_saledoc> ).
  node_crdate = wd_context->get_child_node( name = 'S_ERDAT' ).
  node_crdate->bind_table(  <fs_crdate> ).
  node_doctype = wd_context->get_child_node( name = 'S_AUART' ).
  node_doctype->bind_table( <fs_doctype> ).
  IF <fs_doctype> IS NOT INITIAL
    AND <fs_crdate> IS NOT INITIAL
    AND <fs_saledoc> IS NOT INITIAL
    wd_comp_controller->execute_zotddelvnote_vend_tari( ).
  ENDIF.
ENDMETHOD.
Regards,
Amit solanki
Edited by: Amit Solanki on Aug 19, 2009 11:30 AM
Edited by: Amit Solanki on Aug 19, 2009 11:32 AM

Similar Messages

  • How do I use a Select-Options field without Ranges?

    Hi,
    I understand that by using the NO-EXTENSION option on the Select-Options statement I can limit the user to entering only one line...either a single value or a range of values.
    However, is there a way to allow multiple lines of single values, but not allow any of those lines to be a range...just a series of single values only?
    Thanks!
    Andy

    Amit,
    I do not see they yellow arrow "before" "to", but I see it "after" "to".
    When I click the arrow I am able to add ranges.  I would like to prevent the user from entering Ranges.
    Did I misunderstand what you were trying to say?
    Andy

  • Select options restrication of ranges

    Hello Experts.
    in the selection screen i need to have an option to enter the movement types.suppose if user  will give like 10 and 100.The system should not take all the values between 10 to 100 like select options. It SHOULD GIVE ONLY 10 AND 100 RECORDS so please tell me how to code this . Already i declared like .. select-options s_bwart for mseg-bwart. so please tell me how to restrict this even if i use select options also. Thanks for all the replies.

    Dear,
    This is quite simple.
    Do like this in your declration.
    SELECT-OPTIONS : S_BWART FOR MSEG-BWART  NO-EXTENSION .
    here you have single input field for BWART in your selection screen, with a arrow in front of it.
    Click on this arrow and now enter all values which need to be entered.
    10
    100
    and now only these  which you put here is considered only.
    reward if useful.
    Amit Singla
    Message was edited by:
            Amit Singla

  • Select option "Show this View : in Folder of Content type : {Custom Content Type Name}" while creating view using CSOM

    Hi,
    I am trying to create "View" in a Document Library and need to enable following:
    1. Mark as default View
    2. Folders -> Show this view : in Folders of Content Type : {Custom Content Type name}
    I am using following code which sets "in Folders of Content Type : " to "Folder" rather than selecting custom content type despite passing Content Type ID of custom content type.
    code:
    var itemContentTypes = clientContext.LoadQuery(web.AvailableContentTypes.Where(ct => ct.Name == viewContentType));
    clientContext.ExecuteQuery();
    var itemContentType = itemContentTypes.FirstOrDefault();
    view.ContentTypeId = itemContentType.Id;
    view.DefaultViewForContentType = true;
    view.Update();
    clientContext.ExecuteQuery();
    Please highlight what seems to be missing?
    Thanks
    Sonal

    Hi,
    Before you set the content type ID for the view, you need to add the custom content type to the library firstly.
    You can add the content type to library using OOTB feature “Add from existing site content types” in library settings or using Client Object Model.
    Here is a code snippet for your reference:
    var list = context.Web.Lists.GetByTitle(listTitle);
    list.ContentTypesEnabled = true;
    var contentType = context.Site.RootWeb.ContentTypes.GetById("0x0120");
    list.ContentTypes.AddExistingContentType(contentType);
    context.ExecuteQuery();
    More information about add exist content type using Client Object Model:<o:p></o:p>
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.contenttypecollection.addexistingcontenttype%28v=office.15%29.aspx
    Best regards,
    ZhengyuGuo
    Zhengyu Guo
    TechNet Community Support

  • Dynamical declaration of SELECT-OPTIONS / RANGE possible

    Hi fellow programmers,
    does anybody know whether there is a way to declare a
    SELECT-OPTION respectively a RANGE dynamically during
    runtime? I have both the name of the range to be created
    and the DDIC-referencefield stored in variables.
    Thanks in advance for your appreciated help.
    Andreas

    Hi Andreas,
    DYNAMIC PROGAM SHOWS SELECTION-SCREEN.
    1 Sap does not allow execution of dynamic programs from memory.
      (dynamic means, only in memory, not in database)
    2. However, it allows execution of dynamic FORM/ENDFORM.
    3. But your requirement is of selection-screen using parameters and select-options.
    4. Hence, we can use the concept of DYNAMIC PROGRAM
       (build the program code in an internal table)
       using command
       INSERT REPORT 'ZDYN01' FROM itab.
       THIS WILL SAVE / OVERWRITE THE PRGRAM IN DB.
       HENCE, BE CAUTIOUS.
    5. Just Copy/Paste this sample program
       It will generate a dynamic program called ZDYN01.
       it will also execute it and
       SHOW SELECTION-SCREEN
       of the DYNAMIC PROGRAM.
    6. You may build up yuour own logic
        of constructing selection-screen from   
         required data stored in tables.
    7.
    REPORT abc.
    Data
    DATA : BEGIN OF itab OCCURS 0,
           l(72) TYPE c,
           END OF itab.
    DATA : prog(8) TYPE c.
    Make Dynamic Program
    CLEAR itab.
    itab-l = 'REPORT ABC.'.
    APPEND itab.
    itab-l = 'PARAMETERS : MATNR LIKE MARA-MATNR.'.
    APPEND itab.
    itab-l = 'START-OF-SELECTION.'. APPEND itab.
    itab-l = 'WRITE :/  MATNR.'. APPEND itab.
    Generate Program
    INSERT REPORT 'ZDYN01' FROM itab.
    COMMIT WORK. "----- COMMIT NECESSARY FOR DB
    *------ Call Report
    SUBMIT zdyn01 VIA SELECTION-SCREEN.
    HOPE THE ABOVE HELPS.
    Regards,
    Amit M.

  • 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 option in time using oracle

    i attach an excel file in oracle, i have a time field in my table, i give the select option in time ie, i select the time 4:00:00 - 6:00:00 in that time period data will display,
    for example html format ie, output format.

    Hi
    No!
    U need to find a way to convert a range of select-option to a range for Native SQL, probably it should be better doesn't use a select-option for the date but two parameters: one for date from and one for date to.
    Max

  • I have problem in select options

    Hi All,
    i did one report, i have one one variable that is ranges:R_TRNTYP FOR J_1IEXCDTL-TRNTYP.
    R_TRNTYP contains values(10,11,12,20,21,30,31).when i give 10 then only 10 will be come but 10 ,11,20
    values are coming in out put .what can i do .give me suggitions.
    Thanks .

    Hi,
    If the value is present in the ranges it will take all of them.. You cannot control that.. Instead its better to use select options for proving range.. If you want the value like ' 10,11,12,15,16'.. in your output then while testing just add the value from 10-16 in the GREEN tab in ranges of select-option in the selection screen and enter the value '13,14' i.e. the one's which you dont want in the RED tab for either single/range value..
    Hope i am clear..

  • Problem with table-indexes when using select-options in select

    Hello experts,
    is it right that table-indexes will not be used if you take select-options to select data from the database?
    in detail:
    i have build up an table-index for one of our db-tables and test it via an test-programm. The first test with '=' comparisons worked fine. Every key of the index was used; checked via ST05!
    e.g.:    SELECT * FROM TABLEA INTO ITAB WHERE keya = '1' AND keyb = '2' AND keyc = '3'.
    Now i startet the test with select-options
    e.g.:   SELECT * FROM TABLEA INTO ITAB WHERE keya IN seltabA  AND keyb IN seltabB AND keyc IN seltabC.
    First of all i just filled the seltabs with only 1 value:    eg:  seltabA=      SIGN = 'I'   OPTION = 'EQ'   LOW = '1'     etc.
    Everything worked fine. Every key of the index was used.
    But now, I putted more than one entries in the seltabs e.g.
    seltabA:      SIGN = 'I'   OPTION = 'EQ'   LOW = '1'
                       SIGN = 'I'   OPTION = 'EQ'   LOW = '2'   
                       SIGN = 'I'   OPTION = 'EQ'   LOW = '3'
    From now on, the indexed was not used completely (with all keys).
    Isn't that strange? How can i use select-options or sel-ranges with using the complete table-indexes?
    Thanks a lot,
    Marcel

    Hi Hermann,
    i hope this helps:
    this is the first one, which uses the complete index:
    SELECT                                                                     
      "KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,   
      "GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,    
      "HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,      
      "TERDAT"                                                                 
    FROM                                                                       
      "/dbcon/01_con"                                                       
    WHERE                                                                      
      "MANDT" = ? AND "LIFNR" = ? AND "ORGID" = ? AND "KOART_BASIS" = ? AND    
      "STATUS" = ? AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR "STATUS" = ? OR
      "STATUS" = ? )  WITH UR                 
    RESULT: 5 IXSCAN /dbcon/01_con05 #key columns:  4
    And the second one, which does not use the complete index! The 3 ranges are filled each with 2 values. Remember; when i fill them each with only one value, the result is the same as you can see above(/dbcon/01_con05 #key columns:  4):
    SELECT                                                                     
      "KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,   
      "GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,    
      "HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,      
      "TERDAT"                                                                 
    FROM                                                                       
      "/dbcon/01_con"                                                       
    WHERE                                                                      
      "MANDT" = ? AND "LIFNR" IN ( ? , ? ) AND "ORGID" IN ( ? , ? ) AND        
      "KOART_BASIS" IN ( ? , ? ) AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR 
      "STATUS" = ? OR "STATUS" = ? )  WITH UR                                  
    and here the access-plan
       0 SELECT STATEMENT ( Estimated Costs =  5,139E+01 [timerons] )                                                                               
    5     1 RETURN                                                                               
    5     2 NLJOIN                                                                               
    5     3 [O] TBSCAN                                                                               
    5     4 SORT                                                                               
    5 TBSCAN GENROW                                                                               
    5     6 <i> FETCH /dbcon/01_con                                                                               
    7 IXSCAN /dbcon/01_con05 #key columns:  2   
    As you can see, only 2 keys were taken for indexed selection!
    Any idea?
    Kind regards,
    MArcel
    Edited by: Marcel Ebert on Jul 28, 2009 5:25 PM

  • Select options and parameter

    We have a parameter and select option in Selection Screen, by using the parameter and select option in the select query, with out passing the any values to the Parameter and SO, how we will get the records?

    hi check this..
    if the parameter is empty if will not work in the select statement..you can get the values for the select options with empty structures..
    check this..
    tables:mara .
    data: begin of itab occurs 0,
    matnr like mara-matnr,
    end of itab .
    parameters:p_matnr like mara-matnr.
    select matnr  from mara into table itab
    where matnr  = p_matnr.
    loop at itab.
    write:/ itab-matnr.
    endloop.
    it will not fetch data..
    for select-options
    tables:mara .
    data: begin of itab occurs 0,
    matnr like mara-matnr,
    end of itab .
    select-options:s_matnr for mara-matnr.
    select matnr  from mara into table itab
    where matnr  in s_matnr.
    loop at itab.
    write:/ itab-matnr.
    endloop.
    it will fetch data..
    regards,
    venkat

  • Multipl selection not working in Select Options, NO-EXTENSION not specified

    Hi,
    My code for the selection screen is as given below:
    data: v_bukrs type ekko-bukrs.
    select-options: s_one    for v_bukrs default '1234',
                    s_two    for ekko-lifnr,
                    s_three  for ekko-ekgrp.
    select-options: s_last   for ekko-llief no intervals.
    However, when I execute my program, all for select-options show Multiple selection icon. When I click on the icon for multiple selection, it is not processed.
    I tried to debug and find out but to no avail. Also I have searched extensively over SDN, but have not found any solution for my problem.
    Kindly help with relevant solution.
    Regards,
    Smruthi

    Hi Anurag and Vinod,
    Thanks for your replies.
    The FM - SELECT_OPTIONS_RESTRICT has not been used in my program.
    The issue is however, resolved. There was an error in the selection screen events, that was triggering the disabling.
    Regards,
    Smruthi

  • Using Select option in Native SQL

    Hi,
    Can any one tell me, how to use select option value in native SQL.
    ie.,
    I want to use select option in where condition. Need to select all the records from table(non-SAP) where date in given range.
    Please suggest.
    Thanks,
    Amal

    Hi
    No!
    U need to find a way to convert a range of select-option to a range for Native SQL, probably it should be better doesn't use a select-option for the date but two parameters: one for date from and one for date to.
    Max

  • FM to check values in select option

    Hi Experts ,
    I want to compare values entered in select option with certain constant values. Is there any FM which will do this?
    Thanks & Regards ,
    Jigar Thakkar

    I believe that there is no such FM. You need to build a range for your constant values and then compare your select option with the range build for constants.
    Eg.
    select-options: s_werks for t001w-werks.
    ranges r_werks for t001-werks.
    r_werks-sign = 'I'.
    r_werks-option = 'EQ'.
    r_werks-low = '2101'.   "Pass the constant value.
    append r_werks.         "Range built for one entry 2101. Similarly append further constant values.
    *Check if select option contains any of the constant values.
    if s_werks in r_werks.
    * Select-options contains value as defined in range
    else.
    * No matching value found.
    endif.

  • "WHERE field IN select-options" alternative

    I currently have a report that uses
    SELECT-OPTIONS so_num FOR qmih-qmnum.
    SELECT * FROM qmih INTO TABLE t_qmih
       WHERE qmnum IN so_num.
    Now, this works fine unless the user selects a large number of individual items in the select options, e.g. 7,000 individual qmnums, in which case I get an ABAP error.
    The dump contains the following helpful information:
    How to correct the error                                                                               
    The SAP Open SQL statement must be divided into several smaller units.
    If the problem occurred due to the use of an excessively large table  
    in an IN itab construct, you can use the addition FOR ALL ENTRIES     
    instead.                                                              
    When you use this addition, the statement is split into smaller units 
    according to the restrictions of the database system used.                                                                               
    You may able to find an interim solution to the problem               
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:                                    
    Could anyone give me an idea of how I could fix this?

    Hi Chandrasekhar,
    very interesting statement but not necessarily correct.
    Select-options declares a range-type internal table with header line. The number of table rows is limited by the system memory storage available.
    Oracle database has a fixed limit of 32KB for the length of the select statement. The open SQL database interface will resolve the range table resulting in the right number of comparison expressions.
    If the user puts too many values into select-options, he will probably copy single values which are represented by SIGN = 'I' and OPTION = 'EQ'.
    Try this (example):
    select-options:
      s_matnr for mara-matnr.
    data:
      lt_value like hashed table of s_matnr-low with unique key table_line. "avoid duplicates
    fiels-symbols:
      <any> type any,
      <value> type any.
    loop at s_matnr assigning <any>
      where sign = 'I' and option = 'EQ'.
      assign component 'LOW' of structure <any> to <field>.
      insert <field> into table t_value.
      delete s_matnr.
    endloop.
    select ...
      into table ...
      from ...
      for all entries in lt_value
      where matnr = lt_value-table_line.
    if lines( s_matnr ) > 0.
    select ...
      appending table ...
      from ...
      where matnr in s_matnr.
    endif.
    Now you've got them all.
    Regards,
    Clemens

  • OVS in Select-options

    Hi,
    I would like to use OVS in Select options.
    Can anyone tell me how to use OVS in Select-options.
    Here, How can I bing OVS as I am not using any context node.
    I am using following code to generate select-options:
    create a range table that consists of this new data element
      lt_range_table =  wd_this->m_handler->create_range_table( i_typename = 'INGRP' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
                 i_id        = 'INGRP'
                 it_result   = lt_range_table
                 i_read_only = read_only ).
    Regards,
    Vishal.
    Edited by: VISHAL GUPTA on May 7, 2008 10:12 AM

    Hi,
    Please go thr' the link for info on Input Help....
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/frameset.htm
    OVS Input Help
    The maximum scope of Dictionary Search a search help is to the structure to which it is related.
    There are situations where this technique is not sufficient.
    e.g.Sometimes different input fields are related to diff value nodes which in turn refer to different ABAP dictionary
    structures. In this case OVS (Object Value Selector).
    Provides advanced search functionality
    For more info on OVS ,.......
    [SAP Help|http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm]
    Apart, We can also use select-options functionality the same way we use in regular ABAP programs.
    For Select options.
    [Using Select Options in a WDA Application|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/21706b4b-0901-0010-7d93-c93b6394bc1d]
    [IF_WD_SELECT_OPTIONS|http://help.sap.com/saphelp_nw70/helpdata/EN/45/bf07361248003de10000000a11466f/content.htm]
    Achyut

Maybe you are looking for

  • Not able to export all table data to excel

    Hi All, I am using jdev 11.1.1.4.0 I want to export all my table data to a excel file. I used ADF inbuilt <af:exportCollectionActionListener/> to do the same. Also, I have pagination on my JSPX. When I click on export button to export the data, it ex

  • How to reset audio device count in Windows 7?

    Hello, I'm working w/ a fairly abused Windows 7 install that's seen a few chipsets, cpus, and gpus. I've also apparently installed the driver 2 times. Changing from mode to mode in the X-Fi (entertainment to game, etc) takes FOREVER. It gets worse w/

  • Use of EJB in a package application.

    Has anyone come across a packaged application/product (Like and ERP system, CRM product etc.) that was created using EJB as the "back-end" and then deployed as a "shrink-wrapped" application? I would like to hear some views on this from everyone.

  • Generate graphical report

    Hi, Using XML and XSL, can anyone suggest how to generate a graph (either a bar chart or pie chart). Thanks. Eswari

  • Tomahawk panelTabbedPane Styling Tab Labels

    Hello, Does anyone know how to change the text style of Tomahawk's paneltabbedPane? I tried specifying CSS style info for activeTabStyleClass, and strangely I could change the tab label background color but not the font/size/color of the text. Any id