Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

can call to 'WRITE_FORM' three times

Hi abappers. happy year

Why i can call to 'WRITE_FORM' two times, but i can´t call to 'WRITE_FORM' other times.

it leaves the next error:

"WRITE_FORM não é permitido, porque falta

START_FORM"

-

-


CALL FUNCTION 'OPEN_FORM'

EXPORTING

form = 'ZNOVALE_OST_PRU1'

device = 'PRINTER'

dialog = 'X'

language = SY-LANGU

EXCEPTIONS

canceled = 1

device = 2

form = 3

options = 4

unclosed = 5.

IF SY-SUBRC NE 0.

WRITE /'error al abrir formulario'.

STOP.

ENDIF.

loop at T_DATA1.

CALL FUNCTION 'START_FORM'

EXPORTING

startpage = 'FIRST'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'CABECERA'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'.

continue

-

-


I want put the next code:

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'FIRMA'.

-

-


continue

CALL FUNCTION 'END_FORM'.

endloop.

CALL FUNCTION 'CLOSE_FORM'.

Former Member
Not what you were looking for? View more on this topic or Ask a question