on 05-02-2007 10:48 AM
hi all !
Can we load data into a table type?,if yes then how
thanks and regards,
sachin soni
Hi,
Table type is the type declaration for tables
Eg: types : begin of itab,
matnr type matnr,
werks type werks_d,
end of itab.
*table type
types : ty_t_itab type standard table of itab.
*internal table
data: it_itab type standard table if itab.
internal table holds data where as <b>table type does not hold anydata</b> its a type declaration(see above..
Where to use Table type
Eg: If you have a perform in you program and using your internal table
perform f_total using it_itab. (Actual parameter table Itab is internal table its defined above)
<b>FORM f_total using fp_itab</b> (formal parameter fp_itab does not have anytype defined so we define table type for this and the FORM is written as see below)
<b>FORM f_total using fp_itab type ty_t_itab.</b>
Hope you understand,
reard if useful
regards,
nazeer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.