Skip to Content

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

Script Error

Hi all,

I want the o/p of the repot on the script i have written the foll.code but still its going dump when i press F3 from the script page.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = 'PRINTER'

dialog = 'X'

form = 'YPO_BOOK'

language = sy-langu

EXCEPTIONS

canceled = 1.

CALL FUNCTION 'START_FORM'

EXPORTING

startpage = 'FIRST'.

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

command = 'FIRST'.

***some queries**

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'HEAD'

window = 'HEADER'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'MAIN'

window = 'MAIN'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'

element = 'NEW_PAGE'.

CALL FUNCTION 'END_FORM'.

CALL FUNCTION 'CLOSE_FORM'.

**************************************************************************************

thanx....

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