LOOP AT t_bseg ASSIGNING FIELD-SYMBOL(<fs_bseg>) where hkont = <fs_cuentas>–saknr.
LOOP AT t_grupo2 INTO DATA(wa_grupo2) WHERE bukrs = p_bukrs AND gjahr = p_ejer AND belnr = <fs_bseg>–belnr AND buzei = <fs_bseg>–buzei.
lv_monto_gp2 = lv_monto_gp2 + wa_grupo2–bwshb.
ENDLOOP.
ENDLOOP.