Application Development 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: 

Convert PDF to OTF

0 Kudos
636

Hi All,

I need to send invoices by FAX. Currently we have no lisense to send a PDF by FAX, and we need to get invoice data from archive system. But the invoice data which get from archive system is PDF format.

The question is how could i convert PDF data in internal table to OTF?

I have searched SDN forums, and it seems no workable solution.

Thanks very much!

Best Regards,

Ivy

9 REPLIES 9

Former Member
0 Kudos
347

Hi,

Please find the bellow link to Convert PDF to OTF.

Thanks & Regards,

Goutam Kolluru.

Former Member
0 Kudos
347

when you read PDF data from archive the content will be bin content. you can directly use that to send mail.. no need of converting to OTF

0 Kudos
347

Does it work even customer has no license to sent PDF attachments out by FAX? Please advise.. Thanks!

0 Kudos
347

why dont you try once... we also will try once.. but if its a license issue then you shouldnt be..

0 Kudos
347

I tried it in DRA system, and it works fine, but DRA system is able to send PDF attachment out. The problem is PRA has no the license, and i have no authorization to logon PRA system. I tried to ask customer to try it with SAP Business Workplace, but they are unable to generate in PRA system. So there is why i want to double confirm with you. Thanks a lot....

If it couldn't be sent out with BIN attachments, how could i convert PDF to OTF? Or any other way to solve it except buy license?

0 Kudos
347

Is there anyone could help me? Thanks!

0 Kudos
347

Hi friend,

Its simple, just specify the type as different in the same function module.

IE in the Same convert to OTF function module just specify the Format as ASCII or BIN instead of PDF.

So you can achieve the result.

I am sure by changing the type we will getting the output in the format only not in PDF format. If you have any queries please try in your test system and then see.

If you face any queries in it please revert back to me i will help you.

Thanks,

Sri Hari

0 Kudos
347

I think no possible,

I wonder why no one has this answer.

for me is very strange that SAP does not give possibility to manage PDF file.

I never found an answer hon how to convert a PDF fil in OTF or PCL !!!

Is terrible if SAP does not give this possibility....

Former Member
0 Kudos
347

Use the following Function Module for Converting OTF data into PDF:

CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'

EXPORTING

FORMAT_SRC = 'OTF'

FORMAT_DST = 'PDF'

DEVTYPE = 'PRINTER'

CHANGING

TRANSFER_BIN = ' '

CONTENT_TXT = t_otf " OTF Data

CONTENT_BIN = t_objhex " PDF content

OBJHEAD = t_objhead

LEN = w_length

.

Hope this is helpful.

Edited by: Ravi aspari on Jan 10, 2012 10:02 AM