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

Input values for CONVERT_OTF_2_PDF function module

Former Member
0 Likes
1,658

Hi All ,

I am using this function module 'CONVERT_OTF_2_PDF ' in my report(which will convert smartform to PDF) .

Can anyone please let me knw what are the input value should I pass to test

this function .('CONVERT_OTF_2_PDF)

OTF

DOCTAB_ARCHIVE

LINES

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
759

Hi,

TYPES: l_ty_tab_objbin TYPE solisti1 OCCURS 0.

data: l_otf TYPE STANDARD TABLE OF itcoo.

DATA: l_objbin TYPE l_ty_tab_objbin.

DATA: l_docs TYPE STANDARD TABLE OF docs.

data: i_line TYPE STANDARD TABLE OF tline.

CALL FUNCTION 'CONVERT_OTF_2_PDF'

  • EXPORTING

  • USE_OTF_MC_CMD = 'X'

  • ARCHIVE_INDEX =

  • IMPORTING

  • BIN_FILESIZE =

TABLES

otf = l_otf

doctab_archive = l_docs

lines = i_line

EXCEPTIONS

ERR_CONV_NOT_POSSIBLE = 1

ERR_OTF_MC_NOENDMARKER = 2

OTHERS = 3

.

Regards

2 REPLIES 2
Read only

Former Member
0 Likes
759

Refer to report RSTXPDFT2

reward points if helpful

Read only

Former Member
0 Likes
760

Hi,

TYPES: l_ty_tab_objbin TYPE solisti1 OCCURS 0.

data: l_otf TYPE STANDARD TABLE OF itcoo.

DATA: l_objbin TYPE l_ty_tab_objbin.

DATA: l_docs TYPE STANDARD TABLE OF docs.

data: i_line TYPE STANDARD TABLE OF tline.

CALL FUNCTION 'CONVERT_OTF_2_PDF'

  • EXPORTING

  • USE_OTF_MC_CMD = 'X'

  • ARCHIVE_INDEX =

  • IMPORTING

  • BIN_FILESIZE =

TABLES

otf = l_otf

doctab_archive = l_docs

lines = i_line

EXCEPTIONS

ERR_CONV_NOT_POSSIBLE = 1

ERR_OTF_MC_NOENDMARKER = 2

OTHERS = 3

.

Regards