Application Development and Automation 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: 
Read only

OTF format to PDF format conversion

Former Member
0 Likes
618

Hi

I faced a problem while working upgradation project i.e 4.6c to ecc6.0. Here the function module is same both in 4.6c and ECC6.0 *SX_OBJECT_CONVERT_OTF_PDF*

But in ECC6.0 the function module doesn't contain any TABLES AND IMPORT statement as per 4.6c.

insted of this function module is their any function module for converting data from OTF format to PDF format.

mail me :[email protected]

Hi

I faced a problem while working upgradation project i.e 4.6c to ecc6.0. Here the function module is same both in 4.6c and ECC6.0 *SX_OBJECT_CONVERT_OTF_PDF*

But in ECC6.0 the function module doesn't contain any TABLES AND IMPORT statement as per 4.6c.

insted of this function module is their any function module for converting data from OTF format to PDF format.

mail me :[email protected]

2 REPLIES 2
Read only

Former Member
0 Likes
526

1. Use FM CONVERT_OTF_2_PDF.

U can also use the following FM:

2. CONVERT_OTFSPOOLJOB_2_PDF : To convert otf spooljob to PDF

Read only

Former Member
0 Likes
526

hiiiiiiii

DATA: BEGIN OF PDF_OUTPUT OCCURS 0.

INCLUDE STRUCTURE TLINE.

DATA: END OF PDF_OUTPUT.

SPOOL_NR = SY-SPONO.

CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'

EXPORTING

SRC_SPOOLID = SPOOL_NR

IMPORTING

PDF_BYTECOUNT = FILESIZE

TABLES

PDF = PDF_OUTPUT.

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

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

EXPORTING

BIN_FILESIZE = FILESIZE

FILENAME = 'File path'

FILETYPE = 'BIN'

CHANGING

DATA_TAB = PDF_OUTPUT[].