Skip to Content
0
Former Member
Feb 01, 2007 at 08:59 AM

How to initialize all fields of a structure

1150 Views

Hi experts,

I have the following structure :

BEGIN OF t_struc,

schichtdatum(10) ,

schicht(1) ,

ap(15) ,

prod_mat_1(15) ,

prod_mat_1_stck(4) ,

prod_mat_1_nacharbeit(4) ,

prod_mat_1_hub_soll(4) ,

prod_mat_1_hub_ist(4) ,

prod_mat_1_zeit(4) ,

prod_mat_2(15) ,

prod_mat_2_stck(4) ,

prod_mat_2_nacharbeit(4) ,

prod_mat_2_hub_soll(4) ,

prod_mat_2_hub_ist(4) ,

prod_mat_2_zeit(4) ,

mat_1(4) ,

mat_2(4) ,

mat_3(4) ,

mat_4(4) ,

mat_5(4) ,

mat_6(4) ,

pers_1(4) ,

pers_2(4) ,

pers_3(4) ,

pers_4(4) ,

pers_5(4) ,

pers_6(4) ,

anl_1(4) ,

anl_2(4) ,

anl_3(4) ,

anl_4(4) ,

anl_5(4) ,

anl_6(4) ,

anl_7(4) ,

wzg_1(4) ,

wzg_2(4) ,

wzg_3(4) ,

wzg_4(4) ,

wzg_5(4) ,

wzg_6(4) ,

wzg_7(4) ,

wzg_8(4) ,

END OF t_struc.

I want to initialize all fields with the value ' 0 '. How can I do ?

Thanks !

Greetz, David