<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in word document creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-word-document-creation/m-p/7166325#M1516544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it by own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just call method in PAI this will solve the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 11:11:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-23T11:11:31Z</dc:date>
    <item>
      <title>Problem in word document creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-word-document-creation/m-p/7166324#M1516543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating document by using the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the document is getting created and opened, but immediately it is getting closed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want this document to be open until i close. How can i suceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL METHOD c_oi_container_control_creator=&amp;gt;get_container_control
      IMPORTING
        control = gi_cont_control.

* Initialiaze container control Mandatory
    CALL METHOD gi_cont_control-&amp;gt;init_control
      EXPORTING
        inplace_enabled          = ' '
        inplace_scroll_documents = 'X'
        no_flush                 = 'X'
        r3_application_name      = 'TEST'
        register_on_close_event  = 'X'
        register_on_custom_event = 'X'
        parent                   = gcl_custom_container
        name                     = 'TESTING'
        autoalign                = 'X'
      EXCEPTIONS
        javabeannotsupported     = 1
        OTHERS                   = 2.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

* Get the reference of the document proxy
    CALL METHOD gi_cont_control-&amp;gt;get_document_proxy
      EXPORTING
        document_type  = 'Word.Document.8'
      IMPORTING
        document_proxy = gi_document
        error          = gi_error.

    CREATE OBJECT gcl_event_doc.

    SET HANDLER gcl_event_doc-&amp;gt;on_close_doc FOR gi_document.

    CALL METHOD gi_document-&amp;gt;create_document.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 06:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-word-document-creation/m-p/7166324#M1516543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T06:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in word document creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-word-document-creation/m-p/7166325#M1516544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it by own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just call method in PAI this will solve the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 11:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-word-document-creation/m-p/7166325#M1516544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-23T11:11:31Z</dc:date>
    </item>
  </channel>
</rss>

