Type table

Dear All,
ET_SUBLIST has type table and it hasn't a header line.
How can create the workarea now.
Because I cant say:
data workrea type table or
data workrea like line of ET_SUBLIST ...
all that is not working. Is there a workaround ?
EXPORTING
   REFERENCE(ET_SUBLIST) TYPE TABLE
LOOP AT et_sublist INTO workarea.
ENDLOOP.
Regards
ertas

> IF <fs_sublist> IS ASSIGNED. 
" This statement NOT required, as the loop can only be here if <fs_sublist> is assigned.
Sometimes it's necessary to do a loop at into.  Or you might want to do a read.  In this case, use:
DATA: lp_data TYPE REF TO DATA.
CREATE DATA LIKE LINE OF <the_table>.
ASSIGN lp_data->* TO <the_work_area>.
READ TABLE <the_table> INTO <the_work_area> WITH KEY ('FIELDNAME') = some_value.
or
DATA: lp_data TYPE REF TO DATA.
CREATE DATA LIKE LINE OF <the_table>.
ASSIGN lp_data->* TO <the_work_area>.
ASSIGN FIELD 'FIELDNAME' OF STRUCTURE <the_work_area> TO <some_field>.
LOOP AT <the_table> INTO <the_work_area>.
*  Do stuff with <some_field>.
which is more efficient than:
LOOP AT <the_table> INTO <the_work_area>.
  ASSIGN FIELD 'FIELDNAME' OF STRUCTURE <the_work_area> TO <some_field>.
*  Do stuff with <some_field>.
matt
Edited by: Matt on Jun 22, 2009 7:52 AM

