cancel
Showing results for 
Search instead for 
Did you mean: 

SAPscript - 2 WRITE_FORMs consecutively

0 Kudos

Hello All,

in the following example of an SAP program there are the same WRITE_FORMs, the last with type 'TOP'.

How does it work? Is the last WRITE_FORM overwriting the first if type TOP is possible?

In the print there is only one header line printed out.

FORM title_position.

CALL FUNCTION 'WRITE_FORM' "First header

EXPORTING element = 'ITEM_HEADER'

EXCEPTIONS OTHERS = 1.

IF sy-subrc NE 0.

PERFORM protocol_update.

ENDIF.

CALL FUNCTION 'WRITE_FORM' "Activate header

EXPORTING element = 'ITEM_HEADER'

type = 'TOP'

EXCEPTIONS OTHERS = 1.

IF sy-subrc NE 0.

PERFORM protocol_update.

ENDIF.

ENDFORM. " title_position

Thanks for your answers!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196280
Active Contributor
0 Kudos

Type defines "Window area in MAIN window"

Regards,

SaiRam