Skip to Content
author's profile photo Former Member
Former Member

internal table

Hi all

can we create internal table from se11..if so how?

Thanks

abapuser

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2007 at 07:56 PM

    This is not possible,you can create internal table in SE38 ( ABAP Editor),internal table get the data from database table(SE11) during run time.

    You can create DB Tables in SE11.

    Hope you got it

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 07, 2007 at 07:57 PM

    No we cant...

    Internal Table is only attached to one perticular Program.

    You can create structures, table types and use these objects to create your internal tables in your programs.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2007 at 08:26 PM

    Thanks for everyone.unfortunately iam not able to give points for some reason.

    Regards

    abap user

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2007 at 08:41 PM

    Yes you can. Check data type SPFLI_TAB in SE11.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Rob, once again, is correct.

      Internal table definitions are quite common in the Data Dictionary.

      Look at almost any class (for example) that uses tables, such as CL_GUI_ALV_GRID, and you will see that they make copious use of internal tables that are defined in the Data Dictionary.

      In CL_GUI_ALV_GRID

      You have internal tables such as

      IT_FIELDCATALOG	Type	LVC_T_FCAT  Field Catalog
      IT_SORT		Type	LVC_T_SORT  Sort Criteria
      IT_FILTER	Type	LVC_T_FILT  Filter Criteria
      

      These table types (LVC_T_FCAT, LVC_T_SORT, LVC_T_FILT) are all defined in the data dictionary via SE11.

      Many many more examples could be given.

      If you don't believe me, go into SE11 and check off Data Type and put any one of these in the data type selection field and press Display.

      You will see that they are defined in there.

      In fact, it is a requirement when doing OO programming to use such table types when you want to pass tables to forms (for example) and have them appropriately typed, since the TABLES addition is obsolete, so this is the way to do it.

      Good luck

      Brian

      Fix formatting and spelling

      Message was edited by:

      Brian Sammond

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2007 at 08:37 PM

    Hi,

    You can't create internal table through SE11 Tcode.

    Internal table is a template of DB Table which will holds data during the run time of the program.Which will not physically stored in Database. Its a 2 Dimensional table as like Database table.

    you can only create/declare internal table within the program.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 10:15 AM

    We can never create an internal table using SE11. here are some ways to create an internal table.

    report ztx1102.
     data: begin of it1 occurs 10,          "has a header line
             f1,
             f2,
             f3,
             end of it1.
    
     data it2 like ztxlfa1 occurs 100.      "doesn't have a header line
    
     data it3 like ztxlfa1 occurs 100 with header line. "it does now
    
    data it4 like it3 occurs 100.          "doesn't have a header line
    
     data     begin of it5 occurs 100.      "has a header line
     include      structure ztxlfa1.
     data         end of it5.
    
     data     begin of it6 occurs 100.      "this is why you might use
     include      structure ztxlfa1.        "the include statement
     data:        delflag,
                  rowtotal,
                  end of it6.
    
     data: begin of it7 occurs 100,         "don't do it this way
               s like ztxlfa1,              "component names will be
               end of it7.                  "prefixed with it7-s-
    
     data it8 like sy-index occurs 10
         with header line.
    
     data: begin of it9 occurs 10,
               f1 like sy-index,
    

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.