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 MS Word (.doc) document to pdf document

Former Member
0 Kudos

Hi All,

My requirement is that I need to convert MS Word (.doc) document to pdf document.

Is there any standard SAP function module.

Pls guide me.

Rishi

7 REPLIES 7

matt
Active Contributor
0 Kudos

There are plenty of third party tools you could install to do the job. I'm not aware of anything built into SAP.

Former Member
0 Kudos

I dont understand why you want to use SAP to convert word file to PDF file.


1. Search in google
2. www.win2pdf.com - this may be useful 

Still if you want to use SAP to do that then follow the below procedure.


   1. Upload the data from word to internal table using the function module : GUI_UPLOAD. 
   2. Use spool :
              1) RSPO_OPEN_SPOOLREQUEST - Open spool request
              2) RSPO_WRITE_SPOOLREQUEST - Write to spool request
              3) RSPO_CLOSE_SPOOLREQUEST - Close spool request
   3. use the function module CONVERT_ABAPSPOOLJOB_2_PDF to convert spool in to PDF format. 

Regards,

~Satya

0 Kudos

Hello Satya,

Thanks so much for ur kind reply.

But I am not able to work according to it . Problem is

1) I am not able to write the internal table data (in which word doc has uploaded using gui_uploaded)

to the Spool created using FM RSPO_WRITE_SPOOLREQUEST .

2) I created one dummy spool which contains output of report and now when I passed this spool to FM,

CONVERT_ABAPSPOOLJOB_2_PDF, a corrupted PDF file created.

Could u pls guide me in detail or else any reference program for this scenario.

Rishi

Former Member
0 Kudos

This message was moderated.

0 Kudos

Hello Experts,

Thanks for reply.

The standard program RSTXPDFT4 is really good to make PDF file for Spool no.

But I am still On hold.

I am having one word document, and I am having path for that word file.

Ok, now how to make spool for the contents of this word document.

Is there a standard report or FM, to whom if I pass the file path and it creates spool for that or

if I use gui_upload to upload word doc to internal table, then

how to use FM RSPO_WRITE_SPOOLREQUEST to send the internal table containing word document contents to pass as message to spool created using FM RSPO_OPEN_SPOOLREQUEST

Rishi

Former Member

Former Member
0 Kudos

Hi Rishi,

Did you resolve this Problem.

i have the same requirment. Could you please tell me how did you resolve this requirment.

Could you send me your Coding please on this email-adress "mishak-at-web.de"

Thanks

mishak