06-04-2007 4:49 PM
Hello,
I am currently searchin for a way to convert several Word documents into a single PDF file. The original Word documents are attachments to a One Order object in CRM 5.0, and I want to create an action that merges them into one file, converts this into a PDF and sends it out via email as the email attachment.
I was wondering if there are function modules that can convert MS Word into PDF directly or via something intermediate, e.g. spool format, and if it was possible to merge them into just one file.
I guess if I somehow get them in spool format I can simply glue the pages onto each other - but is it possible to read the Word files?
Regards
Thomas
06-05-2007 10:18 AM
Hi Thomas,
it should work with FM CONVERT_OTFSPOOLJOB_2_PDF, just make sure that all Word documents are in one spool job. An example report is RSTXPDFT4.
Hope that help's!
Viele Grüße
Nicola
06-05-2007 10:18 AM
Hi Thomas,
it should work with FM CONVERT_OTFSPOOLJOB_2_PDF, just make sure that all Word documents are in one spool job. An example report is RSTXPDFT4.
Hope that help's!
Viele Grüße
Nicola
06-05-2007 10:33 AM
Hi Nicola,
thanks for the answer. It seems though as if getting the Word documents into a spool job (and let's not overcomplicate this, so even one successfully converted document is a win) is the hard part.
At the moment I do not see any threads in the SDN where people have successfully managed to read in a Word .doc and "convert" it into a spool file by whatever means, but if you know a way how to do this I would greatly appreciate it!
Grüsse zurück!
Thomas
06-05-2007 11:37 AM
Hi Thomas,
could you just give me an idea on how you create the word document? For example is it a converted sapscript, an attachment in SAP Office or are you using an upload first?
Regards
Nicola
06-05-2007 12:20 PM
Hi Nicola,
the documents already exist in the SAP system as attachments to orders. They can get into the CRM system as downloads from the R/3 as material descriptions or can be manually created by the users and attached to the order.
I then want to send out all (or some) attachments of one of these orders from within the order via an action, but company policy mandates that there may be only one attachment per mail, and it must be in PDF format.
Regards
Thomas
06-05-2007 12:59 PM
Hmmm - that's a tricky one!
But check report RSPO0068; this report converts single Word-documents and send it to spool. You've already got the FM to convert a spool file to PDF and the combination of both should solve the problem.
I know that SAP has developed an external document converter (BC-XDC) but I don't know exactly what release is necessary to work with that tool.
Viel Glück!
Nicola
06-05-2007 1:01 PM
06-05-2007 1:13 PM
Hi Nicola,
thanks a lot for pointing out that report! I will see how I can use that code in there for my own purposes!
Regards
Thomas
06-05-2007 9:13 PM
Hi Thomas,
I checked a lot for this requirement. Using third party tool, we can convert the word document to PDF. If you installed Adobe PDF writer in your machine, then this can be easily resolved.
Regards,
Karthik.
Message was edited by:
ksutharsanam
03-27-2014 10:55 AM