2007 Dec 28 10:35 AM
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.
2007 Dec 28 10:39 AM
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
2007 Dec 28 10:39 AM
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
2007 Dec 28 10:42 AM
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
2007 Dec 28 10:58 AM
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.