Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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