SAPSCRIPT: loop in a not main window
I have created an text element in a NO main window:
SA Objasnienia do jednostek miar: /E VRKME_TE / &I_VRKME-VRKME& - &I_VRKME-MSEHT&
This is the code of the control program that writes the content of the IT:
LOOP AT i_vrkme. CALL FUNCTION 'WRITE_FORM' EXPORTING WINDOW = 'VRKME' ELEMENT = 'VRKME_TE' EXCEPTIONS OTHERS = 1. ENDLOOP.
The problem is that only appears the last line of the IT in the form. If IT is empty, appears the header. I think that each call to WRITE_FORM overrides the last one.
How could I solve this problem?