<?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: ole in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549145#M580236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my requirement is that there is a word document,where there is a value as &amp;amp;word&amp;amp; and this should be replaced by the value passed from sap.Is this possible.If possible how,Could you please give the code.this is done using ole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2007 08:51:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-09T08:51:46Z</dc:date>
    <item>
      <title>ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549140#M580231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the first time i am using ole.How do i use the functions.what is actually ole application and what are the fuctions which are called using the handler?how is it that the word file accessed???&lt;/P&gt;&lt;P&gt;Please do help me out.Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549140#M580231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T06:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549141#M580232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this 1.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/59/ae3c98488f11d189490000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/59/ae3c98488f11d189490000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549141#M580232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T06:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549142#M580233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through its Open Object Interface, ABAP supports the OLE2 Automation technique. Desktop applications that provide their functionality in the form of an OLE2 Automation Server (such as Excel or WinWord) can be thus be integrated into R/3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All applications controlled by ABAP must be registered in R/3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following ABAP key words control the applications:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CREATE OBJECT &lt;/P&gt;&lt;P&gt;SET PROPERTY &lt;/P&gt;&lt;P&gt;GET PROPERTY &lt;/P&gt;&lt;P&gt;CALL METHOD &lt;/P&gt;&lt;P&gt;FREE OBJECT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;When called from an ABAP program, the SAPGUI acts as OLE client, and the desktop application as the OLE server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while working with ole, you must &amp;lt;b&amp;gt;include OLE2iNCL&amp;lt;/b&amp;gt; program and define each object of type &amp;lt;b&amp;gt;OLE2_OBJECT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;for more information follow these links.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/59/ae3c98488f11d189490000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/59/ae3c98488f11d189490000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample program on excel&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/72/90fd343603c95ee10000009b38f844/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/72/90fd343603c95ee10000009b38f844/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549142#M580233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T06:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549143#M580234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how do i get to know what are the functions available for the application used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549143#M580234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T06:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549144#M580235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to Se38 . In Menu ENVIRONMENT&lt;DEL&gt;&amp;gt;EXAMPLES&lt;/DEL&gt;&amp;gt;CONTROLs EXAMPLES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get some of the examples of OLE Examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some ex: are as follows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Se38 check these&lt;/P&gt;&lt;P&gt;1. SAPRDEMODOCUMENTCONTAINER&lt;/P&gt;&lt;P&gt;2.RSDEMO01&lt;/P&gt;&lt;P&gt;3. RSOLETT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 07:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549144#M580235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T07:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549145#M580236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my requirement is that there is a word document,where there is a value as &amp;amp;word&amp;amp; and this should be replaced by the value passed from sap.Is this possible.If possible how,Could you please give the code.this is done using ole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 08:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549145#M580236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T08:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549146#M580237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi nisha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am alos having the same requirement.&lt;/P&gt;&lt;P&gt;Can you plz send me a sample code @ doshivinod@gmail.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be gr8 help for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 09:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549146#M580237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T09:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: ole</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549147#M580238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
* word declarations
  DATA: WORD             TYPE OLE2_OBJECT.
  DATA: DOCUMENTS        TYPE OLE2_OBJECT.
  DATA: ACTDOC           TYPE OLE2_OBJECT.
  DATA: SELECTION        TYPE OLE2_OBJECT.
  DATA: FIND             TYPE OLE2_OBJECT.

  CREATE OBJECT WORD 'WORD.APPLICATION' .
  IF SY-SUBRC NE 0 .
    MESSAGE S000(SU) WITH 'Error while creating OLE object!'.
    LEAVE PROGRAM .
  ENDIF .

*--setting object's visibility property
  SET PROPERTY OF WORD 'visible' = '1' .

  GET PROPERTY OF WORD 'documents' = DOCUMENTS.
  CALL METHOD OF DOCUMENTS 'Open'
    EXPORTING
      #1 = 'C:file.doc'. " your current doc

*--Getting active document handle
  GET PROPERTY OF WORD 'activedocument' = ACTDOC .

*--Getting applications handle
  GET PROPERTY OF ACTDOC 'application' = APPLICATION .
  GET PROPERTY OF APPLICATION 'Selection' = SELECTION.

* find
  GET PROPERTY OF SELECTION 'find' = FIND.
  SET PROPERTY OF FIND 'Text' = '&amp;amp;word&amp;amp;'.

  do 10 times.
    CALL METHOD OF FIND 'Execute'.

    CALL METHOD OF selection 'TypeText'
      EXPORTING
      #1 = 'some value'.
  enddo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Aug 2007 06:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole/m-p/2549147#M580238</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-08-25T06:32:21Z</dc:date>
    </item>
  </channel>
</rss>

