04-04-2008 11:55 AM
what is the meaning of this???
FORM horizontal_line.
CLEAR x_lines_printed.
PERFORM position_frame CHANGING psfc_frame.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'HORIZ_LINE'
window = 'MAIN'.
ENDFORM.
04-04-2008 11:59 AM
Hi,
FORM horizontal_line. --> This is the start of the subroutine
CLEAR x_lines_printed. --> This clears the variable called x_lines_printed
PERFORM position_frame CHANGING psfc_frame. --> This calls a subroutine called position_frame that probably changes a variable called psfc_frame
CALL FUNCTION 'WRITE_FORM' --> This function module adds the element HORIZ_LINE of the MAIN window to the SAPscript output
EXPORTING
element = 'HORIZ_LINE'
window = 'MAIN'.
ENDFORM.
Presumably prior to this code a SAPscript is started.
Regards,
Nick
04-04-2008 12:13 PM
Hi,
And in the Function Module Exporting Element is there that is for loop to run the loop in layout and type is BODY and window is Main.
Thanks
Ganesh
04-04-2008 12:09 PM
Hi,
This is a drivier program code, i.e. for form/script layout we have to write a program in se38 , write_form Function Module is for to write the values in output.
Thanks
Ganesh