Skip to Content
author's profile photo Former Member
Former Member

How to export Image from a REPORT to MS word document?

hi all,

I am using SAP Desktop Office Integration interfaces to export data from server and store in a MS Word document, Kindly explain me following things:

1. How can I export a image from SAP server to MS word document.

2. Can I also do the formating (BOLD, ITALICS, UNDERLINE etc) of the data in the MS word document being created.

Please reply, it is very urgent.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 16, 2008 at 11:46 AM

    I think you are not able to export a picture from SAP server. But you could use a Word template containing already the picture.

    To change appearance of text, you could call a macro that will do the job. The macro will be part of the Word template.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      use following code to store any kind of document in the SAP server.

      CREATE OBJECT o_document_set.

      MOVE: '1' TO wa_signature-doc_count,

      '1' TO wa_files-doc_count.

      • 'C:\SAPPCADM' to wa_files-directory,

      • 'BDSPresentation.PPT' to wa_files-filename.

      APPEND wa_signature TO i_signature.

      APPEND wa_files TO i_files.

      CALL METHOD o_document_set->create_with_files

      EXPORTING

      classname = i_classname

      classtype = 'OT'

      CHANGING

      object_key = i_object_key

      files = i_files

      signature = i_signature.

      Thanks

      Yogesh Gupta

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.