Similar Messages

  • To Use  Cursor or  TYPE table Index by PLS_integer

    Hi All,
    Let's see if I have table with no. of records 19,26,20,000.
    If I want to loop through all the records which will be a optimized way To Use Cursor or TYPE table Index by PLS_integer.
    Please guide.
    Thanks.

    What is it you want to do to/with the rows you're looping through?
    Ideally you want to avoid looping, as that's row by row (aka slow by slow) processing and it's expensive time-wise.
    If you're doing DML (insert/update/delete) then you're best off doing it in one sql statement, rather than looping.

  • Unable to read attribute of type TABLE

    Hello IDM Gurus,
    I was having some trouble reading data in the source tab from a temporary table created in a FROM AD Pass; specifically I am unable to read from an attrribute of type TABLE, which is being used for the memberOf attribute when reading members of a group from AD. I don't get any errors in the FROM Pass, nor do I get any errors when trying to read all other data from the temporary table; I'm able to read all data except the memberOf attribute of type TABLE; I've tried different variations of SELECT statements as well as different possible values in the destination tab but it still hasn't resulted in valid memberOf values from the temporary table.
    I thought this would be a lot simpler than it's turned out to be; I would appreciate any help I could get on this issue.
    Thanks a lot in advance!
    Best regards,
    Sandeep

    Hi Achim,
    Thank you for your quick response! I was actually able to spend a bit of time on the table itself and after experimenting a bit I managed to work out a query to correlate the memberOf values with the appropriate keys from the two separate tables in the same pass.
    Thanks again for your suggestions!
    Best regards,
    Sandeep

  • A type table as a row in a table

    The question is simple. Can I use a type table into a Z table ?? Any way to do this ??
    Thanks in advance.

    hi maraia,
    Structures
    A structure is a sequence of any other data types from the ABAP Dictionary, that is, data elements, structures, table types, or database tables. When you create a structure in the ABAP Dictionary, each component must have a name and a data type.
    In an ABAP program, you can use the TYPEaddition to refer directly to a structure.
    If you define a local data type in a program by referring to a structure as follows:
    TYPES dtype TYPE structure.
    the construction blueprint of the structure is used to create a local structure dtype in the program. The predefined Dictionary data types of the domains used by the data elements in the structure are converted into the corresponding ABAP types. The semantic attributes of the data elements are used for the corresponding components of the structure in the program. The components of the local structure dtype have the same names as those of the structure in the ABAP Dictionary.
    To ensure compatibility with previous releases, it is still possible to use the LIKE addition in an ABAP program to refer to a structure in the ABAP Dictionary (except in classes).
    Suppose the structure STRUCT is defined as follows in the ABAP Dictionary:
    Field name
    Type name
    Short Description
    COL1
    CHAR01
    Character field with length 1
    COL2
    CHAR08
    Character field with length 8
    COL3
    CHAR10
    Character field with length 10
    The types CHAR01 to CHAR10 are data elements with corresponding domains. We can refer to this structure in ABAP:
    TYPES struct_type TYPE struct.
    DATA wa TYPE struct_type.
    wa-col1 = '1'.
    wa-col2 = '12345678'.
    wa-col3 = '1234567890'.
    This program creates a local structure in the program - struct_type  - and a corresponding data object wa. We can address the components using the component names from the original structure.
    Table types
    Table types are construction blueprints for internal tables that are stored in the ABAP Dictionary. When you create a table type in the ABAP Dictionary, you specify the line type, access type, and key. The line type can be any data type from the ABAP Dictionary, that is, a data element, a structure, a table type, or the type of a database table. You can also enter a predefined Dictionary type directly as the line type, in the same way that you can with a domain.
    In an ABAP program, you can use the TYPEaddition to refer directly to a table type.
    If you define a local data type in a program by referring to a table type as follows:
    TYPES dtype TYPE table.
    the construction blueprint of the table type is used to create a local internal table dtype in the program. The predefined Dictionary data types of the domains used by the data elements in the structure are converted into the corresponding ABAP types. The semantic attributes of the data elements are used for the corresponding components of the internal table in the program.
    Suppose the table type STRUCT_TABLE is defined in the Dictionary with the line type STRUCT from the previous example. We can refer to this in ABAP:
    TYPES table_type TYPE struct_table.
    DATA: table_wa TYPE table_type,
          line_wa  LIKE LINE OF table_wa.
    LOOP AT table_wa INTO line_wa.
      WRITE: line_wa-col1, line_wa-col1, line_wa-col1.
    ENDLOOP.
    This program defines an internal table type table_type . From it, we define data objects table_wa and, consequently, line_wa. line_wa corresponds to the line type of the table type in the Dictionary, and is therefore compatible with the structure STRUCT
    Type Groups
    Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPEaddition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.
    The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group pool is always:
    TYPE-POOL pool.
    After that, you define data types using the statement TYPES. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore: pool_
    In an ABAP program, you must declare a type group as follows before you can use it:
    TYPE-POOLS pool.
    if you want complete info just click
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm
    thanks
    karthik
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 15, 2008 3:09 PM

  • How to use PL/SQL type table in SQL FROM clause

    Hi All,
    I have to use a PL/SQL type table in our SQL statement as a table?
    I am using the syntax (below) but it gives PL/SQL: ORA-00902: invalid datatype
    SELECT ... FROM TABLE(CAST( var_pl/sql_table AS pl/sql_table)) tab WHERE tab.a=1;
    Plz reply with an example.
    Thanks.. Ratan

    You don't need a cast!!!
         select *
         from table ( <nested_table> )
         where <condition>Anyway, are you sure that tab.a is a number?
    Here follows an example with an useful function
    CREATE OR REPLACE
    type string_table  as table of varchar2(4000)
    CREATE OR REPLACE
    FUNCTION split_string (
         string IN varchar2,
         delimiter IN varchar2
    ) RETURN  string_table IS
         tab string_table;
         pre integer;
         post integer;
         step integer;
         i integer;
    BEGIN
         pre := 1;
         step := length(delimiter);
         i := 0;
         tab := string_table();
         loop
              tab.extend;
              i := i + 1;
              post := instr(string,delimiter,pre);
              if ( post = 0 ) then
                   tab(i) := substr(string,pre);
                   return tab;
              end if;
              tab(i) := substr(string,pre,post-pre);
              pre := post + step;
         end loop;
    END;
    select * from table (split_string('abc,dfg,hij',','))
    Query finished, retrieving results...
                                      COLUMN_VALUE                                  
    abc                                                                             
    dfg                                                                             
    hij                                                      

  • Problem with SUT into bin type table

    When in SPRO in strategy -storage unit type search strategy - SUT in bin type table,we have only 30 entries possible.
    BUt we need more somewhere like 150 records because of a bulk storage type with a lot of storage bins with different
    size and therefore capacity. To define true exact capacity we need different bin types right?
    I am not sure how to do this,maybe there is a option in settings to change 30 to 150 or 200 to make the table bigger?
    Or any other solution will be great because we do need this because in the way it works now,we have a lot of problems
    in putaway,we have huge realocations since we have not exact capacities but we had to group bins with similar capacity
    but that means that three bins with 48, 52 and 56 capactiy all have 52.

    If I remember correctly this has been asked numerous times before, try searching the discussions.
    Anyway, you have a couple of possible solutions for this.
    It is understandable that you don't want hundreds of reallocation on daily basis, and you don't want to lose the capacity otherwise, but it feels that your bins should and could have been planned a bit better, there is always a way to unify capacities, split bins, use the storage space in a more meaningful manner. This is the point where your optimization was supposed to be done, not in SAP. But anyway, you are stuck with what you have and here are the solutions that cross my mind.
    1. Standard SAP:
    Split the bins to multiple storage types, this way you will have 30 bin types, but they will have different capacity for different storage types (in OMM4). Easy and standard, but has the downside that you will have to manipulate with 5 storage types instead of 1. A bit of more customizing but will solve the problem. Also, storage type search will need to be changed to include all the STs... Might be harder to track the strategies but this is the only standard way that crosses my mind.
    2. ABAP:
    This is the solution I have used and works fine, though you will need an ABAP-er to complete this.
    Create a z-table/view having the same structure as the standard one, just add 120 more fields.
    Well, not only that, you will have to change the coding to use this custom table instead of standard one, and although this isn't the brightest solution since you won't be able to change this table in customizing in the predefined path in SPRO/OLML, but will need o do it in SM30.
    Luckily both of the options should work fine if done correctly, I have used both of these, and both have up and down sides... But I would go with standard SAP if it doesn't complicate your life too much because of several more STs. If it does, go with ABAP.

  • 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

  • ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists

    Hi,
    I have two schema on the two servers for replication replication is working fine.
    i export one schema to another so all the tables exists at both the sites.
    I am adding objects in the replication group using oracle enterprise manager
    console.
    some of the tables added fine.
    but some gives me error like.
    ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
    before adding this objects in the group i do like
    SQL> SELECT oname FROM DBA_REPOBJECT ;
    ONAME
    AC_ACCOUNT
    AC_ACCOUNT$RP
    AC_ACCOUNT$RP
    AC_ACCOUNT_MASTER
    AC_ACCOUNT_MASTER$RP
    AC_ACCOUNT_MASTER$RP
    6 rows selected.
    at both the sites.
    when i add product_master in the group then entries becomes like
    SQL> SELECT oname FROM DBA_REPOBJECT ;
    ONAME
    AC_ACCOUNT
    AC_ACCOUNT$RP
    AC_ACCOUNT$RP
    AC_ACCOUNT_MASTER
    AC_ACCOUNT_MASTER$RP
    AC_ACCOUNT_MASTER$RP
    PRODUCT_MASTER
    7 rows selected.
    but with the error in
    and when generate replication support.
    SQL> select  status,request,message,oname from dba_repcatlog;
    STATUS         REQUEST
    MESSAGE
    ONAME
    ERROR          CREATE_MASTER_REPOBJECT
    ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
    PRODUCT_MASTER
    ERROR          CREATE_MASTER_REPOBJECT
    ORA-23309: object UMESH.PRODUCT_MASTER of type TABLE exists
    PRODUCT_MASTER
    STATUS         REQUEST
    MESSAGE
    ONAME
    ERROR          GENERATE_INTERNAL_PKG_SUPPORT
    ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
    PRODUCT_MASTER
    ERROR          GENERATE_INTERNAL_PKG_SUPPORT
    ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
    STATUS         REQUEST
    MESSAGE
    ONAME
    PRODUCT_MASTER
    ERROR          GENERATE_INTERNAL_PKG_SUPPORT
    ORA-23308: object UMESH.PRODUCT_MASTER does not exist or is invalid
    PRODUCT_MASTER
    but in the same situation other objects are working fine.i am fed up with this error.
    any help will be appreciated.
    Thanks
    Umesh
    null

    thanks hament
    I have two schema my master definition site have all the objects but second master
    site. have no object.
    i use these command like
    this is at master definition site.
    SQL> BEGIN
      2     DBMS_REPCAT.CREATE_MASTER_REPGROUP(
      3       gname => '"AA"',
      4       qualifier => '',
      5       group_comment => '');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SQL> ed
    Wrote file afiedt.buf
      1  BEGIN
      2     DBMS_REPCAT.CREATE_MASTER_REPOBJECT(
      3       gname => '"AA"',
      4       type => 'TABLE',
      5       oname => '"PRODUCT_MASTER"',
      6       sname => '"UMESH"',
      7       copy_rows => TRUE,
      8       use_existing_object => FALSE);
      9* END;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> commit;
    Commit complete.
    SQL> BEGIN
      2     DBMS_REPCAT.ADD_MASTER_DATABASE (
      3        gname => 'AA',
      4        master => 'neo.world',
      5        use_existing_objects => FALSE,
      6        copy_rows => TRUE,
      7        propagation_mode => 'ASYNCHRONOUS');
      8  END;
      9  /
    PL/SQL procedure successfully completed.
    SQL> COMMIT;
    SQL> select source, status, master,sname, request, oname, type, message from dba_repcatlog;
    SOURCE
    STATUS
    MASTER
    SNAME                          REQUEST
    ONAME                          TYPE
    MESSAGE
    LOCAL.WORLD
    SOURCE
    STATUS
    MASTER
    SNAME                          REQUEST
    ONAME                          TYPE
    MESSAGE
    ERROR
    SOURCE
    STATUS
    MASTER
    SNAME                          REQUEST
    ONAME                          TYPE
    MESSAGE
    NEO.WORLD
    SOURCE
    STATUS
    MASTER
    SNAME                          REQUEST
    ONAME                          TYPE
    MESSAGE
    UMESH                          CREATE_MASTER_REPOBJECT
    SOURCE
    STATUS
    MASTER
    SNAME                          REQUEST
    ONAME                          TYPE
    MESSAGE
    PRODUCT_MASTER                 TABLE
    SOURCE
    STATUS
    MASTER
    SNAME                          REQUEST
    ONAME                          TYPE
    MESSAGE
    ORA-00942: table or view does not exist
    SOURCE
    STATUS
    MASTER
    SNAME                          REQUEST
    ONAME                          TYPE
    MESSAGE
    but according to me this table must be created at the second master site.
    which is main issue i am facing.
    and if i made product_master at second master site manually
    then execute this at master defination site.
    SQL> BEGIN
      2     DBMS_REPCAT.CREATE_MASTER_REPOBJECT(
      3       gname => '"AA"',
      4       type => 'TABLE',
      5       oname => '"PRODUCT_MASTER"',
      6       sname => '"UMESH"',
      7       copy_rows => TRUE,
      8       use_existing_object => TRUE);
      9  END;
    10  /
    BEGIN
    ERROR at line 1:
    ORA-23309: object "UMESH"."PRODUCT_MASTER" of type TABLE exists
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2552
    ORA-06512: at "SYS.DBMS_REPCAT", line 562
    ORA-06512: at line 2
    SQL> /
    PL/SQL procedure successfully completed.This is very strange if the table exists then error and if
    it doesn't then error.
    Thanks
    Message was edited by:
    Umesh Sharma

  • How to create a type table in designer 9i

    Hi
    In our company we use designer 9i. I want to create a type table using designer. Is it possible? I have a requirement where i need to create a type table and use in creating a view through designer.
    Create or replace type varchar2_ntt as table of varchar2(4000);
    [\pre]
    Please suggest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi
    Here I am giving the step by step process.
    1. select the container in which container you are going to create the type.
    2.Go to tools then design editor and expand the container. There you will find oracle collection types. there we have to create a new one by clicking the + button on the left side.
    3. Give the name of the new collection type.
    4. And in the collection of tab, let it be scalar, give the scalar data type,and the size and click finish.
    5. then right click on that object and give generate. there you select theDDL files only and the give the path where the scripts have to go.
    This the process.
    Thanks,
    raju

  • How join a type table data with a real table.

    Hello,
    I want make a join with a type table data and real table.
    But i don't know how make this.
    Can you help me?????
    I have this pl/sql:
    SET LINESIZE 5000;
    DECLARE
    valor NUMBER;
    TYPE reg_tablita IS RECORD
    (cuenta B_TB_CTAFACTU.B_CO_CTAFACTU%TYPE,sistema B_TB_CTAFACTU.B_CO_SISTEMA%TYPE);
    TYPE Tabla IS TABLE OF reg_tablita INDEX BY BINARY_INTEGER;
    I                         BINARY_INTEGER;
    Array Tabla;
    BEGIN
    Array(1).cuenta:='000001';
    Array(1).sistema:='AA';
    Array(2).cuenta:='000002';
    Array(2).sistema:='BB';
    Array(3).cuenta:='000003';
    Array(3).sistema:='CC';
    Array(4).cuenta:='000004';
    Array(4).sistema:='DD';
    Array(5).cuenta:='000005';
    Array(5).sistema:='EE';
    SELECT count(*) into valor FROM
    TABLA A, Array WHERE
    B_CO_CTAFACTU=Array.cuenta and B_CO_SISTEMA=Array.sistema
    quit;
    Thanks very much!!!!

    You need to have the types defined as SQL types (created in database) in order to be able to use them for joining. PL/SQL object types can not be joined.

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

  • CREATE DATA TYPE TABLE

    Hi Colleagues,
    regarding my IDOC viewer project I'm facing a question regarding the SAP release. I started with some success on Release 471, now I tried to continue on 46C.
    CREATE DATA gr_ref
      TYPE lvc_t_fcat."STANDARD TABLE OF LVC_S_FCAT.
    works in both releases, while
    CREATE DATA ls_seg_dat-ref
      TYPE STANDARD TABLE OF (<edid4>-segnam).
    compiles on 471, but generates syntax error in 46C.
    The error message "Unable to interpret "TABLE". Possible causes of error: Incorrect spelling or comma error."
    does not help too much.
    Does this mean that there is no way to create tables dynamically on release 46C?
    Hope for a solution!
    regards,
    C.

    Hello,
    the only possibility I found was to use available table types in the dictionary. This works on a 4.6C system:
      DATA: lf_type(20)          TYPE c VALUE 'MARA',
            lf_table_type(20)    TYPE c VALUE 'MARA_TAB'.
      DATA: wa_data              TYPE REF TO data,
            lt_data              TYPE REF TO data.
      FIELD-SYMBOLS: <structure> TYPE ANY,
                     <field>     TYPE ANY,
                     <table>     TYPE TABLE.
      CREATE DATA wa_data TYPE (lf_type).
      ASSIGN wa_data->* TO <structure>.
      ASSIGN COMPONENT 'MATNR' OF STRUCTURE <structure> TO <field>.
      <field> = 'My Material'.
      CREATE DATA lt_data TYPE (lf_table_type).
      ASSIGN lt_data->* TO <table>.
      APPEND <structure> TO <table>.
    Little curious: An internal table type defined with "TYPES ty_mara_tab TYPE TABLE OF mara" is not accepted by CREATE DATA, but the dictionary type is. So even generating a little top include dynamically with the needed type as a table type will not work on 4.6C
    Best regards,
    Stefan Kozlowski

  • Create Data type table in 46B

    Hi
    Quick one, can I dynamically create tables in 46B using the 'create data dref type table of ty_table' in 46B.  It seems not but I just wanted to check.  Otherwise I will resort to using the construct below:
    CALL METHOD cl_alv_table_create=>create_dynamic_table
                               EXPORTING it_fieldcatalog = gt_fieldcat
                               IMPORTING ep_table = gp_table.
    From what I can see the RTTS has not been fully implemented yet.
    Cheers
    Ian

    Thanks Svetlin but I can already create my table like this. What I wanted was a 'cleaner' version so that I can have for example:
    if p_plant = 'X'.
      create data dref type table of ty_plant.
    elseif p_workcentre = 'X'.
      create data dref type table of ty_workcentre.
    endif.
    assign dref->* to <gt_output>.
    However I get a syntax error when I use the above or even when I create a table such such as;
          begin of ty_gbp,
             plant TYPE qals-werk,
             insp_end TYPE qals-paendterm,
             workcentre TYPE QAQEE-PRPLATZ,
             lwr TYPE qals-zz_lwr,
             insp_lot TYPE qals-prueflos,
           end of ty_gbp,
           ty_gbp_table type table of ty_gbp.
    create data dref type ty_gbp_table.
    It says the type specification of ty_gbp_table is incomplete.
    Ian

  • How to get all program attributes (Variables, types, tables....)

    Hello,
    i want to analyse a programe source code, so i want to get all variable declaration.
    like in SE38->utilities->display list object, but in abap code.
    can you please help me.

    Hi Yassir,
    If ur program has TOP include then all global variables declarations will exist in this include. All local variables declarations exist with in the FORM.
    Open ur program in SE80. Here u can see all objects of ur program like Fields(Variables), TYPES,Tables, Routines etc.
    Thanks,
    Vinod.

  • Ora3113 trying to create xml type table

    I registered a rather large schema. When I try to create an XML type table either using OEM or via sqlplus I get an end of file on communication error.
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Aug 27 15:24:01 2002
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected.
    CREATE TABLE "SYSTEM"."XMLTEXT" OF SYS.XMLTYPE XMLSCHEMA "http://xmlns.oracle.com/xdb/schemas/SYSTEM/www.oracle.com/xsd/visora.xsd" ELEMENT "Text"
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel

    I registered a rather large schema. When I try to create an XML type table either using OEM or via sqlplus I get an end of file on communication error.
    SQL*Plus: Release 9.2.0.1.0 - Production on Tue Aug 27 15:24:01 2002
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected.
    CREATE TABLE "SYSTEM"."XMLTEXT" OF SYS.XMLTYPE XMLSCHEMA "http://xmlns.oracle.com/xdb/schemas/SYSTEM/www.oracle.com/xsd/visora.xsd" ELEMENT "Text"
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel

  • How to execute STP with Named type table as parameter through ODBC calls.

    Hi All,
    I am using Oracle 10g release 2. I am having a Stored function which takes Named Type Table as its parameter.
    For example
    CREATE OR REPLACE TYPE tblName is table of someUDT.
    CREATE OR REPLACE function nestfunction(t tblName)
    return NUMBER
    as
    //function body here.
    end;
    Now, I want to call this Stored function nestfunction through ODBC calls. Also want to add multiple rows in tblName parameter.
    But am unable to perform the above mentioned task. If you have answers please, reply.
    Thanks and regards
    ftil555

    Hi Arik,
    Thanks for the reply. I got the solution by configuring a NonXA data source. The problem was with internal commits of the fnd_global.initialize api.
    If the DB adapter is calling aPL/SQL procedure (written inside a pakcage) using the data source configured to support XA, will expect not to have any commits in side the procedure or anywhere, the XA driver will take of the commits and whole transactions. By default the FND_GLOBAL.INITIALIZE(...) procedure will have the internal commits, so it was throwing the errors.
    The solution was configuring the a NonXA Data source in the databae adapter configuration will allow the commits inside the callings procedures. So we created Two data sources one for XA and another for NonXA and we are using the NonXA datasource whereever we are calling the EBS APIs which have the internal commits.
    -- Khaleel

Maybe you are looking for