Skip to Content
0
Former Member
Nov 16, 2006 at 08:43 AM

URGENT

17 Views

DATA : ITC TYPE ITCPO,

OTF LIKE TABLE OF ITCOO,

DOC LIKE TABLE OF DOCS,

TLINES LIKE TABLE OF TLINE,

BIN_FILESIZE TYPE I.

ITC-TDGETOTF = 'X'.

***In close form we have to specify this*

CALL FUNCTION 'CLOSE_FORM'.

TABLES

OTFDATA = OTF.

CALL FUNCTION 'CONVERT_OTF_2_PDF'

IMPORTING

BIN_FILESIZE = BIN_FILESIZE

TABLES

OTF = OTF

DOCTAB_ARCHIVE = DOC

LINES = TLINES.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = BIN_FILESIZE

FILENAME = 'C:\TESTPDF.PDF'

FILETYPE = 'BIN'

TABLES

DATA_TAB = tlines.

I am using this code to convert sap script to pdf but it gives the dump and the error is 'OTF END COMMAD // IS MISSING'.