Logic Help Required.
I am having an Itab of type /SAPSLL/PRN_I_GEN_IF_S.
If CCNGN are same, i want to add fields staval & weigro and have all of them into one record only.
I have this logic there but running into dump.
LOOP AT is_prn-i_gen INTO wa_i_gen.
MOVE : wa_i_gen TO l_i_gen.
AT END OF ccngn.
l_i_gen-staval = wa_i_gen-staval.
l_i_gen-weigro = wa_i_gen-weigro.
APPEND l_i_gen TO g_w_i_gen.
Pl sugest me.