cancel
Showing results for 
Search instead for 
Did you mean: 

Binary to OTF Conversion

0 Kudos

Hello,

Is there any function module to convert binary data to OTF format.....

My Requirement is i am uploading PDF file in the Program Now when i will execute the program print popup should get appeared.

Its a normal report progaram....i am not using smartforms or sapscripts.

any help would be appreciated..

Accepted Solutions (0)

Answers (2)

Answers (2)

aidan_black
Active Contributor
0 Kudos

Hi,

If you implement SAP note #1280877, then you should be able to transfer the already generated PDF data via function module CONVERT_OTF. There is no need to convert to OTF.

Regards,

Aidan

former_member252723
Participant
0 Kudos

Try Using the Below F.M

call function 'PRINT_TEXT'

exporting

device = 'PRINTER'

dialog = ' '

header = header

options = options

importing

result = result

tables

lines = i_lines

otfdata = i_otf.

  • convert to PDF

call function 'CONVERT_OTF'

exporting

format = 'PDF'

importing

bin_filesize = 132

tables

otf = i_otf

lines = i_lines

0 Kudos

i have already tried ths function module....i am getting the UNKNOWN Exception....because i have to pass HEADER info right?

thats d problm...i am having the data in binary format...now quest is how to convert ths data to OTF format