Application Development 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: 

diff ways of defining standard table

Former Member
0 Kudos

frends please let me know the different ways of defining standard tables.provide me the diff syntaxes.

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this.


TYPES: BEGIN OF deepline,
         field  TYPE c,
         table1 TYPE vector,
         table2 TYPE itab,
       END OF deepline.

TYPES deeptable TYPE STANDARD TABLE OF deepline 
                WITH DEFAULT KEY.

The structure deepline contains the internal table as a component. The table type deeptable has the row type deepline. Therefore, the elements of this internal table are themselves internal tables. The key is the default key - in this case the column field. The key is non-unique, since the table is a standard table

Regards,

Ferry Lianto

1 REPLY 1

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this.


TYPES: BEGIN OF deepline,
         field  TYPE c,
         table1 TYPE vector,
         table2 TYPE itab,
       END OF deepline.

TYPES deeptable TYPE STANDARD TABLE OF deepline 
                WITH DEFAULT KEY.

The structure deepline contains the internal table as a component. The table type deeptable has the row type deepline. Therefore, the elements of this internal table are themselves internal tables. The key is the default key - in this case the column field. The key is non-unique, since the table is a standard table

Regards,

Ferry Lianto