Skip to Content
0
Former Member
Mar 03, 2011 at 12:46 PM

Start routine spelling errors

34 Views

Hi,

I'm trying to write a start routine in BW in order to:

Get an internal table from an ODS table with same structure, containing the fields 'incidencia', 'criticidad', horas' .

Fill the internal table.

Make a loop at that internal table and make a sustraction depending on diferent if statements. After that append to internal table.

The thing is i'm having diferent spelling errors that i cannot solve by myself. Can anybody help me with this routine?

Types: begin of itabtype,

incidencia type /BIC/OIZNROINC,
criticidad type /BIC/OIZCRITIC,
horas type /BIC/OIZQHORAS,
difhoras type /BIC/OIZDIFHS,

END OF itabtype.


data : itab type standard table of itabtype
with key incidencia,
wa_itab like line of itab.


DATA: wa_SOURCE_PACKAGE type _ty_s_SC_1.


Loop at SOURCE_PACKAGE into wa_SOURCE_PACKAGE.

move wa_SOURCE_PACKAGE-/BIC/ZNROINC to wa_itab-incidencia.
move wa_SOURCE_PACKAGE-/BIC/ZCRITIC to wa_itab-criticidad.
move wa_SOURCE_PACKAGE-/BIC/ZQHORAS to wa_itab-horas.
move wa_SOURCE_PACKAGE-/BIC/ZDIFHS to wa_itab-difhoras.

If wa_itab-criticidad EQ 'Alta' and wa_itab-horas GE 8.

wa_itab-difhoras = wa_itab-horas - 8.

elseif

wa_itab-criticidad EQ 'Media' and wa_itab-horas GE 12.

wa_itab-difhoras = wa_itab-horas - 12.


wa_itab-criticidad EQ 'Baja' and wa_itab-horas GE 12.

wa_itab-difhoras = wa_itab-horas - 12.

else.

wa_itab-difhoras EQ ''.

endif.


append wa_itab to itab.

endloop.

Thanks,

Diego