‎2007 Jul 25 4:45 AM
what is the difference between type and type table of..
i mean..
gs_vbak TYPE ty_vbak,
gt_vbak TYPE TABLE OF ty_vbak,
ty_vbak is my internal table..
Regards,
pandu
‎2007 Jul 25 4:48 AM
gs_vbak TYPE ty_vbak --> Work Area declaration.
gt_vbak TYPE TABLE OF ty_vbak --> Internal Table declaration.
ty_vbak is my internal table.. --> Structure declaration.
If ty_vbak is the structure declaration in your program then
gt_vbak type table of ty_vbak is the internal table of type ty_vbak.
gs_vbak type ty_vbak is the workarea declaration
Regards
Gopi
‎2007 Jul 25 5:07 AM
Hi..
<b>TYPE</b> - Type is used to tell the system what is the type of data object(variable) you want to create .
only by giving type u are declaring the work area or just a data...
<b>TYPE TABLE OF</b> - by giving type table of means u are declaring the internal table..
<b>Reward points if useful</b>
Regards
Ashu
‎2007 Jul 25 5:11 AM
gs_vbak acts like a aworkarea
gt_vbak acts like an internal table
loop at gt_vbak into gs_vbak.
gs_vbak-field1 = 'XXXX'.
modify gt_vbak from gs_vbak.
endloop.
‎2007 Jul 25 5:12 AM
Hi,
1. TYPE is data type declaration, it may be work area or variable or constant.
2. Type table is Internal table of Strucute.
Both can be declared in the SE11 (ABAP Dictionary) globally in Data Type.
Reward if useful!
‎2007 Jul 25 5:14 AM
Hi,
gs_vbak <u>TYPE</u> ty_vbak --> used to declare work area.
gt_vbak <u>TYPE TABLE OF</u> ty_vbak --> used to declare internal table.
‎2007 Jul 25 6:13 AM
hi
data : wa_itab type itab --> nothing but work area.
data : wa_itab type table of itab ---> internal table declaration....
thanks,
maheedhar.t