Skip to Content
0
Former Member
Mar 26, 2009 at 04:57 AM

Data declaration

38 Views

Hi Guru's,

Please advice which is da best amoung the below said.

Normally I feel more comfortable using the second one is there any problem using the second one??

Please let me know..

1.

TYPES: BEGIN OF typ_item,
matnr TYPE matnr,
werks TYPE werks_d,
END OF typ_item.
DATA: gt_item TYPE TABLE OF typ_item,
gs_item TYPE typ_item,
gt_where TYPE TABLE OF string.

2.

DATA: begin of itab occurs 0,
             matnr like mara-matnr,
             werks like marc-werks,
          end of itab.

3.

TYPES : BEGIN OF typ_mara,
                 matnr type mara-matnr,
                werks type marc-werks,
            end of typ_mara.
data: typ_mara type table of mara with header line.

Thanks

Raj