cancel
Showing results for 
Search instead for 
Did you mean: 

Data into table type !

sachin_soni
Active Participant
0 Kudos
44

hi all !

Can we load data into a table type?,if yes then how

thanks and regards,

sachin soni

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member588853
Active Contributor
0 Kudos

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

sachin_soni
Active Participant
0 Kudos

thanks nazeer for prompt ans,

to be more specific

DATA: BOOKINGS TYPE TY_BOOKINGS.

can i load data into bookings ?

Former Member
0 Kudos

Hi,

you can not add records in ur example i.e. Bookings becase this will create a single line record as work area and not set of records as internal table.

Jogdand M B

sachin_soni
Active Participant
0 Kudos

thx for ur reply