Exporting Parameter of type 'INDEX TABLE'

Hi Experts,
there is a standard method CL_CRM_MKTPL_OL_TRADE->GET_TRADESPENDS in CRM which has an exporting parameter ET_TRADESPENDS of type INDEX TABLE. Could somebody give me a hint on how to call this method and work with the data that is returned? I am assuming that I will need field symbols for this, correct? Coding examples would be greatly appreciated.
Thanks,
Jens

Hi Jens,
INDEX TABLE is a generic type. The data object expected depends on configuration and/or context. As we don't have any CRM system I can check CL_CRM_MKTPL_OL_TRADE->GET_TRADESPENDS I can't give you the details.
I have some experience with comparable methods in SAP Transportation Managament which uses the BOPF framework. In program context, we know what type of table structure will be expected, so we defined a local table accordingly and passed it to the ET parameter.
If you don't have any idea on how to find out, just declare any internal table, i.e-lt_test  type table of string. Then call the method with parameter ET_TRADESPENDS = lt_test. This will dump for sure. Enter debugger and check what kind of data are returned. From the field names you may get a clue what structure it could be. Dump analysis may also provide some info.
Regards,
Clemens

Similar Messages

  • How could Ecatt support a FM which has export parameter data type as any

    Hi,
    I have created a FM which has export parameter data type as 'Type ref to data'.
    The actual paremeter value for this export parameter is a dynamically generated internal table, which does not have a abap dictionary data type.
    Could I use the 'FUN' ecatt command to test this FM?  How could I get this reference export parameter?
    Thanks a lot in advance!

    Hi,
    Wouldn't it be enough if you define parameter in test data container as reference to table type with structure of type c(1000)  (or more/less characters depending on how much data you need to pass)?
    I'm not 100% sure if filling this table with data will work (this is reference after all) but if this is an issue than create 2 parameters: 1 of table type and second of reference type. Then inside your script before FUN use ABAP...ENDABAP to assign your table parameter to reference parameter and use second one as input for FUN command.
    I think that either first or second solution should work.
    Best regards
    Marcin Cholewczuk

  • How to modify field symbol of type Index Table with other field symbol of type any.

    Hello Experts,
    How is it possible to update an filed symbol table of type Index table with other filed symbol table.
    e.g.
    Field symbol :  <lt_table1> type Index table.
    Field symbol : <lt_table2> type Index table.
    after some code...at run time these table filled like following.
    <lt_tabel1 > has  value fore column  like c11 , c12 , c13 
    <lt_table2> has value for column like C11     , C12 , C13 , C14 , C15 . some extra  values from <lt_table1>
    Now I want to be modify <table1> one entires like C12 with <table2 > col C12.
    how I can achieve this.
    Regards,
    Chetan.

    Hi,
    did you try  ASSIGN COMPONENT xx OF STRUCTURE <IT_TABEL1> TO <IT_TABLE2>.
    xx will contain the number of the column
    or maybe, if you have the description with a field catalog or other, that will be easier ..
    regards
    Fred

  • Dump while executing class method whose exporting parameter  of type table

    hi,
    i am getting dump after executing a method in which i want to export an internal table which will hold all the states name along with its code on the basis of the country name which is my importing parameter.
    for the above i am using importing parameter named as country of type too5u-land1 and the exporting parameter named as itab of type table and below is my code for the requirement.
    method PROCESS.
      select BLAND BEZEI from T005U
             INTO TABLE ITAB WHERE
             LAND1 = COUNTRY.
    endmethod.

    Hi,
      Please check the below code
    parameters country type land1.
    *Refer the class which we are using like below
    data: a type ref to ZCL_TX_SERVICE_01.
    data itab type ycountry.
    *ycountry is a table type defined in dictionary with fields BLAND and BEZEI
    data wa like line of itab.
    *If we are using instance method we need  to create the instance like below
    create object a.
    *In the method process define exporting parameter itab as type ycountry which is a table type already defined
    CALL METHOD a->PROCESS
      EXPORTING
        COUNTRY = country
      IMPORTING
        ITAB    = itab.
    loop at itab into wa.
    write:/ wa-bland.
    endloop.
    Regards
    Dande

  • Exporting parameter of type table in Method of a Class

    Hi Experts,
    I want to pass an internal table from my method in ABAP class to a workflow.
    For thi spurpose i have cretaed a parameter of type table in the method.
    My problem is that i am not able to bind this to a workflow/task  container.
    I can see all the other parameters of the method in thw workflow while binding except for the parameter of type table ( i.e internal table ).
    Any idea ?
    Thanks,
    Radhika.

    Assuming that you are trying to export the internal table from class method to task conatiner.
    I have cretaed a Structure 'zemails' in se11
    Already you have created a Structure in the SE11 , why don't you just create one Table Type of ZEMAILS in SE11. Once you hvae created in DDIC then in the class signature declare the ltmails of type the tabale type that you create. and then in the task conatiner also try to declare the container element with the same name and same table type.
    In the class method declare the lt_mails as Exporting. save and actiavte. And one more thing if that element is not present in the Task conatiner then as soon as you try to open in the change mode and click on the binding button of the task it will prompt you asking whether you want to trnasfer the mssing elements if you clcik Yes then the same element which you have declared in the class will created with the same type. but make sure in the task conatiner you delcare the lt_mails as IMport export element.

  • How to declare a workarea of type index table

    Hi Experts,
    I am getting error as CT_RESULT is a generic type.Use of this type is only possible for typing field symbols and formal parameters  when using the below code. Please help me and let me know how to declare it.
      TYPES:BEGIN OF  ty_guid,
            guid TYPE guid,
            END OF ty_guid.
      DATA:it_guid TYPE STANDARD TABLE OF ty_guid INITIAL SIZE 0,
           it_item TYPE STANDARD TABLE OF bbp_pds_sc_item_d INITIAL SIZE 0.
      DATA:wa_guid TYPE ty_guid,
                wa_item TYPE bbp_pds_sc_item_d.
      FIELD-SYMBOLS: <fs_result> like LINE OF ct_result.
      SELECT guid FROM crmd_orderadm_h INTO TABLE it_guid
                  WHERE object_id IN ct_result.
      IF sy-subrc = 0.
        LOOP AT it_guid INTO wa_guid.
          CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
           EXPORTING
              i_guid                           = wa_guid
    *   I_OBJECT_ID                      =
    *   I_ATTACH_WITH_DOC                = ' '
              i_with_itemdata                  = 'X'
    *   I_ITEM_SORTED_BY_HIERARCHY       =
    *   I_WITHOUT_HEADER_TOTALS          =
    *   I_READ_FROM_ARCHIVE              = ' '
    * IMPORTING
    *   E_HEADER                         =
    *   EV_IS_PD                         =
    *   ET_ATTACH                        =
           TABLES
              e_item                     = it_item
    *   E_ACCOUNT                        =
    *   E_PARTNER                        =
    *   E_CONFIRM                        =
    *   E_LONGTEXT                       =
    *   E_LIMIT                          =
    *   E_ORGDATA                        =
    *   E_TAX                            =
    *   E_PRIDOC                         =
    *   E_HCF                            =
    *   E_ICF                            =
    *   E_MESSAGES                       =
    *   E_ACTVAL                         =
    *   E_ACC_ACTVAL                     =
    *   E_HEADER_REL                     =
    *   E_ITMLIM_REL                     =
    *   E_STATUS                         =
        ENDLOOP.
      ENDIF.
      IF it_item[] IS NOT INITIAL.
        LOOP AT it_item INTO wa_item.
          LOOP AT ct_result ASSIGNING <fs_result>.
           <fs_result>-zzpurchase_cat = wa_item-be_tracking_no.
    *        MODIFY ct_result FROM wa_result.
            CLEAR wa_result.
          ENDLOOP.
          CLEAR wa_item.
        ENDLOOP.
      ENDIF.

    Hi,
    i'm not quite sure where ct_result is first introduced. There seems to be no declaration?
    Judging by the name-prefix, it would be a changing parameter of which form?
    Where is it populated, since you intend to loop it?
    And then, from which hat do you draw wa_result? it neither seems to be declared nor is there an assignment of values.
    On the other hand, you're trying to change table ct_result directly by altering a field of an assigned field-symbol. Why do you feel it necessary to follow up with a modify statement?
    After so many question-marks i have lost the point of your initial question.
    Maybe, you can start with a short description of your intention and a more accurate code-snippet.
    Best regards - Jörg

  • Delete by index on type any table

    What is the alternative for the forbidden index operations on a fieldsymbol of type any table?
    I have a table under a fieldsymbol.. can be any table and I want to delete line 2.. how do I do it?
    e.g.
    ps_tabname is a parameter pointing to an internal table (unknown at design time)
    field-symbols: <fs_tab> type any table.
    assign (ps_tabname) to <fs_tab>.
    delete <fs_tab> index 2. -> not possible because of any table.. alternative?

    >
    Koenraad Janssens wrote:
    > field symbol as standard table does the trick... stupid me
    Hello,
    This explains why TYPE STANDARD TABLE solves your problem
    TYPE ANY TABLE --> Can contain any internal table (INDEX tables which can be either STANDARD or SORTED TABLE & HASH table). As already suggested index cannot be used on hash tables so it was giving you an error.
    TYPE INDEX TABLE --> A generic table will be created which allows index access unlike ANY TABLE. Refer: [http://help.sap.com/abapdocu_70/en/ABENINDEX_TABLE_GLOSRY.htm|http://help.sap.com/abapdocu_70/en/ABENINDEX_TABLE_GLOSRY.htm]
    BR,
    Suhas

  • ... type standered table ...

    Hi All,
      Can anybody explain me abt , wat 'standered table of ' means in the below sentence..
    TYPES: B is defined here.
    DATA: A TYPE STANDERED TABLE OF B.
    Thankx

    Hi Sal,
    Check this.
    TABKIND - Internal Table Types
    Alternatives:
    1. STANDARD TABLE
    2. SORTED   TABLE
    3. HASHED   TABLE
    4. INDEX    TABLE
    5. ANY      TABLE
    Effect
    The table type - set in the DATA, TYPES, orCREATE DATA statement, specifies how the system accesses entries in the internal table in generic key operations.
    (READ TABLE itab, DELETE TABLE itab, INSERT TABLE itab, MODIFY TABLE itab, COLLECT itab). As a general rule, the runtime required for key operations depends on the total length of the key.
    The various table types have the following hierarchy:
                             ANY TABLE
                                 |
                       |                   |
                   INDEX TABLE      HASHED TABLE
                       |
             |                   |
        STANDARD TABLE      SORTED TABLE
    Alternative 1
    STANDARD TABLE
    Effect
    Defines the table as a standard table. Key access to a standard table uses a linear search. This means that the timne required for a search is in linear relation to the number of table entries.
    You should use index operations to access standard tables.
    For the sake of compatibility, you can use TABLE as a synonym of STANDARD TABLE.
    Alternative 2
    SORTED TABLE
    Effect
    Defines the table as one that is always saved correctly sorted. Key access to a sorted table uses a binary key. If the key is not unique, the system takes the entry with the lowest index. The runtime required for key access is logarithmically related to the number of table entries.
    You can also access sorted tables by index operations. When you insert using an index, the system checks to ensure that the sort sequence has been correctly maintained. For this reason, it takes longer than inserting entries in a standard table. As a rule, you should only access sorted tables using their key.
    Alternative 3
    HASHED TABLE
    Effect
    Defines the table as one that is managed with an internal hash procedure. You can imagine a hashed table as a set, whose elements you can address using their unique key. Unlike standard and sorted tables, you cannot access hash tables using an index. All entries in the table must have a unique key. Access time using the key is constant, regardless of the number of table entries.
    You can only access a hashed table using the generic key operations or other generic operations ( SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed.
    Alternative 4
    INDEX TABLE
    Effect
    Standard and sorted tables belong to the generic class index tables. An index table is one that you can access using an index. You can currently only use the table type INDEX TABLE to specify the type of generic parameters in a FORM or a FUNCTION. Hashed tables are not index tables, and cannot therefore be passed to parameters defined as INDEX TABLE.
    Alternative 5
    ANY TABLE
    Effect
    Like INDEX TABLE, you use ANY TABLE to specify the type of any generic table parameter. The set of permitted operations for a table with type ANY TABLE consists of the intersection of all permitted operations for STANDARD, SORTED and HASHED TABLEs, and so is identical to the set of operations permitted for hashed tables.
    Note in particular that you cannot use index access for tables with this type.
    Reward If Useful.
    Regards,
    Chitra

  • How to use internal table in Exporting Parameter of method.

    Hi Friends,
    I am new to abap oops and using the following code to read a select-option and pass the data in an internal table but on defining
    internal table of a standard  type it is giving me following error :
    ITAB is not an internal table - the OCCURS n specification is missing.
    code
    ====
      class lcl_get_details DEFINITION.
        PUBLIC SECTION.
          types : r_carrid type RANGE OF sflight-carrid.
          data  : itab type STANDARD TABLE OF sflight.
          METHODS : get_data IMPORTING s_carrid type R_carrid
                             EXPORTING itab type sflight.
      ENDCLASS.   
    class lcl_get_details IMPLEMENTATION.
      METHOD get_data.
        select *
        from sflight
        into table itab
        where carrid in s_carrid.
        if sy-subrc eq 0.
          sort itab by carrid.
        endif.
      endmethod.   
    ERROR : ITAB is not an internal table - the OCCURS n specification is missing.
    Kindly help.

    Hi,
    I think your problem is, because you use 2 variables named ITAB in method get_data.
    Instance-variable ITAB is defined as STANDARD TABLE OF sflight.
    Exporting-parameter ITAB is defined as sflight.
    It seems like in implementation of get_data exporting-parameter ITAB is used.
    Try this implementation:
    METHOD get_data.
      select * from sflight into table me->itab
       where carrid in s_carrid.
      if sy-subrc eq 0.
      sort me->itab by carrid.
      endif.
    ENDMETHOD.
    This should solve your compiler error.
    Nether the less, get_data will yield an empty structure as result.
    Regards, Hubert
    Edited by: Hubert Heitzer on Feb 24, 2010 10:22 AM

  • ABAP for Super Dumps: Import- & Export-Parameter for a Table in a FM

    Hello ABAP Profs,
    sorry I am BW.
    <b>Import- & Export-Parameter for a Table in and out of an Function Modul.</b>
    I want to import a table into a Function Module, change it and export it again.
    How do I have to define the Import- and Export- Parameters in the FM ?
    The table looks looks this:
    DATA: zvpshub_tab TYPE SORTED TABLE OF /bic/pzvpshub WITH UNIQUE KEY
    /bic/zvpshub objvers /bic/zvpsoursy INITIAL SIZE 0.
    Thanks a lot
    Martin Sautter

    Hi Clemens,
    <u>in SE11</u> I defined a datatype of Type Structure: ZVPSHUB_ROW.
    <u>in SE11</u> I defiend a datatype of Type Tabletype: ZVPSHUB_TAB,
    bases on Rowtype ZVPSHUB_ROW.
    <u>in SE 80</u> I creates an FM with a CHANGEING Parameter referencing ZVPSHUB_TAB:
    FUNCTION ZVP_SHUB_TAB_LOAD.
    ""Lokale Schnittstelle:
    *"  CHANGING
    *"     VALUE(SHUB_TAB) TYPE  ZVPSHUB_TAB
    <u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
    DATA:shub_tab          TYPE zvpshub_tab.
    <u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
    DATA:shub_tab          TYPE zvpshub_tab.
    <u>in RSA1</u> in BW in the Startroutine i called the FM
    CALL FUNCTION 'ZVP_SHUB_TAB_LOAD'
        CHANGING
          shub_tab = shub_tab.
    and it works ..
    Thank You
    Martin Sautter

  • Receiver Type Function Module in SWE2 use of export parameter.

    i am trying to understand the underlying concept in following things:(neednot to say i have searched alot and read sap documentation already).
    In event type linkage table say i have an entry for BOR -> AFVC_PM.
    As per sap Documentation says all these FM will trigger in following way.
    1 Check Function Module (to place any validations/checks)
    2 Receiver Type Function Module ()
    3 Receiver Function Module.
    Thats fine.
    This is what documentation says about Receiver Type FM(2nd FM) not Receiver FM(3rd FM).
    This FM has 1 export paramter
    Export parameters
    RECTYPE type SWETYPECOU-RECTYPE Receiver type( Result of the evaluation by the receiver type function module.)
    if i am understanding this right, in this FM receiver type will be decided .
    i have placed BREAK-POINT in this FM  and passing value WS90000024 (Workflow with simple mail step) in export parameter RECTYPE.
    after everything executed successfully why i can't see that mail in my inbox.
    Please correct me if i had misunderstood the concept .

    ok,indeed i was missing this thing.
    i got the mails in inbox.
    but why i can't see this value WS90000024 of this workflow ()which is going to be triggered ) in parameter RECTYPE.(its empty).
    it is empty after the receiver type function module execution is complete.
    below is workflow template,

  • How to register PL/SQL index table parameter in OracleCallableStatement ?

    Hello ,
    I am using Oracle release 8.1.6.0.0 . I need to call a PL/SQL procedure through JDBC, which specifies an INDEX TABLE OUT parameter(e.g. TYPE type_name IS TABLE OF VARCHAR2(10) INDEX BY BINARY_INTEGER) .
    I found that with Oracle8i release 8.1.7, the Oracle JDBC OCI driver supports PL/SQL index-by tables using the registerIndexTableOutParameter method . But I have Oracle 8.1.6 and our client has 8.1.2!
    Is there any way that I can read INDEX TABLE PARAMETER from PL/SQL procedure with Oracle release 8.1.2 and 8.1.6?
    Another question is - Is it possible to do this with Oracle thin driver also ?
    Regards,
    Mukul

    i got the same problem? did you find the way to do it yet?
    thks a lot
    regards.

  • Fetch data from table(ET_) which is exporting parameter of function module

    Hi,
    I m new to ABAP programming.
    I have to develop a smartform that has to be filled in with fields from few tables.
    These tables have the naming convention ET_<XXX> (i.e. exporting parameter of function module).
    I m not able to directly view its contents in se11 or use select query for it.
    I have a report program which i can execute to view these parameter names.
    Now, how do i fetch data from these parameters/tables and pass it from my driver program to smartform??
    Someone pls guide me...
    Thank You.

    Hi,
    I have done that using Field-Symbols.
    Thanks,
    Preetha

  • CONTEXT INDEX TABLE에 대한 PARAMETER 설정하는 방법

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-12
    CONTEXT INDEX TABLE에 대한 PARAMETER 설정하는 방법
    ==================================================
    Purpose
    Oracle7.3과 Oracle8.0의 context option에서 index table의
    storage parameter를 설정하는 방법을 알아보자.
    Explanation
    1. ConText Index Table과 Index
    Context option 에서는 text column에 대한 Context Index Table과
    그 테이블에 대한 Index를 생성한다. 이 table과 index는
    ctx_ddl.create_index procedure를 통해 자동으로 만들어지는 데,
    생성시에 이들 table과 index에 대한 tablespace, storage clause,
    pctfree등의 parameter에 대해 설정할 수가 없고 이런 정보를 가진
    preference 를 생성하여 policy를 생성할 때 지정해야 한다.
    Parameter를 지정할 수 있는 Context Index Table과 Index는 다음과 같다.
    Table Index
    DR_nnnnn_I1T DR_nnnnn_i1I
    DR_nnnnn_KTB DR_nnnnn_KIK
    DR_nnnnn_KID
    DR_nnnnn_LST DR_nnnnn_LIX
    DR_nnnnn_SQR DR_nnnnn_SRI
    위에서 nnnnn은 policy의 id이다. 이 번호는 다음과 같이 확인할 수 있다.
    select pol_id from ctx_user_policies where pol_name = 'DEMO_POLICY';
    처음 policy를 생성한 후 create index시 생성되는 Table과 Index는
    default로 해당 유저의 default tablespace에 생성된다. 그러나 default
    tablespace가 부족하거나 생성되는 table의 크기가 크면 initial, next등의
    parameter가 작아서 maxextent를 초과하는 문제가 발생하기도 한다.
    이런 경우 원하는 데이타를 올바로 찾지 못할 수도 있다. 이 때에는 storage
    parameter나 tablespace등을 따로 지정해 주어야 한다.
    2. Preference 생성
    Index table에 대한 parameter를 지정하려면 먼저 Generic Engine
    Tile의preference를 생성해야 한다. 이 generic engine tile에는
    다음과 같은 attribute를 지정할 수 있다.
    (1) Generic Engine Tile의 Attribute
    - index_memory
    - optimize_default
    - i1t_tablespace i1t_storage i1t_other_parms
    - i1I_tablespace i1I_storage i1I_other_parms
    - ktb_tablespace ktb_storage ktb_other_parms
    - kid_tablespace kid_storage kid_other_parms
    - kik_tablespace kik_storage kik_other_parms
    - lst_tablespace lst_storage lst_other_parms
    - lix_tablespace lix_storage lix_other_parms
    - sqr_tablespace sqr_storage sqr_other_parms
    - sri_tablespace sri_storage sri_other_parms
    xxx_tablespace는 각 table과 index의 tablespace를 지정하며 xxx_storage는
    storage절을, xxx_other_parms는 그 외의 다른 parameter를 지정할 수 있다.
    (2) 명령 형식
    CTX_DDL.SET_ATTRIBUTE
    ( name in varchar2, - 원하는 attribute이름
    value in varchar2 ); - 앞의 attribute에 해당하는 값
    CTX_DDL.CREATE_PREFERENCE
    ( preference_name in varchar2, - 임의의 preference이름
    description in varchar2, - comment
    object_name in varchar2 ); - 이 경우 GENERIC ENGINE
    Example
    [ 예제 1 ] 새로운 policy를 생성하는경우 parameter지정하기.
    begin
    ctx_ddl.set_attribute('I1T_TABLESPACE','USERS');
    ctx_ddl.set_attribute('I1T_STORAGE','INITIAL 10M NEXT 10M');
    ctx_ddl.set_attribute('I1T_OTHER_PARMS','PCTFREE 10');
    ctx_ddl.set_attribute('I1I_TABLESPACE','USERS');
    ctx_ddl.set_attribute('I1I_STORAGE','INITIAL 10M NEXT 10M');
    ctx_ddl.set_attribute('I1I_OTHER_PARMS','PCTFREE 10');
    ctx_ddl.create_preference('ART_ENGIN','Test Case','GENERIC ENGINE');
    ctx_ddl.create_policy('DEMO_POLICY',
    'ARTICLES.TEXT',
    lexer_pref=>'CTXSYS.KOREAN',
    engine_pref=>'ART_ENGIN');
    ctx_ddl.create_index('DEMO_POLICY');
    end;
    위의 예에서는 I1T table과 i1I index에 대한 parameter를 설정하였다.
    preference를 생성한 후 create_policy에서 engine_pref 에 생성한
    preference이름을 준다. 위의 예와 같이 실행한 후에 다음과 같이
    확인해 볼 수 있다.
    SQL> select table_name, tablespace_name from user_tables
    2 where table_name = 'DR_01104_I1T1';
    TABLE_NAME TABLESPACE_NAME
    DR_01104_I1T1 USERS
    ( dr_01104_i1t 는 synonym이며 dr_01104_i1t1이 base table이다. )
    SQL> select index_name, tablespace_name from user_indexes
    2 where table_name = 'DR_01104_I1T1';
    INDEX_NAME TABLESPACE_NAME
    DR_01104_I1I1 USERS
    [ 예제 2 ] 기존의 policy에 새로운 preference 적용하기
    이 방법은 기존에 존재하는 policy를 update하여 preference 를 적용하는
    방법이다. 이 경우 generic engine 은 update_policy를 하기 전에 index를
    drop해야 한다.
    begin
    ctx_ddl.set_attribute('I1T_TABLESPACE','USERS');
    ctx_ddl.set_attribute('I1T_STORAGE','INITIAL 10M NEXT 10M');
    ctx_ddl.set_attribute('I1T_OTHER_PARMS','PCTFREE 10');
    ctx_ddl.set_attribute('I1I_TABLESPACE','USERS');
    ctx_ddl.set_attribute('I1I_STORAGE','INITIAL 10M NEXT 10M');
    ctx_ddl.set_attribute('I1I_OTHER_PARMS','PCTFREE 10');
    ctx_ddl.create_preference('ART_ENGIN','Test Case','GENERIC ENGINE');
    ctx_ddl.drop_index('DEMO_POLICY');
    ctx_ddl.update_policy('DEMO_POLICY',
    engine_pref=>'ART_ENGIN');
    ctx_ddl.create_index('DEMO_POLICY');
    end;
    Reference Document
    Context User's Guide and Context Reference

  • How to give a value range in export parameter (global class)

    hi all,
    I have created a class-method called get_po_date. In this i had export parameter as qmfe-qmnum. If i give qmfe-qmnum in import parameter in class, i am able to give only one value at one time, but i need a range of values at a time. Instead of qmfe-qmnum in associated type, i have given 'LXHME_RANGE_C12' ( a range table for char 12 ). the thing is i wanted to select this range in select-options. but still iam getting <b>not type compatible syntax error</b>. can any body solve my problem,
    feel free to ask if any confusion with my question.
    Best Regards,
    abhilash.

    Hello Abhilash
    Instead of using a specific range (where field LOW and HIGH are of type QMNUM) you can use a <b>generic </b>select option (of type <b>RSDSSELOPT</b>). Have a look at the following sample report <b>ZUS_SDN_SELOPTIONS</b>.
    *& Report  ZUS_SDN_SELOPTIONS
    REPORT  zus_sdn_seloptions.
    TABLES: qmfe.
    DATA:
      gt_data          TYPE STANDARD TABLE OF qmfe,
      gt_data_x        TYPE STANDARD TABLE OF qmfe,
      gt_selopt        TYPE rseloption,  " generic table type for selopts
      gs_selopt        TYPE rsdsselopt.
    START-OF-SELECTION.
      SELECT        * FROM  qmfe INTO TABLE gt_data
             WHERE ( qmnum BETWEEN '000000000001' AND '000000000500' ).
      gs_selopt-sign   = 'I'.
      gs_selopt-option = 'BT'.
      gs_selopt-low    = '000000000001'.
      gs_selopt-high   = '000000000500'.
      APPEND gs_selopt TO gt_selopt.
      SELECT * FROM qmfe INTO TABLE gt_data_x
        WHERE ( qmnum IN gt_selopt ).
      IF ( gt_data = gt_data_x ).
        WRITE: 'Selected data are equal.'.
      ELSE.
        WRITE: 'Selected data are NOT equal.'.
      ENDIF.
    END-OF-SELECTION.
    Since RSDSSELOPT and RSELOPTION are global DDIC objects they can be used in <i>public </i>methods.
    Regards
      Uwe

Maybe you are looking for

  • How to go back more than one page at a time?

    I'm pretty sure there used to be a drop-down arrow by the back/fwd buttons, so you could go back more than one page by selecting it. Yeah? Where did it go?

  • Addition of new fields in MCI8 report

    Hi Experts, I am new to the PMIS area. I require to add two new fields in the MCI8 report.  I found that the data is coming from table S115.   Will append of fields in this table fulfill my needs.  Or else what shall I do for this.  Please help.

  • Process J000 died, see its trace file

    os:centos5.4 64 db:oracle 11.2.0.3 alert日志中经常出现以下告警(有时候1分钟报好几次): Process m000 died, see its trace file Process J000 died, see its trace file : kkjcre1p: unable to spawn jobq slave process Errors in file .... SQL> show parameter job NAME TYPE VALUE jo

  • IPad listing of TV shows alphabetically

    My iPad and iPhone used to synch tv shows by episode order as displayed in iTunes. However, since the update to IOS 6 both phone and iPad now display all the tv shows I have uploaded myself by season and then alphabetically instead of by season and t

  • Problem with ID after updating

    I recently updated my ipad to iOS 7, cloud reverted back to my old Apple ID while iTunes and Apple are showing my current Apple ID.  How can I fix this?