Hello everyone,
we need to do a cascaded loop in one of our endroutines.
I tried the following:
LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
IF <RESULT_FIELDS>-FISCPER3 = '12'.
temp_gl = <RESULT_FIELDS>-/BIC/ZKMKPGL.
temp_year = <RESULT_FIELDS>-FISCYEAR.
LOOP AT RESULT_PACKAGE ASSIGNING <myResult_fields>.
IF <myResult_fields>-FISCYEAR = temp_year AND
<myResult_fields>-FISCPER3 < '12'.
<myResult_fields>-/BIC/ZKMKPGL12 = temp_gl.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
The problem is now that the records are only scanned according to FISCPER3 and FISCYEAR, but now concerning the key. How to implement a Loop-Up / Comparison of the records concerning the Key of the result fields in the easiest way?
Waiting for your answer,
Best regards,
bivision