2013 Apr 04 3:47 PM
Hi experts,
Any pointers for docx file to PDF file conversion within ABAP?
XSL-FO and OTF conversions are not retaining the document formatting & hence looking for alternative options within abap ( without using third party webservices ).
Any suggestions?
2013 Apr 04 5:09 PM
Hello Asif,
Please refer below notes. You may get some help.
Note 1777018 - Office integration - MS Word 2007/2010 with Content Controls
Note 1707600 - Office Integration for MS Word 2007/2010
Regards,
Sudhir Kothavale.
2013 Apr 05 2:42 PM
Hello Sudhir,
Thanks for reply. I checked the Notes, they are more relevant to MS word formatting. I am getting a nicely formatted word document . It is DOCX file and I need to convert it to PDF within BADI so that the preview output would show PDF instead of DOCX ( currently).
DOCX(Xstring) is converted to PDF(Xstring) but the PDF file generated doesnot retain the original formattin of DOCX like bullets, numbering, hyperlink, indentation, overlapping lines.. etc.. its all messed up.
Any suggestion on the conversion to retain formatting?
2013 Apr 05 3:15 PM
hello,
well if I may ask how are you planning to show the preview in BAdI ? Just trying to see what the complete requirement is before providing any solution.
regards
swanand
2013 Apr 05 4:09 PM
Preview would be shown in the webdynpro application (office Control element ) which is displaying the file.. docx as well as PDF file, but in case of PDF the transformation is messing up the formatting and the content of pdf is messed and all docx formatting is lost.
Requirement is simple as such standard SAP is providing the well formatted docx (xstring ) file and we only need to convert ( in BADI ) it to pdf ( xstring ) along with retaining same formatting and look and pass it back to webdynpro application to display the preview ( PDF preview ) .
I hope it is clear...
2013 Apr 08 6:36 PM
2013 Jun 10 3:51 PM
Update for anyone looking similar solution:
So far No perfectly working solution in ABAP without using 3rd party s/w.
As of now trying to use 3rd party web services ( Adobe LC or Share point ). Both serves the purpose.
2014 Mar 14 9:46 AM
Hi, there is a FM RSPO_DOCXPS_CREATEPDF. However we do not have it in our system. Has anybody found a solution to this without using a 3rd party?
2014 Mar 14 2:32 PM
Hi Jozef,
Thanks for reply but I tried this FM but didn't serve the purpose. Can't recall now correctly but it was raising some exception when i tried. You can go ahead and try it out to see if it serves your purpose though it is not yet released by SAP.
It might be available in higher Net weaver system & not in others. I had it in SRM system.
Give it a try and let us know your feedback.
PS: For our issue, SAP suggested to use Adobe LiveCycle (3rd party - separate license) & we implemented that to solve our purpose.
2014 Jul 02 9:22 AM
Hi there,
I have a similar issue, trying to convert a Word Doc into PDF.
While using the function RSPO_DOCXPS_CREATEPDF the exepction
"Error: Merge parts of the docx" occurs
Unfortunately there's absolutely no documentation on this function. Has anybody any idea what this exception means?
Thanks!
2014 Jul 02 9:34 AM
message directly from SAP stated that they do not continue the development with this FM and it should be considered obsolete. We workarounded this requirement by creating a separate java webservice, which is capable of doing quite a good job. Now we are planning in changing the solution to implement a separate server (Tomcat maybe) with Open office installed and a service will run there, which will probably solve the issue permanently.
2014 Jul 02 2:55 PM
implementing a separate server for few documents seems to be a little oversized for us 😉
But Thanks for your reply!
2014 Jul 03 7:09 AM
it is almost for every requirement, which is based on a work (conversion) with an open format. Shame on SAP it does not provide a clear solution.