<?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: Updating or Modifying using OLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765726#M1305652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;another question,&lt;/P&gt;&lt;P&gt; will the template be available from SAP DMS, or will it be on presentation/application server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is in SAP DMS, then using &lt;STRONG&gt;CVAPI_DOC_VIEW&lt;/STRONG&gt; you can create a replica of it in the SAP working directory, use OLE objects to read/update values in the cell and SAVE it as a new copy ata given location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the file is on the presentation server then you can make a copy of it in SAp working directory, again make use of SAP OLE objects to read/update values in the cell and SAVE it as a new copy ata given location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* START THE EXCEL APPLICATION
  CREATE OBJECT excel 'EXCEL.APPLICATION'.
  CALL METHOD OF excel 'WORKBOOKS' = workbooks.
  SET PROPERTY OF excel  'VISIBLE' = 0.
  CALL METHOD OF workbooks 'OPEN' EXPORTING
            #1 = filep.

  CALL METHOD OF excel 'Worksheets' = sheet
   EXPORTING #1 = 1.
  CALL METHOD OF sheet 'Activate'.
*  FREE  OBJECT sheet.

* Fill the requried cells
  CALL METHOD OF excel 'CELLS' = cells EXPORTING #1 = 1 #2 = 31.
  SET PROPERTY OF cells 'VALUE' = l_sign_path.
  FREE OBJECT cells.

  GET PROPERTY OF excel 'ACTIVESHEET' = sheet.
  CALL METHOD OF sheet 'SAVEAS' EXPORTING
       #1 = g_file_dest
       #2 = 1.


  CALL METHOD OF workbooks 'CLOSE'.
  CALL METHOD OF excel 'QUIT'.
  FREE OBJECT excel.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2009 09:23:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-29T09:23:23Z</dc:date>
    <item>
      <title>Updating or Modifying using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765722#M1305648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;        I have a requirement where i need to modify the existing word/excel template with some values. I know this can be done by uploading, modifying and then downloading the document. But i want to know how to achieve this using OLE concepts ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijayalakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765722#M1305648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Updating or Modifying using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765723#M1305649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai use methods of ole2_object&lt;/P&gt;&lt;P&gt;and u can search on it   an du will get help on it&lt;/P&gt;&lt;P&gt;m.a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765723#M1305649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating or Modifying using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765724#M1305650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Can you be mnore specific as to what changes you are to make. &lt;/P&gt;&lt;P&gt;like changes values or images... etc ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mebbe I can help in a bit more then&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765724#M1305650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating or Modifying using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765725#M1305651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I will be changing values in the already existing templates. My template will have some checkpoints and i need to read the program to ensure that the checkpoints are fulfilled or not. Based on that i ll update the checkpoint with a yes or no value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijayalakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765725#M1305651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T09:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Updating or Modifying using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765726#M1305652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;another question,&lt;/P&gt;&lt;P&gt; will the template be available from SAP DMS, or will it be on presentation/application server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is in SAP DMS, then using &lt;STRONG&gt;CVAPI_DOC_VIEW&lt;/STRONG&gt; you can create a replica of it in the SAP working directory, use OLE objects to read/update values in the cell and SAVE it as a new copy ata given location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the file is on the presentation server then you can make a copy of it in SAp working directory, again make use of SAP OLE objects to read/update values in the cell and SAVE it as a new copy ata given location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* START THE EXCEL APPLICATION
  CREATE OBJECT excel 'EXCEL.APPLICATION'.
  CALL METHOD OF excel 'WORKBOOKS' = workbooks.
  SET PROPERTY OF excel  'VISIBLE' = 0.
  CALL METHOD OF workbooks 'OPEN' EXPORTING
            #1 = filep.

  CALL METHOD OF excel 'Worksheets' = sheet
   EXPORTING #1 = 1.
  CALL METHOD OF sheet 'Activate'.
*  FREE  OBJECT sheet.

* Fill the requried cells
  CALL METHOD OF excel 'CELLS' = cells EXPORTING #1 = 1 #2 = 31.
  SET PROPERTY OF cells 'VALUE' = l_sign_path.
  FREE OBJECT cells.

  GET PROPERTY OF excel 'ACTIVESHEET' = sheet.
  CALL METHOD OF sheet 'SAVEAS' EXPORTING
       #1 = g_file_dest
       #2 = 1.


  CALL METHOD OF workbooks 'CLOSE'.
  CALL METHOD OF excel 'QUIT'.
  FREE OBJECT excel.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765726#M1305652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T09:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Updating or Modifying using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765727#M1305653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gary. Is there any way to retrieve the document from application server directly ? Or i have to use front end services to bring that in presentation and do the remaining stuff ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijayalakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765727#M1305653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T09:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Updating or Modifying using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765728#M1305654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,if I am right, OLE does not work on Application server.&lt;/P&gt;&lt;P&gt;You will need to copy the file from app server to pres server.&lt;/P&gt;&lt;P&gt;You can try to see what happens in CG3Y or chk F&amp;lt; &lt;STRONG&gt;C13Z_FILE_DOWNLOAD_ASCII&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 09:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-or-modifying-using-ole/m-p/5765728#M1305654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T09:43:15Z</dc:date>
    </item>
  </channel>
</rss>

