<?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: Excel into Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-into-table/m-p/6090763#M1358673</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;Refer to the given code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lv_filetype(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_gui_sep TYPE c,&lt;/P&gt;&lt;P&gt;        lv_file_name TYPE string.&lt;/P&gt;&lt;P&gt;  lv_filetype = 'ASC'.&lt;/P&gt;&lt;P&gt;  lv_gui_sep = 'X'.&lt;/P&gt;&lt;P&gt;  lv_file_name = pa_dfile.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FM call to upload file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = lv_filetype&lt;/P&gt;&lt;P&gt;      has_field_separator     = lv_gui_sep&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = gi_zhralcon_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use data assignment in internal table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT gi_zhralcon_file INTO wa_zhralcon_file.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zallco = wa_zhralcon_file-zallco.&lt;/P&gt;&lt;P&gt;    CONCATENATE wa_zhralcon_file-aedtm+6(4)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-aedtm+3(2)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-aedtm(2)&lt;/P&gt;&lt;P&gt;     INTO wa_zhralcon-aedtm.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-pernr = wa_zhralcon_file-pernr.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zprjcd = wa_zhralcon_file-zprjcd.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zact = wa_zhralcon_file-zact.&lt;/P&gt;&lt;P&gt;    CONCATENATE wa_zhralcon_file-begda+6(4)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-begda+3(2)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-begda(2)&lt;/P&gt;&lt;P&gt;     INTO wa_zhralcon-begda.&lt;/P&gt;&lt;P&gt;    CONCATENATE wa_zhralcon_file-endda+6(4)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-endda+3(2)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-endda(2)&lt;/P&gt;&lt;P&gt;     INTO wa_zhralcon-endda.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zperc = wa_zhralcon_file-zperc.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zrepto = wa_zhralcon_file-zrepto.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zpost = wa_zhralcon_file-zpost.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zrolcd = wa_zhralcon_file-zrolcd.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zallfr = wa_zhralcon_file-zallfr.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zrefno = wa_zhralcon_file-zrefno.&lt;/P&gt;&lt;P&gt;    APPEND wa_zhralcon TO gi_zhralcon.&lt;/P&gt;&lt;P&gt;    CLEAR wa_zhralcon.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Sep 2009 04:18:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-02T04:18:18Z</dc:date>
    <item>
      <title>Excel into Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-into-table/m-p/6090761#M1358671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your support till now and now i am again in need of all ur help!..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue : I have a Excel file which is not of a defined structure . I displayed it on the container directly using &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 = gc_control
       error   = gc_error.

   call method gc_control-&amp;gt;init_control
     exporting
       r3_application_name = 'EXCEL CONTAINER'
       inplace_enabled     = 'X'
       parent              = gc_cont230
     importing
       error               = gc_error.


   call method gc_control-&amp;gt;get_document_proxy
     exporting
       document_type  = soi_doctype_excel_sheet
     importing
       document_proxy = gc_document
       error          = gc_error.

   call method gc_document-&amp;gt;open_document
     exporting
       document_title = gs_mccext-zdesc
       document_url   = gs_mccext-path
       open_inplace   = 'X'
     importing
       error          = gc_error.

   call method gc_document-&amp;gt;get_spreadsheet_interface
     exporting
       no_flush        = ' '
     importing
       error           = gc_error
       sheet_interface = gc_spreadsheet.

   call method gc_spreadsheet-&amp;gt;get_sheets
     exporting
       no_flush = ' '
     importing
       sheets   = gt_sheets
       error    = gc_error.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till here its fine .. however when ever i am displaying it it pops up a window that the format ~SAP{   }.tmp is in a different format than specified by the file extension... and gives a option  YES or NO .. once i go for YES .. the excel file is displayed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW CAN I REMOVE THIS POP-UP ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other senario is ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That i should not display the excel in container ,...however i need to read the values in the excel ...i could able to achieve this tooo however the pop-up is giving me the problem ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you all please help me in resolving this issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chandu Reddy Sunkari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: chandu reddy sunkari on Sep 1, 2009 1:29 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: chandu reddy sunkari on Sep 1, 2009 2:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 11:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-into-table/m-p/6090761#M1358671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T11:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excel into Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-into-table/m-p/6090762#M1358672</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;Check out the below FM:&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;FAA_FILE_UPLOAD_EXCEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They will upload the data into internal table with the separator specified. Hence you can later split the string at the separator(into an internal table) and process in your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2009 13:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-into-table/m-p/6090762#M1358672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-01T13:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Excel into Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-into-table/m-p/6090763#M1358673</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;Refer to the given code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: lv_filetype(10) TYPE c,&lt;/P&gt;&lt;P&gt;        lv_gui_sep TYPE c,&lt;/P&gt;&lt;P&gt;        lv_file_name TYPE string.&lt;/P&gt;&lt;P&gt;  lv_filetype = 'ASC'.&lt;/P&gt;&lt;P&gt;  lv_gui_sep = 'X'.&lt;/P&gt;&lt;P&gt;  lv_file_name = pa_dfile.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FM call to upload file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = lv_filetype&lt;/P&gt;&lt;P&gt;      has_field_separator     = lv_gui_sep&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = gi_zhralcon_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use data assignment in internal table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT gi_zhralcon_file INTO wa_zhralcon_file.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zallco = wa_zhralcon_file-zallco.&lt;/P&gt;&lt;P&gt;    CONCATENATE wa_zhralcon_file-aedtm+6(4)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-aedtm+3(2)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-aedtm(2)&lt;/P&gt;&lt;P&gt;     INTO wa_zhralcon-aedtm.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-pernr = wa_zhralcon_file-pernr.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zprjcd = wa_zhralcon_file-zprjcd.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zact = wa_zhralcon_file-zact.&lt;/P&gt;&lt;P&gt;    CONCATENATE wa_zhralcon_file-begda+6(4)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-begda+3(2)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-begda(2)&lt;/P&gt;&lt;P&gt;     INTO wa_zhralcon-begda.&lt;/P&gt;&lt;P&gt;    CONCATENATE wa_zhralcon_file-endda+6(4)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-endda+3(2)&lt;/P&gt;&lt;P&gt;                wa_zhralcon_file-endda(2)&lt;/P&gt;&lt;P&gt;     INTO wa_zhralcon-endda.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zperc = wa_zhralcon_file-zperc.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zrepto = wa_zhralcon_file-zrepto.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zpost = wa_zhralcon_file-zpost.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zrolcd = wa_zhralcon_file-zrolcd.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zallfr = wa_zhralcon_file-zallfr.&lt;/P&gt;&lt;P&gt;    wa_zhralcon-zrefno = wa_zhralcon_file-zrefno.&lt;/P&gt;&lt;P&gt;    APPEND wa_zhralcon TO gi_zhralcon.&lt;/P&gt;&lt;P&gt;    CLEAR wa_zhralcon.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 04:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-into-table/m-p/6090763#M1358673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-02T04:18:18Z</dc:date>
    </item>
  </channel>
</rss>

