In a variable window of a SAP Script, I need to print call an element multiple times from the print program and print a variable value.
Loop at itab.
var1 = itab-f1.
CALL FUNCTION 'WRITE_FORM'
window = p_window
element = p_element
function = c_append
element = 1
window = 2.
But the problem happening with this is - since for a variable window, elements are not starightaway printed when write_form is called, but before close_form is called, only the latest value of var1 (i.e. for the last row of itab) is getting printed
in all cases instaed of the different values.
Could anyone please suggest a workaround for this.