Skip to Content

Create and Fill a Powerpoint out of a Web Dynpro

Hi Experts,

I have a Web Dynpro View with various content (Textfields, Tables, Interactive Forms) and the requirement to export the whole content from that View in a automatic generated Powerpoint with several slides.

As first I tried it with OLE. Here its possible to create the whole ppt in abap. But OLE only works in Reports and not in WebDynpros.

Than I found How to - Add Custom XML Parts to PowerPoint. As result I get a emtpy powerpoint with the predefined template( that I had uploaded in the Mime-Repository). When I open the pptx with Winrar there is a ppt folder with the customXML data. How can implement the data in the powerpoint slides?

I hope somebody can help me or knows another way to create and fill up a powerpoint out of a WebDynpro.

Greetings

Thimo

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 14, 2017 at 12:44 PM

    I solved it that way:

    As first, prepare the powerpoint file. Set Placeholders with dummy keywords (or dummy Images) on the slides and save the file as a XML Presentation. Import the Powerpoint Template in the Mime Respository.

    Convert the file in a string, search for the keywords and replace them with the Data from the Web Dynpro.

    Than convert it back in a xstring.

    Use the Method attach_file_to_response from the class cl_wd_runtime_services to save the modified Powerpoint as a xml.

    Thats my Rookie solution...if someone has another Idea or solution feel free to share it :)

    Greetz

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.