Table Declaration

Can anyone tell me what is there in declaring a table with a * as prefix with table name.
ex: 
TABLES:  *MARA.
Thanx in advance.

Hi biswaranjan,
1. This is actually a facility provided in abap syntax.
2. It is usually checked while saving a record.
3. For eg.
If we have one variable
EKKO
and another *EKKO
(They both are same only, with same structure)
(but two different variables)
4. The functional meaning, for usage purpose,
of *EKKO is OLDEKKO.
5. While saving the transaction,
the data is saved only if there is any change
in the values.
IF EKKO <> *EKKO.
*--- SAVE
ELSE.
MESSAGE 'NO DATA CHANGED'
ENDIF.
6. We can aswell use any other variale
eg. oldekko
oekko
myekko
etc,
7. But for business meaning,
R/3 has the facility for *
1. we can use almost everywhere.
2. just copy paste
report abc.
TABLES : T001.
TABLES : *T001.
DATA : ITAB LIKE EKKO.
DATA : *ITAB LIKE EKKO.
DATA : NUM TYPE I.
DATA : *NUM TYPE I.
regards,
amit m.

Similar Messages

  • Error in ABAP Report TABLES declaration

    Hi,
    I am a Basis administrator and trying to write a small program for archiving.
    I get a folowing error when user the following statement in a report -
    TABLES: RSDAARCHREQ.
    The error is as follows -
    "RSDAARCHREQ" must be a flat structure. You cannot use internal tables,
    strings, references, or structures as components. -
    I can include all the other tables requred but somehow this particular table gives me this error which I have never encountered earlier. This is BI 7.0 and it is standard SAP transparent table.
    Please help me.
    I will appreciate it.
    Regards,
    Sume

    Hi Sume,
    Do not declare RSDAARCHREQ in tables.
    If you want a internal table  declare in the below mentioned way .
    data: it_RSDAARCHREQ TYPE STANDARD TABLE OF RSDAARCHREQ.
    select * into table
    it_RSDAARCHREQ
      from RSDAARCHREQ.
    Regards
    Naresh

  • DIFF: Field string ,Structure and Internal table declaration

    Hai,
           what is the diference between  Field string ,Structure in ABAP program and Internal table declaration and how it will work ?
    Thank you
    ASHOK KUMAR.

    hi,
    Look this u will get a good idea.
    *& Report  ZTYPES                                                      *
    REPORT  ZTYPES                                                  .
    * Table declaration (old method)
    DATA: BEGIN OF tab_ekpo OCCURS 0,             "itab with header line
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
    END OF tab_ekpo.
    *Table declaration (new method)     "USE THIS WAY!!!
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,      "itab
          wa_ekpo TYPE t_ekpo.                    "work area (header line)
    * Build internal table and work area from existing internal table
    DATA: it_datatab LIKE tab_ekpo OCCURS 0,      "old method
          wa_datatab LIKE LINE OF tab_ekpo.
    * Build internal table and work area from existing internal table,
    * adding additional fields
    TYPES: BEGIN OF t_repdata.
            INCLUDE STRUCTURE tab_ekpo.  "could include EKKO table itself!!
    TYPES: bukrs  TYPE ekpo-werks,
           bstyp  TYPE ekpo-bukrs.
    TYPES: END OF t_repdata.
    DATA: it_repdata TYPE STANDARD TABLE OF t_repdata INITIAL SIZE 0,   "itab
          wa_repdata TYPE t_repdata.                 "work area (header line)
    Regards
    Reshma

  • Internal table declaration - work area and body

    Hi all
    I have declared my internal table in my program as
    data : itab_wa type ZRESULT_LINE,
           itab    type ZRESULT_ROW.
    Where ZRESULT_LINE and ZRESULT_ROW are the structure and table types.
    Now I want to add
    data: TCOLOR TYPE SLIS_T_SPECIALCOL_ALV.
    in my internal table declaration. How can I do this. Please remember I need to have work area and body in my internal table as I have used work area and body in my code.
    Waiting..............
    Message was edited by: Raju Boda

    HI,
    See the Declarion types of workarea and Internal tables
    * Table declaration (old method)
    DATA: BEGIN OF tab_ekpo OCCURS 0,             "itab with header line
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
    END OF tab_ekpo.
    *Table declaration (new method)     "USE THIS WAY!!!
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,      "itab
          wa_ekpo TYPE t_ekpo.                    "work area (header line)
    * Build internal table and work area from existing internal table
    DATA: it_datatab LIKE tab_ekpo OCCURS 0,      "old method
          wa_datatab LIKE LINE OF tab_ekpo.
    * Build internal table and work area from existing internal table,
    * adding additional fields
    TYPES: BEGIN OF t_repdata.
            INCLUDE STRUCTURE tab_ekpo.  "could include EKKO table itself!!
    TYPES: bukrs  TYPE ekpo-werks,
           bstyp  TYPE ekpo-bukrs.
    TYPES: END OF t_repdata.
    DATA: it_repdata TYPE STANDARD TABLE OF t_repdata INITIAL SIZE 0,   "itab
          wa_repdata TYPE t_repdata.                 "work area (header line
    you need to maintain same structure for both workarea as well Internal table
    Regards
    Sudheer

  • PL/SQL TABLE declarations must currently use binary_integer indexes

    Hi,
    I am having procedure written in form6i, this procedure is having pl/sql table datatyep "v_suppmesg orcl.err_message.error_tabtype;" this pl/sql datatype is defined in database and the procedure in database is not having any error in it.
    But when i am compling my form its giving me error
    PL/SQL TABLE declarations must currently use binary_integer indexes
    and error point is *"i_rowindex"* in the sentance given below.
    *"SET_GROUP_CHAR_CELL (g_suppress_error_colid, v_rowindex, v_suppmesg(i_rowindex));"*
    PROCEDURE PRC_A IS
    v_rowindex NUMBER (5,0) := 1;
    v_suppmesg orcl.err_message.error_tabtype;
    BEGIN
    g_suppress_error_rgid := FIND_GROUP (g_suppress_error_rgname);
    IF ID_NULL (g_suppress_error_rgid)
    THEN
    g_suppress_error_rgid := CREATE_GROUP (g_suppress_error_rgname, GLOBAL_SCOPE);
    g_suppress_error_colid := ADD_GROUP_COLUMN ( g_suppress_error_rgid
    , g_suppress_error_colname
    , CHAR_COLUMN
    , 15);
    orcl.err_message.get_messages (v_suppmesg);
    FOR i_rowindex IN 1..v_suppmesg.count
    LOOP
    ADD_GROUP_ROW (g_suppress_error_rgid, END_OF_GROUP);
    SET_GROUP_CHAR_CELL (g_suppress_error_colid, v_rowindex, v_suppmesg(i_rowindex));
    v_rowindex := v_rowindex + 1;
    END LOOP;
    ELSE
    g_suppress_error_colid := FIND_COLUMN (g_suppress_error_rgname||'.'||g_suppress_error_colname);
    END IF;
    END Init_Suppress_Message;
    can anyone tell me what's wrong in this.

    I have the folowing compiling and executing fine (Forms 10.1.2):
    DECLARE
      type t1 is table of VARCHAR2(100) index by BINARY_INTEGER ;
      tab t1;
      rg_id RecordGroup;
      gc_id GroupColumn; 
    BEGIN
         tab(1) := 'One' ;
         tab(2) := 'Two' ;
         tab(3) := 'Three' ;
         rg_id := FIND_GROUP ('RG10');
         IF ID_NULL (rg_id)
         THEN
              rg_id := CREATE_GROUP ('RG10', GLOBAL_SCOPE);
              gc_id := ADD_GROUP_COLUMN ( 'RG10'
              , 'COL1'
              , CHAR_COLUMN
              , 15);
              --orcl.err_message.get_messages (v_suppmesg);
              FOR i IN 1..tab.count
              LOOP
              ADD_GROUP_ROW ('RG10', END_OF_GROUP);
              SET_GROUP_CHAR_CELL ('RG10.COL1', i, tab(i));
              END LOOP;
         END IF;
    END;Francois

  • How to avaoid tables declaration in abap object 's

    Hi Folks,
    I realised that in abap objects we should not declare tables statement, instead we have to declare wa type dbtable. But my qsn is i am using select single * from dbtable in at selection-screen for validation, in that situation in that situation how to avoid table declaration, i tried with select single * dbtable into wa , but still its asking table declaration.
    Pls help me out, thanks.
    Regards
    Vishal

    <b>method GET_VENDOR_4_USER .
    Get the Vendor for the User
    data: x_lfa1 type lfa1.
      clear vendor.
      select
        lifnr
        into VENDOR
        from  zsiacvendor
        up to 1 rows
        where bname = sy-uname.
      endselect.
    get the name of the vendor
      select single *
               into x_lfa1
               from lfa1
              where lifnr = vendor.
    endmethod.</b>
    The above code works fine for me.

  • OO ABAP inerenal table and tables declarations?

    Hi All,
    1.I am new to OO ABAP, can any one give me clear idea how to declare Internal tables, work area and table declarations and how to use and read them?
    2. I am having a problem,
    I declare a table like this
    IT_CRMD_ORDERADM_H TYPE TABLE OF CRMD_ORDERADM_H.
    and in the perform statement
    Pefrom using
    IT_CRMD_ORDERADM_H[]
    and in form ( i need to read and select a record from this table)
    can any one give me solution how to do this?
    thanks for ur time.
    sandhya

    Hai Sandhya
    Go through the following Code
    *& Report  ZABAP_OBJ_01                                          *
    report  zabap_obj_01                      .
    parameters : p_vbeln like vbap-vbeln obligatory,
                 p_matnr like mara-matnr.
    <b>types : begin of ty_vbap,
            vbeln type vbap-vbeln,
            matnr type vbap-matnr,
            arktx type vbap-arktx,
            end of ty_vbap.</b>
          CLASS sales_order DEFINITION
    class sales_order definition.
      public section.
        data : v_matnr type mara-matnr,
               v_vbeln type vbap-vbeln.
        events : no_data_found.
        methods : constructor importing vbeln type vbap-vbeln
                                        matnr type mara-matnr optional,
                  get_vbap_details,
                  disp_vbap_details,
                  Handle_no_data_found
                  for event no_data_found of sales_order.
    <b>    data : it_vbap type standard table of ty_vbap.</b>
    endclass.                    "sales_order DEFINITION
          CLASS sales_order IMPLEMENTATION
    class sales_order implementation.
      method get_vbap_details.
        clear : it_vbap.
        refresh : it_vbap.
        select  vbeln
                matnr
                arktx
                from vbap
                into table it_vbap
                where vbeln = p_vbeln.
        if sy-subrc <> 0.
          raise event no_data_found.
        endif.
      endmethod.                    "get_vbap_details
      method constructor.
        clear : v_vbeln,
                v_matnr.
        v_vbeln = vbeln.
        v_matnr = matnr.
      endmethod.                    "constructor
      method Handle_no_data_found.
        write : / 'No Data Found for the given selection Criteria'.
      endmethod.
      method disp_vbap_details.
        data : wx_vbap like line of it_vbap.
        loop at it_vbap into wx_vbap.
          write :/ wx_vbap-vbeln,
                   wx_vbap-matnr,
                   wx_vbap-arktx.
        endloop.
        clear : it_vbap.
      endmethod.                    "disp_vbap_details
    endclass.                    "sales_order IMPLEMENTATION
    data : obj type ref to sales_order.
    start-of-selection.
      if not p_matnr is initial.
        create object obj exporting vbeln = p_vbeln
                                    matnr = p_matnr.
      else.
        create object obj exporting vbeln = p_vbeln.
      endif.
      set handler obj->Handle_no_data_found for obj.
      call method obj->get_vbap_details.
      call method obj->disp_vbap_details.
    Thanks & regards
    Sreenivasulu P

  • Re: Table declaration

    hi,
    i saw some table declaration like
         GT_AGENTS TYPE STANDARD TABLE OF TT_AGENTS WITH DEFAULT KEY ,
    Here what is meaning of Default key.
    Please give me explanation

    Hi Santosh,
    Please check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm
    Key
    You can specify the key <key> of an internal table as follows:
    [UNIQUE|NON-UNIQUE] KEY <col1> ... <col n>
    In tables with a structured line type, all of the components <coli> belong to the key as long as they are not internal tables or references, and do not contain internal tables or references. Key fields can be nested structures. The substructures are expanded component by component when you access the table using the key. The system follows the sequence of the key fields.
    [UNIQUE|NON-UNIQUE] KEY TABLE LINE
    If a table has an elementary line type (C, D, F, I, N, P, T, X), you can define the entire line as the key. If you try this for a table whose line type is itself a table, a syntax error occurs. If a table has a structured line type, it is possible to specify the entire line as the key. However, you should remember that this is often not suitable.
    [UNIQUE|NON-UNIQUE] DEFAULT KEY
    This declares the fields of the default key as the key fields. If the table has a structured line type, the default key contains all non-numeric columns of the internal table that are not and do not contain references or internal tables. If the table has an elementary line type, the default key is the entire line. The default key of an internal table whose line type is an internal table, the default key is empty.
    Specifying a key is optional. If you do not specify a key, the system defines a table type with an arbitrary key. You can only use this to define the types of field symbols and the interface parameters of procedures . For exceptions, refer to Special Features of Standard Tables.
    The optional additions UNIQUE or NON-UNIQUE determine whether the key is to be unique or non-unique, that is, whether the table can accept duplicate entries. If you do not specify UNIQUE or NON-UNIQUE for the key, the table type is generic in this respect. As such, it can only be used for specifying types. When you specify the table type simultaneously, you must note the following restrictions:
    You cannot use the UNIQUE addition for standard tables. The system always generates the NON-UNIQUE addition automatically.
    You must always specify the UNIQUE option when you create a hashed table.
    Besty regards,
    raam

  • Reg:table declaration in a top include

    Hi gurus,
    I have declared few tables in the top include of a function module,but while activating the FM it's throwing error that "the table has already been declared".Where as I have not declared those tables anywhere else.
    Please give me a solution regarding this.
    Thanks in advance.

    hi,
    it might be dat u have declared the required tables in ur Function module and also declared in Top Include. check this. when ever you declared all required elements in ur Top include then try to avoid them declaring in ur FM.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Table Declaration in Transformation Routine

    Hi all,
    I have declared a table in transformation routine as follows :
    DATA : BEGIN OF VACATIONS OCCURS 0,
           DATE TYPE D,
           END OF VACATIONS.
    System is giving following error on this :
    ' E:Tables with headers are no longer supported in the OO context.'
    What should I do now?
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    Hi Al,
       Let me explain here ... because you are doing what is being told to do without actually understanding your purpose. Let me take a scenario. You want to read a database table for sales orders populate it into the internal table. Then you wnat to loop at the internal table you populated and print the output. For this what you need is an internal table where your data will be stored - simply put its a 2 dimentional array. so your data once put into the internal table would look like:
    Sales_Order  Sold_To_Party
    1                        1
    2                        3
    3                        5
    4                        1
    Now what you do is read it - which means you are going to read one line at a time, which means a structure not an internal table, which was the purpose of the header line. but since header lines are not supported you need a different work area (structure). So that when you read the first line your structure contains as follows:
    1                       1
    When you read the second line your structure or work area contains the second line:
    2                        3
    so on.....
    From the explaination above you must be clear that you need an internal table to store data temporarily and a structure to manipulate a single record. Now the cod would look like:
    DATA: it_vbak type table of VBAK.
    DATA: wa_vbak type vbak.
    Notice above that one is using a "table" while declaring and the other is not.
    Select * from VBAK into table it_vbak.
    loop at it_vbak into wa_vbak.
    note above that you are looping at the internal table and populating one record
    into the work area.
       write:/ wa_vbak-vbeln.
    endloop.
    Hope this helps. Ask if you have any more concerns.
    Best regards,
    Kazmi

  • TSV_TNEW_PAGE_ALLOC_FAILED  with internal table declared with occurs 0

    HI guys,
    when the internal table is declared as occurs 0, the dump TSV_TNEW_PAGE_ALLOC_FAILED is encountered, when changing the declaration into standard table, th dump disappears. Why is this so?
    Thanks!

    There are three type of tables: Standard, sorted and hashed tables (see [here|http://help.sap.com/abapdocu_70/en/ABAPDATA_ITAB.htm]). When you define a table using the keyword OCCURS you're still defining a standard table.
    Your exception indicates that you're running out of memory. The difference in the declarations that you mention shouldn't cause that. Main difference between the two declaration versions is probably that your table defined via OCCURS has a header line, whereas your other table doesn't (unless you declared it explicitly as WITH HEADER LINE).
    I don't think though that with that little information anybody could explain the short dump. Actually it sounds rather odd that the change you mention should cause the dump (or make it go away). So I suspect you probably have to post further details. You might want to check the shortdump yourself and place a breakpoint at this place and run it for each version. Maybe you can see some difference...

  • Accessing internal table declared outside of BAdI  implementation

    I am working on a BAdI implementation and within the BAdI, I need to manipulate the data of an internal table that is declared in the calling routine.  This internal table is not a parameter to the BAdI call.  I am wondering is there a way to access the internal table that is not recognized by the BAdI implementation?  If so, what's the syntax to do this?
    I know in debug mode, I am able to access the content of the internal table by using (Program)Itab.  But I get a syntax error when accessing the internal table using (Program)Itab syntax. 
    Any help is appreciated!

    Thanks, Max.
    I tried your method, but I am getting a short dump due to type conflict.  I think it's because the internal table I'd like to access is declared using the following syntax:
    data: begin of itab occurs 0,
          end of itab.
    Therefore, when processing the assign statement, the field-symbol is being treated as a structure...
    I tried to change the field-symbol type to any, but after that, I can't modify the table content using loop at type of syntax..
    Do you have any other suggestions? 
    Thanks very much!

  • Table declaration in Standard Program

    Hi to all,
    I just want to know that I have seen in the standard program the declaration of table in the following way.
    TABLES: bkdf,
            bkpf,
            *bkpf.
    then what is this *bkpf means.
    Thanks
    Dharmishta

    hi ,
    hope it useful for u..
    the thing is it s like  a work area for an  table itself.. we dont want to define an work area for table (ekpo) like (wa_ekpo).. just we put *ekpo.. SAP internally make a work area of type the standard tab le.. here with i attach a piece of code...
    tables:  ekpo , *ekpo.
    select single * from ekpo into  *ekpo.
    if sy-subrc eq 0.
            write : / *ekpo-ebeln.
       endif.
    regards,
    Karthik

  • Problem with internal table declaration in function gui_upload

    hi friends,
    can u tell me how should i define internal table when i use this function?
    i get error that in oo my declaration not good.
    thanks,
    dana.

    see this example:-
    DATA: BEGIN OF itab OCCURS 0,
            tdname   TYPE mara-matnr,
            tdline1  TYPE tline-tdline,
            tdline2  TYPE tline-tdline,
            tdline3  TYPE tline-tdline,
            tdline4  TYPE tline-tdline,
            tdline5  TYPE tline-tdline,
                  END OF itab.
    DATA: BEGIN OF itab_error OCCURS 0,
            tdname  TYPE mara-matnr,
            error   TYPE string,
          END OF itab_error.
    DATA: lines    TYPE STANDARD TABLE OF tline WITH HEADER LINE.
    DATA: temp     TYPE string.
    DATA: tdspras  TYPE thead-tdspras.
    DATA: tdname   TYPE thead-tdname.
    DATA: tdobject TYPE thead-tdobject.
    DATA: tdid     TYPE thead-tdid.
    DATA :flag     TYPE c.
    At Selection Screen Event
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p1.
      CALL FUNCTION 'F4_FILENAME'
        IMPORTING
          file_name = p1.
    At Start of Selection Event
    START-OF-SELECTION.
      PERFORM upload_data.
      PERFORM upload_text.
    *&      Form  upload_data
          text
    -->  p1        text
    <--  p2        text
    FORM upload_data .
      temp = p1.
    **& Upload Data from Excel
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = temp
          filetype            = 'ASC'
          has_field_separator = 'X'
        TABLES
          data_tab            = itab.
    ENDFORM.                    " upload_data
    *&      Form  upload_text
          text
    -->  p1        text
    <--  p2        text
    FORM upload_text .
      tdspras  = 'EN'.
      tdid = 'BEST'.
      tdobject = 'MATERIAL'.
      LOOP AT itab.
        REFRESH lines.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = itab-tdname
          IMPORTING
            output = itab-tdname.
        TRANSLATE itab-tdname TO UPPER CASE.
        tdname = itab-tdname.
        PERFORM check_material.
        lines-tdline = itab-tdline1.
        APPEND lines.
        CLEAR lines.
        lines-tdline = itab-tdline2.
        APPEND lines.
        CLEAR lines.
        lines-tdline = itab-tdline3.
        APPEND lines.
        CLEAR lines.
        lines-tdline = itab-tdline4.
        APPEND lines.
        CLEAR lines.
        lines-tdline = itab-tdline5.
        APPEND lines.
        CLEAR lines.
        CALL FUNCTION 'CREATE_TEXT'
          EXPORTING
            fid       = tdid
            flanguage = tdspras
            fname     = tdname
            fobject   = tdobject
          TABLES
            flines    = lines.
      ENDLOOP.
      IF itab_error[] IS NOT INITIAL.
        WRITE : / 'PO Text For Following Material is not Uploaded'.
        WRITE : / .
        WRITE : / 'Material', '              Error'.
        LOOP AT itab_error.
          WRITE : / itab_error-tdname, '   ',  itab_error-error.
        ENDLOOP.
      ELSE.
        MESSAGE s001(38) WITH 'Data Uploaded Succcesfully'.
      ENDIF.
    ENDFORM.                    " upload_text
    *&      Form  check_material
          text
    -->  p1        text
    <--  p2        text
    FORM check_material .
      DATA : w_matnr TYPE mara-matnr.
      SELECT SINGLE matnr
      INTO w_matnr
      FROM mara
      WHERE matnr = itab-tdname.
      IF sy-subrc = 0.
        flag = 'X'.
      ELSE.
        MOVE-CORRESPONDING itab TO itab_error.
        itab_error-error = 'Material does not exist'.
        APPEND itab_error.
      ENDIF.
    ENDFORM.                    " check_material

  • Internal table declaration -OO ABAP

    Hi,
              I am looking to declare an internal table using OO objects. My declaration are as follows..
    TYPES : Begin of itab,
                         f1 type c,
                         f2 type c,
                 End of itab.
    DATA : itab1 type standard table of itab.
    DATA: wa_tab type itab.
    I have an internal table to say itab_pa2001 which i am reading all the records of pernr into ITAB_PA2001.To get the text i want to select * from t5*** into ..... Finally wht am looking is to move some of the fields into the final table ITAB. Could you please let me know how to set this up as i am getting wrong values when i am looping as below.
    how to declare a structure in ITAB using ABAP OO....??
    LOOP at ITAB_PA2001 into wa_itab.
    ENDLOOP.
    Thanks,
    Vind

    Hi,
    Please refer to following links :
    [How to declare an internal table in OO-ABAP programming? |Re: How to  declare an internal table in OO-ABAP programming?;
    [sample object oriented ABAP program |http://wiki.sdn.sap.com/wiki/display/Snippets/sampleobjectorientedABAPprogram]
    Hope this helps.
    Regards,
    Chandravadan

  • Internal table declaration

    What is the difference between 'OCCURS 0' addition and 'INITIAL SIZE' .
    CASE I :(Declaration With 'OCCURS 0' addition)
    DATA:BEGIN OF I_TAB OCCURS 0,
           NAME(5) TYPE C,
           AGE(2) TYPE C,
         END OF I_TAB.
    CASE II :(Declartion with inital size)
    TYPES:BEGIN OF T_TAB,
                 NAME(5) TYPE C,
                 AGE(2) TYPE C,
               END OF T_TAB.
    DATA:I_TAB TYPE STANDARD TABLE OF T_TAB INITIAL SIZE 0.
    In the above cases which case is efficient for declaring internal table ?
    Moderator message: please read ABAP documentation before posting.
    Edited by: Thomas Zloch on Jun 27, 2011 4:23 PM

    What is the difference between 'OCCURS 0' addition and 'INITIAL SIZE' .
    CASE I :(Declaration With 'OCCURS 0' addition)
    DATA:BEGIN OF I_TAB OCCURS 0,
           NAME(5) TYPE C,
           AGE(2) TYPE C,
         END OF I_TAB.
    CASE II :(Declartion with inital size)
    TYPES:BEGIN OF T_TAB,
                 NAME(5) TYPE C,
                 AGE(2) TYPE C,
               END OF T_TAB.
    DATA:I_TAB TYPE STANDARD TABLE OF T_TAB INITIAL SIZE 0.
    In the above cases which case is efficient for declaring internal table ?
    Moderator message: please read ABAP documentation before posting.
    Edited by: Thomas Zloch on Jun 27, 2011 4:23 PM

Maybe you are looking for

  • Can two user accounts on the same mac share the Address Book

    My wife and I have separate user accounts on the same Mac but we would like to share the same Address Book. I have searched the forums to no avail. It seems silly to use .mac to do so, and a needless expense when the information is already on the sam

  • How can I accept the new icloud Terms of Service?

    I just updated my Apple TV with the new software.  I can't see my photos in Photo Stream anymore.  I tried to update the Terms of Service on my iphone 4, but they don't pop up in settings-icloud.  I also tried to accept the Terms of Service by going

  • Frame Overlapping in Dreamweaver CS3

    i am using dreamweaver CS3 and imported a menu of fireworks. then i used frames left frame, and right frame. in left frame i inserted menu and i linked the drag drop menu to my right frame. so in the whole i want a drag drop manu in left(which is fre

  • Screen exit for VL31N

    Hi All, I have a requirement to add a few custom fields in the standard transaction screen VL31N.Is there any screen exit i can make use of? How do i proceed once i get the Screen exit to add the fields in the screen. Thanks in advance. Karthik

  • Compile build.xml with Ant for web service with annotations

    Hi Friends, I have a web service with annotations, using javax.annotation.PostConstruct, and javax.annotation.PreDestroy. I have a build.xml to create a EAR for this web service. When I run the ant task, the build complete successfully but the .war f