Upload and modify OpenXML documents via RAP App in SAP BTP ABAP Environment

Dear SAP Community, 

I recently came across a client requirement in which I had to generate MS Word documents based on a specific data set. The “old” transaction was made up of lots of Dynpro coding, includes with several thousand lines – the typical SAP Developer nightmare so-to-say. Since the transaction had to be made available as a Fiori based application, much of the old coding didn’t work anymore as some GUI functionality was not available in the web browser (e.g. Javabean Exceptions…).

In the process of fixing the issue, I wanted to find out how the modification of OpenXML documents cloud be realized with a modern approach. Moreover, I wanted to implement this app with a clean core approach, using Cloud-released development objects only. 

After having done some coding and some research on what classes I could use to achieve my goal, I was surprised how easy it was to upload and populate an MS Word (.docx) invoice templates with my RAP app. 

Long story short, here is how I did it:

P.S.: I hope you enjoy this blog and if you have any feedback, feel free to post it in the comments.

 

 

​ Dear SAP Community, I recently came across a client requirement in which I had to generate MS Word documents based on a specific data set. The “old” transaction was made up of lots of Dynpro coding, includes with several thousand lines – the typical SAP Developer nightmare so-to-say. Since the transaction had to be made available as a Fiori based application, much of the old coding didn’t work anymore as some GUI functionality was not available in the web browser (e.g. Javabean Exceptions…).In the process of fixing the issue, I wanted to find out how the modification of OpenXML documents cloud be realized with a modern approach. Moreover, I wanted to implement this app with a clean core approach, using Cloud-released development objects only. After having done some coding and some research on what classes I could use to achieve my goal, I was surprised how easy it was to upload and populate an MS Word (.docx) invoice templates with my RAP app. Long story short, here is how I did it:P.S.: I hope you enjoy this blog and if you have any feedback, feel free to post it in the comments.    Read More Technology Blogs by Members articles 

#SAP

#SAPTechnologyblog

You May Also Like

More From Author

+ There are no comments

Add yours