Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

internal table

Former Member
0 Likes
744

Hi all

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

Thanks

abapuser

8 REPLIES 8
Read only

Former Member
0 Likes
692

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

Read only

naimesh_patel
Active Contributor
0 Likes
692

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

Read only

Former Member
0 Likes
692

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

Regards

abap user

Read only

0 Likes
692

Nothing to worry about reward points.we are happy that you got answer.

SDN People blocked reward points system currently and may be reward points will remove soon.

Thanks

Seshu

Read only

Former Member
0 Likes
692

Yes you can. Check data type SPFLI_TAB in SE11.

Rob

Read only

0 Likes
692

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

Read only

Former Member
0 Likes
692

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

Read only

Former Member
0 Likes
692

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,