Getting error in executing Select options

Hi Experts,
I am getting error in while executing select options in multiple selection range options in SCASEPS Transaction in PSRM module.
suppose I am giving 500 records in a select options ( select single values tab) while executing i am getting message like "; general Error" , i am not getting values.
can any body provide the solution.
Thanks !
Mahendar

Hi Mahendar!
I sorry, but the parsed SQL-statement must not exeed a limit of a defined size (is hardcoded restriction of DBMS).
A workaround could be to use the SELECT ... FOR ALL ENTRIES-Statement!
Kind regards
Peter

Similar Messages

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • Getting error while executing this select statement

    Hi All,
    I am new to this community.
    I am getting error whie compiling the below code. Its telling 'Text' is invalid identifier. Also i want to know how can we obtain 'parseable' version of the below query?
    my basic intention is to create a trigger header through a select statement and show it the complete text as a single column..
    select text from
    (select 'CREATE OR REPLACE TRIGGER '||SUBSTR(column_name,2,4)||'aud
    AFTER INSERT
    OR UPDATE
    OF '||column_name||',
    OR DELETE ON '||table_name||'
    FOR EACH ROW'
    FROM(SELECT lower(REPLACE(column_name,'O_','')) column_name , /*changing O to O_*/
    lower(replace(t.table_name,'_A_','_')) table_name,
    lower(t.table_name) table_name1,
    c.column_id
    FROM all_tab_columns c,
    (SELECT object_name table_name
    FROM all_objects
    WHERE object_name LIKE '%/_A/_%' ESCAPE '/') t
    WHERE c.table_name(+) = t.table_name
    AND SUBSTR(column_name(+),1,2) = 'O_'))

    thanks prathamesh. it solved the problem. i have one more question.
    as of now it creates single create trigger statement for each column on a table.
    example:
    CREATE OR REPLACE TRIGGER ust_aud
    AFTER INSERT
    OR UPDATE
    OF cust_id,
    OR DELETE ON characteristic_t
    FOR EACH ROW
    however, i want to create trigger for all columns in a single statement. can you please help me how to do it?
    basically want to 'CREATE TRIGGER' for all columns in a table. i am finding difficult how to change my query to suit this!!
    i am pasting my original query again for your reference. pls advise...
    example:
    CREATE OR REPLACE TRIGGER ust_aud
    AFTER INSERT
    OR UPDATE
    OF cust_id,
    fixed_item_val,
    copy_item_val,
    rgn_id,
    txn_id,
    OR DELETE ON characteristic_t
    FOR EACH ROW
    ORIGINAL QUERY
    select text from
    (select 'CREATE OR REPLACE TRIGGER '||SUBSTR(column_name,2,4)||'aud
    AFTER INSERT
    OR UPDATE
    OF '||column_name||',
    OR DELETE ON '||table_name||'
    FOR EACH ROW' text
    FROM(SELECT lower(REPLACE(column_name,'O_','')) column_name , /*changing O to O_*/
    lower(replace(t.table_name,'_A_','_')) table_name,
    lower(t.table_name) table_name1,
    c.column_id
    FROM all_tab_columns c,
    (SELECT object_name table_name
    FROM all_objects
    WHERE object_name LIKE '%/_A/_%' ESCAPE '/') t
    WHERE c.table_name(+) = t.table_name
    AND SUBSTR(column_name(+),1,2) = 'O_'))

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • Table or view does not exists error while executing select statement

    Hi,
    I am new to Oracle. I am getting a error while executing the select statement if i give table name without double quotes.
    Ex: Select * from Customer;
    But working fine when the table name is enclosed within a double quotes.
    Ex: Select * from "Customer";
    Is there any way to execute the select statement without the double quotes?
    Actually I am using NHibernate objects for data access.
    Thanks,
    Sai

    Actually I am using NHibernate objects for data access.And probably that's the problem:
    SQL> select * from mytab;
             A
             1
    SQL> select * from mYtAb;
             A
             1
    SQL> select * from MYTAB;
             A
             1
    SQL>  select * from MYTAb;
             A
             1Oracle statements are case insensitive and doesn't require double quotes unless the object names are reserved words.
    As wrote by others if table is created using double quotes it's name bacomes case-sensitive... and this could be the problem...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/02/05/gestione-degli-errori-in-sql-con-log-errors/]
    Edited by: Massimo Ruocchio on Feb 5, 2010 7:08 PM
    Added last comment..

  • Error occurs during select-options

    hi friends,
    i am developed a report for extracting data from vbap using select-options
    i am using feilds,
    vbeln erdat ernam vbtyp vkorg vtweg feilds
    and vbeln vkorg vbtyp erdat as selection screen feilds.
    i got selection screen screen with required feilds well .
    but problem is with method onactiondisplay
    the coding like this
    method ONACTIONDISPLAY .
    TYPES: lty_r_vbeln TYPE RANGE OF vbeln,
           lty_r_erdat TYPE RANGE OF erdat,
            lty_R_VKORG TYPE RANGE OF VKORG,
            lty_r_vbtyp type range of vbtyp.
    DATA: lo_customer TYPE REF TO if_wd_context_node.
    Variables used to retrieve the values of select-options fields
      DATA: lt_sel_item TYPE if_wd_select_options=>tt_selection_screen_item.
      FIELD-SYMBOLS:
        <fs_sel_item> LIKE LINE OF lt_sel_item,
        <fs_vbeln>   TYPE lty_r_vbeln,
        <fs_vkorg>   TYPE lty_r_vkorg,
        <fs_vbtyp>   TYPE lty_r_vbtyp,
        <fs_erdat>   TYPE lty_r_erdat.
    Get the selection-screen items
      wd_this->m_handler->get_selection_screen_items(
        IMPORTING et_selection_screen_items = lt_sel_item ).
    Retrieve the values from the select-options items
      LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.
        CASE <fs_sel_item>-m_id.
          WHEN `VBELN`.
            ASSIGN <fs_sel_item>-m_value->* TO <fs_vbeln>.
          WHEN `VKORG`.
            ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_vkorg>.
          WHEN `VBTYP`.
            ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_vbtyp>.
          WHEN `ERDAT`.
            ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_erdat>.
        ENDCASE.
      ENDLOOP.
    Retrieve the data from the database, for simplicity, the
    SELECT statement has been implemented here.
      SELECT * FROM vbak
        INTO TABLE wd_this->customer
        WHERE vbeln = <fs_vbeln>
          AND vkorg IN <fs_vkorg>
          AND vbtyp IN <fs_vbtyp>
          AND erdat IN <fs_erdat>.
    Bind the data to the context
      lo_customer = wd_context->get_child_node( name = `customer`).
      lo_customer->bind_table( wd_this->vbak ).
    ENDMETHOD.
    here customer is the node
    and i refer attributes
    m_handler = IF_WD_SELECT_OPTIONS
    M_SELECT_OPTIONS = IWCI_WDR_SELECT_OPTIONS
    and i defined vbeln as parameter only.
    and i got error as
    the feild customer is unknown but there is a feild with similar name wdctx_customer
    can any one explain clearly to extracts the data by using select options ..?

    Hello Karunakar,
    Since your problem was not getting solved, I took sometime to try this program on my own and figured out that getting value of parameter field is not same like selection field. we need to change only that part. anyhow since I tried this I;m sharing the complete code.
    code for creating the selection fields and parameter fields. verify whether you are doing the same in INIT method
      data lt_range type ref to data.
      data lr_vbeln type ref to vbeln.
      create data lr_vbeln.
      wd_this->m_handler->add_parameter_field(
          i_id    = 'VBELN'
          i_value = lr_vbeln ).
      lt_range = wd_this->m_handler->create_range_table( 'VKORG' ).
      wd_this->m_handler->add_selection_field(
          i_id                         = 'VKORG'
          it_result                    = lt_range ).
      lt_range = wd_this->m_handler->create_range_table( 'VBTYP' ).
      wd_this->m_handler->add_selection_field(
          i_id                         = 'VBTYP'
          it_result                    = lt_range ).
      lt_range = wd_this->m_handler->create_range_table( 'ERDAT' ).
      wd_this->m_handler->add_selection_field(
          i_id                         = 'ERDAT'
          it_result                    = lt_range ).
    and code the action method
      data:
            lt_sel_item type if_wd_select_options=>tt_selection_screen_item,
            lt_parameters type if_wd_select_options=>tt_selection_screen_item,
            lt_r_vkorg type range of vkorg,
            lt_r_vbtyp type range of vbtyp,
            lt_r_erdat type range of erdat,
            lv_condition type string,
            lt_customer type wd_this->elements_customer,
            lo_nd_customer type ref to if_wd_context_node.
      field-symbols:
            <fs_sel_item> like line of lt_sel_item,
            <fv_vbeln> type vbeln,
            <ft_r_vkorg> like lt_r_vkorg,
            <ft_r_vbtyp> like lt_r_vbtyp,
            <ft_r_erdat> like lt_r_erdat.
      wd_this->m_handler->get_parameter_fields( importing et_fields = lt_parameters ).
      wd_this->m_handler->get_selection_screen_items( importing et_selection_screen_items = lt_sel_item ).
      loop at lt_parameters assigning <fs_sel_item>.
        case <fs_sel_item>-m_id.
          when `VBELN`.
            assign <fs_sel_item>-m_value->* to <fv_vbeln>.
            if <fv_vbeln> is assigned and <fv_vbeln> is not initial.
              if lv_condition is not initial.
                concatenate lv_condition 'AND' into lv_condition separated by space.
              endif.
              concatenate lv_condition 'VBELN = <FV_VBELN>' into lv_condition separated by space.
            endif.
        endcase.
      endloop.
      loop at lt_sel_item assigning <fs_sel_item>.
        case <fs_sel_item>-m_id.
          when `VKORG`.
            assign <fs_sel_item>-mt_range_table->* to <ft_r_vkorg>.
            if <ft_r_vkorg> is assigned and <ft_r_vkorg> is not initial.
              if lv_condition is not initial.
                concatenate lv_condition 'AND' into lv_condition separated by space.
              endif.
              concatenate lv_condition 'VKORG IN <FT_R_VKORG>' into lv_condition separated by space.
            endif.
          when `VBTYP`.
            assign <fs_sel_item>-mt_range_table->* to <ft_r_vbtyp>.
            if <ft_r_vbtyp> is assigned and <ft_r_vbtyp> is not initial.
              if lv_condition is not initial.
                concatenate lv_condition 'AND' into lv_condition separated by space.
              endif.
              concatenate lv_condition 'VBTYP IN <FT_R_VBTYP>' into lv_condition separated by space.
            endif.
          when `ERDAT`.
            assign <fs_sel_item>-mt_range_table->* to <ft_r_erdat>.
            if <ft_r_erdat> is assigned and <ft_r_erdat> is not initial.
              if lv_condition is not initial.
                concatenate lv_condition 'AND' into lv_condition separated by space.
              endif.
              concatenate lv_condition 'ERDAT IN <FT_R_ERDAT>' into lv_condition separated by space.
            endif.
        endcase.
      endloop.
      select * from vbak into table  lt_customer where (lv_condition).
      lo_nd_customer = wd_context->get_child_node( name = wd_this->wdctx_customer ).
      lo_nd_customer->bind_table( lt_customer ).
    this is working as expected. hope this works for you as well
    BR, Saravanan

  • Error in using select option

    hi,
    i have used some fields in import in se37. I want that fields to be a select-options. so i gave associated type as selopt.
    but when i write a select query in source code it shows an error
    the IN operation with 'BSTYP' is followed neither by an internal table  nor by a value list.
    SELECT ebeln bukrs lifnr aedat FROM ekko INTO CORRESPONDING FIELDS OF TABLE i_ekko WHERE bstyp IN bstyp
                                                            AND
                                                                lifnr IN lifnr AND ekorg IN ekorg
                                                          AND bukrs IN bukrs AND aedat IN aedat.
    pls tell me a solution

    Hi,
    tables: ekpo.
    ranges: bstyp for ekpo-bstyp.
    bstyp-sign = 'I'.
    bstyp-option = 'EQ'
    bstyp-low = 'X'.
    append bstyp.'
    bstyp-low = 'Y'.
    append bstyp.'
    By Jan

  • Getting error while executing DTP

    Hello, 
    I am learning BI 7.0, am trying load master data from a flatfile to InfoObject. I am getting error when I execute DTP.
    I have 15 records in the file. Below are the message that I see in the DTP monitor
    -  Extraction DataSource  ( shows green light)
    - Filter out New Records with Same Key ( shows red light) Below are the messages for 15 records
    ' Record filtered in advance as error records with the same key exist'
    Please help me how to resolve this error.

    I checked my flatfile it looks as following structure
    LANG    Material Number      Mat Desc
    E          MAT001                   text1
    E          MAT002                   text2
    E          MAT003                   text3
    I checked the transformations, it shows 'Key' sign against  both lang and material number field. I checked the datasource field list and I 'Key' column is not checked. I don't know where key field settings need to be done. According to my understanding combination of Lang and Material Number forms the key then it cannot be duplicate as the material number is different though the lang field is same.
    Please advise. Thanks

  • Getting error while executing workflow: java.lang.OutOfMemoryError.

    Hi,
    I am getting the below error while executing the unassigment workflow on AD resource having 160 user objects.
    java.lang.OutOfMemoryError.
    Please provid your inputs on this.
    Your help wolud be appriciated.
    Thanks
    Renuka.

    Well, if you're getting an out of memory exception then your memory settings are too low. Odds are there's a period of activity where the memory usage spikes above what you've configured for the VM.

  • How to get the data into select options if we have 10 select options

    Hi Experts,
         I facing problem to get the data from diffrent tables and different select options.
    I have to pass different parameter ranges.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: rb1 RADIOBUTTON GROUP g1.     "Existing Key Accounts
    PARAMETERS: rb2 RADIOBUTTON GROUP g1.     "Potential Key Accounts
    SELECT-OPTIONS: s_part FOR but000-partner."Business Partner Number
    PARAMETERS: p_bpkind LIKE but000-bpkind.    "Business Partner Type
    PARAMETERS: p_but000 LIKE but000-partner.   "Key Account Manager
    SELECT-OPTIONS : s_vkont FOR fkkvkp-vkont. "Contract Account
    SELECT-OPTIONS : s_ktokl FOR fkkvkp-ktokl. "Debtor Type
    SELECT-OPTIONS : s_sparte FOR ever-sparte.  "Division
    SELECT-OPTIONS : s_vertra FOR ever-vertrag. "Contract
    SELECT-OPTIONS : s_budat FOR erdk-budat.   "Invoice Date
    SELECT-OPTIONS : s_netto FOR dberchv-nettobtr."Billing Amount
    SELECT-OPTIONS : s_abrm FOR abc.               "Consumption Value
    SELECTION-SCREEN: END OF BLOCK b1.
    need response asap.
    Thanking you.
    Regards Surya Ramireddy

    HI,
    You can use as many Select-options in the select statment,
    Select XXXX yyyy from TABLE where FIELD In S_FIELD1 and
    FIELD2 In S_FIELD2.
    Regards
    Sudheer

  • "BAPI_SALESORDER_CREATEFROMDAT2" - getting error while executing in se37.

    Hi All,
    I am executing BAPI -("BAPI_SALESORDER_CREATEFROMDAT2") in SE37 and getting error - "Unpermitted combination of business object BUS2032 and sales doc. category 0".
    I passed SD_Doc_Cat - 'C'.
    Please suggest, where should i correct.
    Regards,
    Chessleo.
    Edited by: chessleo on May 21, 2011 12:46 PM

    Hi,
    Passing values in BAPI :
    _Header data :_
    REFDOCTYPE                     ZGK      
    DOC_TYPE                       ZRPS     
    SALES_ORG                      PGBU
    DISTR_CHAN                     PG 
    DIVISION                       PG 
    REQ_DATE_H                     05/10/2010
    PURCH_NO_C                     123456                           "Fixed values
    PO_DAT_S                       05/21/2011                        "Fixed values
    SD_DOC_CAT                     C
    REF_DOC                        P057
    COMP_CDE_B                     W001
    REFDOC_CAT                     0.
    _Item data :_
    ITM_NUM        MATERIAL         TARGET_QTY             SHORT_TEXT     SAL
    100     R-I UNSP MAJ COMP      15      TESTING1       EA
    200     R-I UNSP MAJ COMP      16      TESTING1       EA
    Partners Data :
    PA     PARTN_NUMB
    SP     603424
    SH     200530
    Purchase order no and date  - Fixed values
    Please find the passing values.
    Regards
    chessleo.
    Edited by: chessleo on May 26, 2011 10:29 AM

  • Cant't get the data through SELECTION-OPTION

    hi all,
    i have created a REPORT in which i have two SELECTION-OPTION i-e one is ANLKL from TABLE ANLA and other is GJAHR from table ANLC.Problem which i m facing is that when i execute without giving my SELECTION-OPTION GJAHR.it gives me all data for example(2005,2007,2008),but when im defining it with by 2005 it gives blank fields even though there is data with  GJAHR by 2005.
    This is the coding of my report:
    include zalsd_alv_incl.
    TABLES:ANEP,ANLA,ANLC.
    SELECT-OPTIONS:
        S_ANLKL FOR ANLA-ANLKL DEFAULT '1100' to '2790',
        S_GJAHR FOR ANLC-GJAHR.
    DATA:BEGIN OF gi_anla OCCURS 0,
         bukrs  LIKE anla-bukrs,
         ANLN1  LIKE anla-ANLN1,
         ANLN2  LIKE anla-ANLN2,
         AKTIV  LIKE ANLA-AKTIV,"Asset capitalization date
         ANLKL  LIKE ANLA-ANLKL,"Asset Class
         END OF gi_anla,
         BEGIN OF GI_ANLC OCCURS 0,
          bukrs  LIKE anlc-bukrs,
          NAFAP  LIKE anlc-nafag,"Posted Depreciation
          kansw  LIKE anlc-kansw,"Asset Acquisation Value
          ANLN2  LIKE anlc-anln2,"Asset Subnumber
          ANLN1  LIKE anlc-ANLN1,"Main Asset Number
          GJAHR  LIKE ANLC-GJAHR,"Fiscal Year
          AFABE  LIKE ANLC-AFABE,"Real depreciation area
          ANSWL  LIKE ANLC-ANSWL,"Transactions for the year
         END OF GI_ANLC,
        BEGIN OF gi_main OCCURS 0,
         sno    type   i,       "S.No
         bukrs  LIKE anla-bukrs,"Company code
         ANLN1  LIKE anlc-ANLN1,"Main Asset Number
         anln2  LIKE anlc-anln2,"Asset Subnumber
         AKTIV  LIKE ANLA-AKTIV,"Asset capitalization date
         ANLKL  LIKE ANLA-ANLKL,"Asset Class
         NAFAG  LIKE anlc-nafag,"Ordinary Depreciation Posted
         kansw  LIKE anlc-kansw,"Asset Acquisation Value
         GJAHR  LIKE ANLC-GJAHR,"Fiscal Year
         PSTEND LIKE anlc-PSTEND,"Posting depreciation up to period
         AFABE  LIKE ANLC-AFABE,"Real depreciation area
         ANSWL  LIKE ANLC-ANSWL,"Transactions for the year
           END OF gi_main.
    START-OF-SELECTION.
         PERFORM get_data.
         PERFORM organize_data.
         PERFORM f_display_report.
      END-OF-SELECTION.
    form get_data.
      SELECT  anlc~bukrs anlc~anln1 ANLC~ANLN2 kansw nafaG PSTEND ANSWL ANLKL AKTIV
        INTO CORRESPONDING FIELDS OF TABLE gi_main
        FROM
        ANLC
        INNER JOIN ANLA ON
        anlc~bukrs = anla~bukrs AND
        anlc~anln1 = anla~anln1 AND
        ANLC~ANLN2 = ANLA~ANLN2
       WHERE  AFABE eq '1'
        AND   GJAHR IN S_GJAHR
        AND   ANLA~ANLKL in S_ANLKL.
        ENDFORM.
      FORM organize_data.
      data: lv_index type sy-tabix.
    LOOP at gi_anla.
      move sy-tabix to gi_main-sno.
        READ TABLE gi_anla WITH KEY bukrs = gi_anla-bukrs
                                    anln1 = gi_anla-anln1
                                    anln2 = gi_anla-anln2.
        MOVE-CORRESPONDING gi_anla to gi_main.
        READ TABLE gi_anlc WITH KEY bukrs = gi_anlc-bukrs
                                    anln1 = gi_anlc-anln1
                                    anln2 = gi_anlc-anln2.
        IF sy-subrc = 0.
          MOVE-CORRESPONDING gi_anlc to gi_main.
        ENDIF.
        APPEND gi_main.
        CLEAR gi_main.
    ENDLOOP.
        ENDFORM.
        form f_display_report.
      perform fill_fieldcat using 'SNO'       5    'S.No.' 'gi_main'.
      perform fill_fieldcat using 'ANLKL'     20   'Asset Class' 'gi_main'.
      perform fill_fieldcat using 'ANLN1'     20   'Asset Number' 'gi_main'.
      perform fill_fieldcat using 'ANLN2'     20   'Asset Subnumber' 'gi_main'.
      perform fill_fieldcat using 'AKTIV'     20   'Asset Capitalization Date' 'gi_main'.
      perform fill_fieldcat using 'KANSW'     20   'Asset Acquisation Value' 'gi_main'.
      perform fill_fieldcat using 'NAFAG'     20   'Posted Depreciation' 'gi_main'.
      perform fill_fieldcat using 'PSTEND'    20   'Posting depreciation up to period' 'gi_main'.
      perform fill_fieldcat using 'ANSWL'     20   'Transactions for the year' 'gi_main'.
      perform add_heading_alv using c_alv_head_header '' 'Ghulam Farooq Group'.
      perform display_alv using gi_main[].
    endform.
    Thankks,
    abapfk

    Hi,
    I created a program with the 2 select-option and a structure  for storage and a select statement.
    REPORT  Z_ANLA_ANLC_TEST.
    TABLES:ANEP,ANLA,ANLC.
    SELECT-OPTIONS:
        S_ANLKL FOR ANLA-ANLKL DEFAULT '1100' to '2790',
        S_GJAHR FOR ANLC-GJAHR.
    DATA :
           BEGIN OF gi_main OCCURS 0,
             sno    type   i,       "S.No
             bukrs  LIKE anla-bukrs,"Company code
             ANLN1  LIKE anlc-ANLN1,"Main Asset Number
             anln2  LIKE anlc-anln2,"Asset Subnumber
             AKTIV  LIKE ANLA-AKTIV,"Asset capitalization date
             ANLKL  LIKE ANLA-ANLKL,"Asset Class
             NAFAG  LIKE anlc-nafag,"Ordinary Depreciation Posted
             kansw  LIKE anlc-kansw,"Asset Acquisation Value
             GJAHR  LIKE ANLC-GJAHR,"Fiscal Year
             PSTEND LIKE anlc-PSTEND,"Posting depreciation up to period
             AFABE  LIKE ANLC-AFABE,"Real depreciation area
             ANSWL  LIKE ANLC-ANSWL,"Transactions for the year
           END OF gi_main.
    START-OF-SELECTION.
    SELECT  anlcbukrs anlcanln1 ANLC~ANLN2 kansw nafaG PSTEND ANSWL ANLKL AKTIV
        INTO CORRESPONDING FIELDS OF TABLE gi_main
        FROM
        ANLC
        INNER JOIN ANLA ON
        anlcbukrs = anlabukrs AND
        anlcanln1 = anlaanln1 AND
        ANLCANLN2 = ANLAANLN2
       WHERE  AFABE eq '1'
        AND   GJAHR IN S_GJAHR
        AND   ANLA~ANLKL in S_ANLKL.
    BREAK-POINT.
    Here is the result at the break point
    GI_MAIN[]                                             Standard Table[831x12(116)]
    S_ANLKL[]                                             Standard Table[0x4(38)]
    S_GJAHR[]                                             Standard Table[1x4(22)]
    S_GJAHR-LOW                                             2009
    S_GJAHR-HIGH                                             0000
    I entered value only in GJAHR.
    I see there is no problem with the JOIN and the selection, i assume there is a problem with the data.
    Try creating a simple query using sqvi and check it.
    Regards,
    George.

  • How to write Error message for select options?

    Hi
    i have this select option statement
    SELECT-OPTIONS: s_fevor FOR afko-fevor.
    how to write error message for this?
    Regards
    Smitha

    Error messages are displayed for Select-options mostly on two conditions:
    1) You needs to check wether a value is entered or not its done by:
    a)
    Select-options:SELECT-OPTIONS: s_fevor FOR afko-fevor Obligatory.
       In this case error message is automatically throwed by system.
    b) You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    IF S_FEVOR-LOW IS INITIAL.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    2) You need to Validate the entered value:
    You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    SELECT FEVOR
                 FROM AFKO
                 INTO AFKO-FEVOR
                 UP TO 1 ROWS
    ENDSELECT.        
    IF SY-SUBRC NE 0.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    Regards,
    Gurpreet

  • Desktop (Workstation) setup - Getting error prompt for "Select Policy #:" and can't proceed.

    Hi,
    I'm trying to configure a new MRL with the Workstation.  The ini and jdt files seem to be working ok as I have gendata kicking the transaction to wip.  There's a NA and POL file in my WIP directory:
    The problem is when I try to work workstation, I select the transaction but get a prompt to select a policy #.  The Policy # block is grayed out.  Ideas?  I'm thinking something in my config files need to be mapped to Policy Number by default?
    Thanks!

    It looks like you are using custom fields/columns in WIP.DFD. In such case you need to map KEY1, KEY2 and KEYID in the INI file to the columns in your WIP.DFD.
    I don't remember exactly what INI group these go into but here are a couple examples:
    < ArcRet >
        Key1                          = COMPANY
        Key2                          = LOB
        KeyId                         = DOCID
    < WIPData >
        Key1                          = Company
        Key2                          = Lob
        KEYID                         = DOCID
    My money on WIPDATA group. The Company, Lob and DOCID are columns in WIP.DFD in these examples. Specifically error means there is no KEYID mapping in your case.

  • Getting Error while Execute SSIS Package from Console Application

    Dear All,
    SSIS package working fine directly.
    I got following error while execute SSIS package from C# console application.
    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    OLE DB Destination failed validation and returned error code 0xC004800B.
    One or more component failed validation.
    There were errors during task validation.
    Code : 
       public static string RunDTSPackage()
                Package pkg;
                Application app;
                DTSExecResult pkgResults;
                Variables vars;
                app = new Application();
                pkg = app.LoadPackage(@"D:\WORK\Package.dtsx", null);
         Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = pkg.Execute();
    I have recreate the application with again new connection in SSIS.
    Still not working, Please provide solution if any one have.
    DB : SQL Server 2008 R2
    Thanks and regards,
    Hardik Ramwani

    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    Are you sure that you are running the same package via .NET which works fine from Visual Studio?
    By reading error message, I can say that you have copied OLEDB task from another package OR you have deleted one OLEDB connection manager. Now when package is run this task tries to use the connection manager and not found thus throws error message.
    Open all OLEDB destination tasks and you find connection manager missing. Connection Manager name should be provided there
    Cheers,
    Vaibhav Chaudhari
    MCSA - SQL Server 2012

Maybe you are looking for