Skip to Content
0
Jan 15, 2008 at 10:23 PM

Diference between DATA: and TYPES: on internal tables

24 Views

Hi people,

Can somebody help me. I wanna know whats the diference between DATA: and TYPES: on internal tables

and whitch has the best performance, here is a eg:

*********************************************************************

DATA: BEGIN OF ti_sbook occurs 0,

carrid LIKE sbook-carrid,

fldate LIKE sbook-fldate,

customid LIKE sbook-customid,

loccuram LIKE sbook-loccuram,

END OF ti_sbook.

*********************************************************************

AND

*********************************************************************

TYPES: BEGIN OF ti_sbook ,

carrid LIKE sbook-carrid,

fldate LIKE sbook-fldate,

customid LIKE sbook-customid,

loccuram LIKE sbook-loccuram,

END OF ti_sbook.

DATA: gw_sbook TYPE TABLE OF ti_sbook,

gs_sbook TYPE ti_sbook.

*********************************************************************

witch of both types is better?

thanks.