<?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: gui_upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716641#M313216</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 give me the data decalration for the table "in" in this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 13:24:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-02T13:24:23Z</dc:date>
    <item>
      <title>gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716636#M313211</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 am using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_RECUPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Selection screen&lt;/P&gt;&lt;P&gt;*The parameter p_file is for filename and obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block 1 with frame title text-t01 .&lt;/P&gt;&lt;P&gt;parameters p_file type file_table-filename obligatory.&lt;/P&gt;&lt;P&gt;parameters p_sessn type apqi-groupid default 'RECURRING_PAYMENTS'.&lt;/P&gt;&lt;P&gt;selection-screen end of block 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : t_sel_file type filetable,&lt;/P&gt;&lt;P&gt;       w_return_code type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*type declaration&lt;/P&gt;&lt;P&gt;types : begin of ty_datain,&lt;/P&gt;&lt;P&gt;          first(255) type c,&lt;/P&gt;&lt;P&gt;          second(255) type c,&lt;/P&gt;&lt;P&gt;        end of ty_datain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  t_datain type table of ty_datain with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*selection screen vaidations&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    WINDOW_TITLE            = 'Select File for upload'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DEFAULT_EXTENSION       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DEFAULT_FILENAME        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FILE_FILTER             = '*.xls'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WITH_ENCODING           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   INITIAL_DIRECTORY       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MULTISELECTION          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    FILE_TABLE              = t_sel_file&lt;/P&gt;&lt;P&gt;    RC                      = w_return_code&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   USER_ACTION             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILE_ENCODING           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FILE_OPEN_DIALOG_FAILED = 1&lt;/P&gt;&lt;P&gt;    CNTL_ERROR              = 2&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI            = 3&lt;/P&gt;&lt;P&gt;    NOT_SUPPORTED_BY_GUI    = 4&lt;/P&gt;&lt;P&gt;    others                  = 5&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*at selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc EQ 0 and&lt;/P&gt;&lt;P&gt;   w_return_code EQ 1.&lt;/P&gt;&lt;P&gt;read table t_sel_file index 1 into p_file.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  message 'Error occured while uploading file' type 'I'.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_sessn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_sessn is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_sessn = 'RECURRING_PAYMENTS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data lv_file type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move p_file to lv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = lv_file&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = t_datain&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISK_FULL                     = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 17&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to upload a excel file.&lt;/P&gt;&lt;P&gt;but the uploaded file is not correctly formatted in the table t_datain, when i see the contents in debug mode. can any body tell me what is wrong wiht my code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narendiran Rathinavelu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716636#M313211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716637#M313212</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;chk with this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ttab,&lt;/P&gt;&lt;P&gt;       rec(1000) type c,&lt;/P&gt;&lt;P&gt;       end of ttab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;types: begin of tdat,&lt;/P&gt;&lt;P&gt;       fld1(10) type c,&lt;/P&gt;&lt;P&gt;       fld2(10) type c,&lt;/P&gt;&lt;P&gt;       fld3(10) type c,&lt;/P&gt;&lt;P&gt;       end of tdat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: itab type table of ttab with header line.&lt;/P&gt;&lt;P&gt;data: idat type table of tdat with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: file_str type string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameters: p_file type localfile.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;  call function 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            static    = 'X'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            file_name = p_file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  file_str = p_file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            filename                = file_str&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            data_tab                = itab&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            file_open_error         = 1&lt;/P&gt;&lt;P&gt;            file_read_error         = 2&lt;/P&gt;&lt;P&gt;            no_batch                = 3&lt;/P&gt;&lt;P&gt;            gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;            invalid_type            = 5&lt;/P&gt;&lt;P&gt;            no_authority            = 6&lt;/P&gt;&lt;P&gt;            unknown_error           = 7&lt;/P&gt;&lt;P&gt;            bad_data_format         = 8&lt;/P&gt;&lt;P&gt;            header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;            separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;            header_too_long         = 11&lt;/P&gt;&lt;P&gt;            unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;            access_denied           = 13&lt;/P&gt;&lt;P&gt;            dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;            disk_full               = 15&lt;/P&gt;&lt;P&gt;            dp_timeout              = 16&lt;/P&gt;&lt;P&gt;            others                  = 17.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;delete itab index 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    clear idat.&lt;/P&gt;&lt;P&gt;    split itab-rec at cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/P&gt;&lt;P&gt;                          into idat-fld1&lt;/P&gt;&lt;P&gt;                               idat-fld2&lt;/P&gt;&lt;P&gt;                               idat-fld3.&lt;/P&gt;&lt;P&gt;    append idat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at idat.&lt;/P&gt;&lt;P&gt;    write:/ idat-fld1, idat-fld2, idat-fld3.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716637#M313212</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-02T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716638#M313213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for excel gui_upload will not be giving correct result, you can go for 'ALSM_EXCEL_TO_INTERNAL_TABLE'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716638#M313213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T12:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716639#M313214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendiran,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two function modules you can use: (1) 'ALSM_EXCEL_TO_INTERNAL_TABLE' or (2) 'KCD_EXCEL_OLE_TO_INT'. Very similar but the first function module (ASLM) used in for foreground processing.&lt;/P&gt;&lt;P&gt;parameters: p_fname  LIKE rlgrap-filename&lt;/P&gt;&lt;P&gt;              default 'C:\temp\cpv25000.xls' obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form upload_one_sheet.&lt;/P&gt;&lt;P&gt;Data: st_col type i value 1,&lt;/P&gt;&lt;P&gt;      st_row type i value 1,&lt;/P&gt;&lt;P&gt;      en_col type i value 90,&lt;/P&gt;&lt;P&gt;      en_row type i value 9999.     "max number of lines&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            FILENAME                = p_fname&lt;/P&gt;&lt;P&gt;            I_BEGIN_COL             = st_col&lt;/P&gt;&lt;P&gt;            I_BEGIN_ROW             = st_row&lt;/P&gt;&lt;P&gt;            I_END_COL               = en_col&lt;/P&gt;&lt;P&gt;            I_END_ROW               = en_row&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            INTERN                  = in&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            INCONSISTENT_PARAMETERS = 1&lt;/P&gt;&lt;P&gt;            UPLOAD_OLE              = 2&lt;/P&gt;&lt;P&gt;            OTHERS                  = 3.&lt;/P&gt;&lt;P&gt;  case sy-subrc.&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;P&gt;    when 1. message e016(38) with 'Inconsistent parameters'.&lt;/P&gt;&lt;P&gt;    when 2. message e016(38) with 'Error upload OLE'.&lt;/P&gt;&lt;P&gt;    when others. message e016(38) with 'Error'.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD will allow you to upload directly into an internal table if it has the same layout as the upload file. Is that what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Internal table to receive excel data&lt;/P&gt;&lt;P&gt;Data: Begin of in occurs 0.&lt;/P&gt;&lt;P&gt;include structure ALSMEX_TABLINE.&lt;/P&gt;&lt;P&gt;Data: End of in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*internal table with result (your 3 field-table)&lt;/P&gt;&lt;P&gt;Data: begin of ex occurs 0,&lt;/P&gt;&lt;P&gt;            f01(32), "max&lt;/P&gt;&lt;P&gt;                 f02(32),&lt;/P&gt;&lt;P&gt;                 f03(32),&lt;/P&gt;&lt;P&gt;                .....&lt;/P&gt;&lt;P&gt;      End of ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: fname(10).&lt;/P&gt;&lt;P&gt;Field-symbols: &amp;lt;F&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;so now you call the function to receive the data from EXCEL into table IN&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;after that:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Fname = 'EX-F'.&lt;/P&gt;&lt;P&gt;Loop at in.     "per column one line entry&lt;/P&gt;&lt;P&gt;    at new row. Clear: ex. Endat.&lt;/P&gt;&lt;P&gt;    move in-col&lt;EM&gt;2 to fname&lt;/EM&gt;4(2).&lt;/P&gt;&lt;P&gt;    assign (fname) to &amp;lt;F&amp;gt;.&lt;/P&gt;&lt;P&gt;    move in-value  to &amp;lt;F&amp;gt;.&lt;/P&gt;&lt;P&gt;    at end of row.&lt;/P&gt;&lt;P&gt;       append ex2.&lt;/P&gt;&lt;P&gt;       Clear: ex.&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;endloop.       &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;result: your table EX is filled matching your EXCEL sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works flexible for whatever number of column you will receive (in my example max 99).&lt;/P&gt;&lt;P&gt;Hope that gives you a start...&lt;/P&gt;&lt;P&gt;No u cant "directly" upload an excel sheet ... you will have to have some&lt;/P&gt;&lt;P&gt;ABAP that reads the Excel sheet directly or reads a delimited file (save as&lt;/P&gt;&lt;P&gt;delimited from Excel) ... into an itab, then massage the itab data a bit,&lt;/P&gt;&lt;P&gt;then do an update to the table you want or create a BDC to update the&lt;/P&gt;&lt;P&gt;table(s) .. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you are talking about some type of conversion where the "direct&lt;/P&gt;&lt;P&gt;input" abilities (data transfer workbench - txn SXDA) of SAP should be used,&lt;/P&gt;&lt;P&gt;then you can take that route - like updating SAP Material Master etc ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this Helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716639#M313214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716640#M313215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try to save the excel file in a de-limited format and then try to upload the file,&lt;/P&gt;&lt;P&gt;hope it should work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 12:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716640#M313215</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2006-11-02T12:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716641#M313216</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 give me the data decalration for the table "in" in this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 13:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716641#M313216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: gui_upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716642#M313217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the post above......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


*Internal table to receive excel data
Data: Begin of in occurs 0.
       include structure ALSMEX_TABLINE.
Data: End of in.


&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 13:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/1716642#M313217</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-02T13:39:45Z</dc:date>
    </item>
  </channel>
</rss>

