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 isssue

Former Member
0 Likes
506

Hi All,

Kindly let me know what is the exact difference b/w in both lines in the below.

gt_error TYPE TABLE OF gy_error.

gt_objtxt TYPE STANDARD TABLE OF solisti1.

Why they have written in different stmts. Pls let me know.

Akshitha.

Hi All,

Kindly let me know what is the exact difference b/w in both lines in the below.

gt_error TYPE TABLE OF gy_error.

gt_objtxt TYPE STANDARD TABLE OF solisti1.

Why they have written in different stmts. Pls let me know.

Akshitha.

4 REPLIES 4
Read only

Former Member
0 Likes
489

gt_error TYPE TABLE OF gy_error.

this statment will create a internal table with the type declaration structure gy_error.

gt_objtxt TYPE STANDARD TABLE OF solisti1.

this statment will create inetrnal table with refernce to the standard structure solisti1

if type declaration gy_error is also refering to only the structure solisti1 then both the statments are same onyl thing is two different iinternal tables are created

Read only

Former Member
0 Likes
489

TYPE STANDARD TABLE OF Defines the table as a standard table. Key access to a standard table uses a linear search. This means that the timne required for a search is in linear relation to the number of table entries.

You should use index operations to access standard tables.

For the sake of compatibility, you can use TABLE as a synonym of STANDARD TABLE.

So both are same.

Awrd Points if useful

Bhupal

Read only

Former Member
0 Likes
489

Hi,

These two statement will declare an internal table of type Standard as default internal table type is standard.

But you can define Sorted Hashed as well....

Regards,

Lalit

Read only

Former Member
0 Likes
489

Hi,

'TYPE STANDARD TABLE OF' and 'TYPE TABLE OF' Define the table as a standard table. The addition STANDARD is optional in case of standard tables. But if you need sorted or hashed tables you should use the additions SORTED and HASHED respectively.

Regards,

Renjith Michael.