<?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 opening excel sheet while program execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637785#M1283201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to implement a requirment wherein i will be doing a validation for various fields of a excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now i am showing a POP up with all the error log found in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to open the uploaded excel sheet after the POP so that user can correct the various fields and save the excel sheet while the program is executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2009 05:26:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-08T05:26:45Z</dc:date>
    <item>
      <title>opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637785#M1283201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to implement a requirment wherein i will be doing a validation for various fields of a excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now i am showing a POP up with all the error log found in the excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to open the uploaded excel sheet after the POP so that user can correct the various fields and save the excel sheet while the program is executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637785#M1283201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637786#M1283202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637786#M1283202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637787#M1283203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya ,&lt;/P&gt;&lt;P&gt;check the Function Module  &lt;STRONG&gt;WS_EXECUTE&lt;/STRONG&gt; to open the &lt;STRONG&gt;.XLS&lt;/STRONG&gt; file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;interface parameter Program&lt;/STRONG&gt; specify the full file path (of the .XLS file)&lt;/P&gt;&lt;P&gt;and execute it to open the specified file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637787#M1283203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637788#M1283204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;As because the &lt;STRONG&gt;WS_EXECUTE&lt;/STRONG&gt;  is a obsolete FM , you can use the method &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXECUTE of class cl_gui_frontend_services&lt;/STRONG&gt; as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;execute
  EXPORTING
    DOCUMENT               = 'C:\EXCEL\TEST.XLS'  " Full file path with type
*    APPLICATION            =
*    PARAMETER              =
*    DEFAULT_DIRECTORY      =
*    MAXIMIZED              =
*    MINIMIZED              =
*    SYNCHRONOUS            =
*    OPERATION              = 'OPEN'
  EXCEPTIONS
    CNTL_ERROR             = 1
    ERROR_NO_GUI           = 2
    BAD_PARAMETER          = 3
    FILE_NOT_FOUND         = 4
    PATH_NOT_FOUND         = 5
    FILE_EXTENSION_UNKNOWN = 6
    ERROR_EXECUTE_FAILED   = 7
    SYNCHRONOUS_FAILED     = 8
    NOT_SUPPORTED_BY_GUI   = 9
    others                 = 10
        .
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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637788#M1283204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637789#M1283205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi aditya&lt;/P&gt;&lt;P&gt;u can use OLE for this.. &lt;/P&gt;&lt;P&gt;Upload the excel in a itab .&lt;/P&gt;&lt;P&gt;carry out ur validation and dump all the errorenous records in another itab2 . &lt;/P&gt;&lt;P&gt;then display the itab2 in the form of a Xcel using OLE with one extra column .. displaying all the error message for the particular record .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Renu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637789#M1283205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637790#M1283206</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;Is it possible to know whether user has saved any changes in the excel .&lt;/P&gt;&lt;P&gt;So that i can re-execute my function of uploading the changed data in an internal table again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your earlier reply!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637790#M1283206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637791#M1283207</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;Can you please explian in more details.&lt;/P&gt;&lt;P&gt;As i am quite new to the concept of OLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637791#M1283207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637792#M1283208</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;I thick you can not track whether the file has been changed or not.&lt;/P&gt;&lt;P&gt;So after closing the file again you need to check whether the file have error or not&lt;/P&gt;&lt;P&gt;by &lt;STRONG&gt;re-execute&lt;/STRONG&gt; your function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637792#M1283208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: opening excel sheet while program execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637793#M1283209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya ,&lt;/P&gt;&lt;P&gt;let me once more clarify with ur requirements .&lt;/P&gt;&lt;P&gt;User is uploading an excel sheet.&lt;/P&gt;&lt;P&gt;U doing validations on the records and getting the error in records.&lt;/P&gt;&lt;P&gt;Displaying the uploaded excel sheet to user to rectify the errors.&lt;/P&gt;&lt;P&gt;and then update the databse with the correct records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for the above &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use WS_upload ,GUI_Upload  FM for  uploading the excel sheet in itab.&lt;/P&gt;&lt;P&gt;using this itab ,Dynamically add one more column for the errors.&lt;/P&gt;&lt;P&gt;Refer :&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1154264"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Display records in an editable ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_01 &lt;/P&gt;&lt;P&gt;BCALV_EDIT_02 &lt;/P&gt;&lt;P&gt;BCALV_EDIT_03 &lt;/P&gt;&lt;P&gt;BCALV_EDIT_04 &lt;/P&gt;&lt;P&gt;BCALV_FULLSCREEN_GRID_EDIT &lt;/P&gt;&lt;P&gt;BCALV_GRID_EDIT &lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_EDIT_01 &lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_EDITABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see this&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvscr.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvscr.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then update the database &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Renu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Renu Gusain on May 8, 2009 8:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 06:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/opening-excel-sheet-while-program-execution/m-p/5637793#M1283209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T06:31:32Z</dc:date>
    </item>
  </channel>
</rss>

