<?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: Function module to upload the data from Internal table to  excel file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432201#M824417</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;try this program and in program change my path to ur path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of i_header occurs 0,&lt;/P&gt;&lt;P&gt;     field(30) type c,&lt;/P&gt;&lt;P&gt;     end of i_header,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;     matnr type makt-matnr,&lt;/P&gt;&lt;P&gt;     spras type makt-spras,&lt;/P&gt;&lt;P&gt;     maktx type makt-maktx,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr spras maktx from makt into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;REFRESH i_header.&lt;/P&gt;&lt;P&gt;  i_header-field = 'Material number'.&lt;/P&gt;&lt;P&gt;  append i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_header-field = 'Language'.&lt;/P&gt;&lt;P&gt;  append i_header.&lt;/P&gt;&lt;P&gt;  i_header-field = 'Description'.&lt;/P&gt;&lt;P&gt;  append i_header.&lt;/P&gt;&lt;P&gt;  clear i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                     = 'D:\prsr\3.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;   data_tab                      = itab&lt;/P&gt;&lt;P&gt;   FIELDNAMES                    = i_header&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   OTHERS                        = 0&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if its useful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2008 05:34:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-13T05:34:24Z</dc:date>
    <item>
      <title>Function module to upload the data from Internal table to  excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432197#M824413</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;Please Give me  the Function module to Upload the data from Internal table To Excel sheet(Output File)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 05:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432197#M824413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T05:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload the data from Internal table to  excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432198#M824414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you mean "download" data from SAP to presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried &lt;STRONG&gt;GUI_DOWNLOAD&lt;/STRONG&gt;&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>Wed, 13 Feb 2008 05:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432198#M824414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T05:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload the data from Internal table to  excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432199#M824415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONCATENATE p_dfile&lt;/P&gt;&lt;P&gt;              '/'&lt;/P&gt;&lt;P&gt;              c_tofile&lt;/P&gt;&lt;P&gt;              sy-datum+6(2)&lt;/P&gt;&lt;P&gt;              sy-datum+4(2)&lt;/P&gt;&lt;P&gt;              sy-datum+2(2)&lt;/P&gt;&lt;P&gt;              sy-uzeit+0(2)&lt;/P&gt;&lt;P&gt;              sy-uzeit+4(2)&lt;/P&gt;&lt;P&gt;              '.XLS'&lt;/P&gt;&lt;P&gt;              INTO l_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      filename                      = l_file&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  APPEND                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     write_field_separator         = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TRUNC_TRAILING_BLANKS         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRITE_LF                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  COL_SELECT_MASK               = ' '&lt;/P&gt;&lt;/LI&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;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;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = it_final&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   file_write_error              = 1&lt;/P&gt;&lt;P&gt;   no_batch                      = 2&lt;/P&gt;&lt;P&gt;   gui_refuse_filetransfer       = 3&lt;/P&gt;&lt;P&gt;   invalid_type                  = 4&lt;/P&gt;&lt;P&gt;   no_authority                  = 5&lt;/P&gt;&lt;P&gt;   unknown_error                 = 6&lt;/P&gt;&lt;P&gt;   header_not_allowed            = 7&lt;/P&gt;&lt;P&gt;   separator_not_allowed         = 8&lt;/P&gt;&lt;P&gt;   filesize_not_allowed          = 9&lt;/P&gt;&lt;P&gt;   header_too_long               = 10&lt;/P&gt;&lt;P&gt;   dp_error_create               = 11&lt;/P&gt;&lt;P&gt;   dp_error_send                 = 12&lt;/P&gt;&lt;P&gt;   dp_error_write                = 13&lt;/P&gt;&lt;P&gt;   unknown_dp_error              = 14&lt;/P&gt;&lt;P&gt;   access_denied                 = 15&lt;/P&gt;&lt;P&gt;   dp_out_of_memory              = 16&lt;/P&gt;&lt;P&gt;   disk_full                     = 17&lt;/P&gt;&lt;P&gt;   dp_timeout                    = 18&lt;/P&gt;&lt;P&gt;   file_not_found                = 19&lt;/P&gt;&lt;P&gt;   dataprovider_exception        = 20&lt;/P&gt;&lt;P&gt;   control_flush_error           = 21&lt;/P&gt;&lt;P&gt;   OTHERS                        = 22&lt;/P&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;    MESSAGE i000(zmamic) WITH 'Error downloading file'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE s000(zmamic) WITH 'File downloaded'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 05:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432199#M824415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T05:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload the data from Internal table to  excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432200#M824416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following code will help u to splve the problem.&lt;/P&gt;&lt;P&gt;have a look,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: VBAK,VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_VBAK OCCURS 0,&lt;/P&gt;&lt;P&gt;VBELN LIKE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;ERDAT LIKE VBAK-ERDAT,&lt;/P&gt;&lt;P&gt;ERNAM LIKE VBAK-ERNAM,&lt;/P&gt;&lt;P&gt;AUDAT LIKE VBAK-AUDAT,&lt;/P&gt;&lt;P&gt;VBTYP LIKE VBAK-VBTYP,&lt;/P&gt;&lt;P&gt;END OF I_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_VBAP OCCURS 0,&lt;/P&gt;&lt;P&gt;VBELN LIKE VBAP-VBELN,&lt;/P&gt;&lt;P&gt;POSNR LIKE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;MATNR LIKE VBAP-MATNR,&lt;/P&gt;&lt;P&gt;CHARG LIKE VBAP-CHARG,&lt;/P&gt;&lt;P&gt;MATKL LIKE VBAP-MATKL,&lt;/P&gt;&lt;P&gt;END OF I_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_VBAK OCCURS 0,&lt;/P&gt;&lt;P&gt;VBELN LIKE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;ERDAT LIKE VBAK-ERDAT,&lt;/P&gt;&lt;P&gt;ERNAM LIKE VBAK-ERNAM,&lt;/P&gt;&lt;P&gt;AUDAT LIKE VBAK-AUDAT,&lt;/P&gt;&lt;P&gt;VBTYP LIKE VBAK-VBTYP,&lt;/P&gt;&lt;P&gt;POSNR LIKE VBAP-POSNR,&lt;/P&gt;&lt;P&gt;MATNR LIKE VBAP-MATNR,&lt;/P&gt;&lt;P&gt;CHARG LIKE VBAP-CHARG,&lt;/P&gt;&lt;P&gt;MATKL LIKE VBAP-MATKL,&lt;/P&gt;&lt;P&gt;END OF IT_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT VBELN ERDAT ERNAM AUDAT VBTYP FROM VBAK INTO TABLE I_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT VBELN POSNR MATNR CHARG MATKL FROM VBAP INTO TABLE I_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT: I_VBAK BY VBELN,I_VBAP BY VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE I_VBAP WITH KEY VBELN = I_VBAK-VBELN BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE I_VBAK-VBELN TO IT_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;MOVE I_VBAK-ERDAT TO IT_VBAK-ERDAT.&lt;/P&gt;&lt;P&gt;MOVE I_VBAK-ERNAM TO IT_VBAK-ERNAM.&lt;/P&gt;&lt;P&gt;MOVE I_VBAK-AUDAT TO IT_VBAK-AUDAT.&lt;/P&gt;&lt;P&gt;MOVE I_VBAK-VBTYP TO IT_VBAK-VBTYP.&lt;/P&gt;&lt;P&gt;MOVE I_VBAP-POSNR TO IT_VBAK-POSNR.&lt;/P&gt;&lt;P&gt;MOVE I_VBAP-MATNR TO IT_VBAK-MATNR.&lt;/P&gt;&lt;P&gt;MOVE I_VBAP-CHARG TO IT_VBAK-CHARG.&lt;/P&gt;&lt;P&gt;MOVE I_VBAP-MATKL TO IT_VBAK-MATKL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND IT_VBAK.&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BIN_FILESIZE = &lt;/P&gt;&lt;P&gt;FILENAME = 'D:\C5.DOC'&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC' "Separate Columns by Tabs in Case of ASCII Download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND = ' ' &lt;/P&gt;&lt;P&gt;WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER = '00' &lt;/P&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS = ' ' &lt;/P&gt;&lt;P&gt;WRITE_LF = 'X' &lt;/P&gt;&lt;P&gt;COL_SELECT = ' ' &lt;/P&gt;&lt;P&gt;COL_SELECT_MASK = ' ' &lt;/P&gt;&lt;P&gt;DAT_MODE = ' ' &lt;/P&gt;&lt;P&gt;CONFIRM_OVERWRITE = 'X' "Overwrite The File Only After &lt;/P&gt;&lt;P&gt;Confirmation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO_AUTH_CHECK = ' ' &lt;/P&gt;&lt;P&gt;CODEPAGE = ' ' &lt;/P&gt;&lt;P&gt;IGNORE_CERR = ABAP_TRUE &lt;/P&gt;&lt;P&gt;REPLACEMENT = '#' &lt;/P&gt;&lt;P&gt;WRITE_BOM = ' ' &lt;/P&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS_EOL = 'X' &lt;/P&gt;&lt;P&gt;WK1_N_FORMAT = ' ' &lt;/P&gt;&lt;P&gt;WK1_N_SIZE = ' ' &lt;/P&gt;&lt;P&gt;WK1_T_FORMAT = ' ' &lt;/P&gt;&lt;P&gt;WK1_T_SIZE = ' ' &lt;/P&gt;&lt;P&gt;WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FILELENGTH = &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = IT_VBAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDNAMES = &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FILE_WRITE_ERROR = 1 &lt;/P&gt;&lt;P&gt;NO_BATCH = 2 &lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 3 &lt;/P&gt;&lt;P&gt;INVALID_TYPE = 4 &lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 5 &lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 6 &lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED = 7 &lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 8 &lt;/P&gt;&lt;P&gt;FILESIZE_NOT_ALLOWED = 9 &lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 10 &lt;/P&gt;&lt;P&gt;DP_ERROR_CREATE = 11 &lt;/P&gt;&lt;P&gt;DP_ERROR_SEND = 12 &lt;/P&gt;&lt;P&gt;DP_ERROR_WRITE = 13 &lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 14 &lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 15 &lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 16 &lt;/P&gt;&lt;P&gt;DISK_FULL = 17 &lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 18 &lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND = 19 &lt;/P&gt;&lt;P&gt;DATAPROVIDER_EXCEPTION = 20 &lt;/P&gt;&lt;P&gt;CONTROL_FLUSH_ERROR = 21 &lt;/P&gt;&lt;P&gt;OTHERS = 22 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 05:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432200#M824416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T05:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload the data from Internal table to  excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432201#M824417</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;try this program and in program change my path to ur path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of i_header occurs 0,&lt;/P&gt;&lt;P&gt;     field(30) type c,&lt;/P&gt;&lt;P&gt;     end of i_header,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;     matnr type makt-matnr,&lt;/P&gt;&lt;P&gt;     spras type makt-spras,&lt;/P&gt;&lt;P&gt;     maktx type makt-maktx,&lt;/P&gt;&lt;P&gt;     end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr spras maktx from makt into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;REFRESH i_header.&lt;/P&gt;&lt;P&gt;  i_header-field = 'Material number'.&lt;/P&gt;&lt;P&gt;  append i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_header-field = 'Language'.&lt;/P&gt;&lt;P&gt;  append i_header.&lt;/P&gt;&lt;P&gt;  i_header-field = 'Description'.&lt;/P&gt;&lt;P&gt;  append i_header.&lt;/P&gt;&lt;P&gt;  clear i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                     = 'D:\prsr\3.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;   data_tab                      = itab&lt;/P&gt;&lt;P&gt;   FIELDNAMES                    = i_header&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   OTHERS                        = 0&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if its useful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 05:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432201#M824417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T05:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload the data from Internal table to  excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432202#M824418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: xcel TYPE TABLE OF alsmex_tabline WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH: xcel, ltab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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                = pa_file&lt;/P&gt;&lt;P&gt;      i_begin_col             = 1&lt;/P&gt;&lt;P&gt;      i_begin_row             = 2&lt;/P&gt;&lt;P&gt;      i_end_col               = 200&lt;/P&gt;&lt;P&gt;      i_end_row               = 5000&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      intern                  = xcel&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;  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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Fill the internal table with the values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT xcel.&lt;/P&gt;&lt;P&gt;    ltab-field1        = xcel-value.&lt;/P&gt;&lt;P&gt;    CASE xcel-col.&lt;/P&gt;&lt;P&gt;      WHEN '0001'.&lt;/P&gt;&lt;P&gt;        ltab-field2        = xcel-value.&lt;/P&gt;&lt;P&gt;      WHEN '0002'.&lt;/P&gt;&lt;P&gt;        ltab-field3        = xcel-value.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 06:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432202#M824418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T06:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to upload the data from Internal table to  excel file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432203#M824419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WS_EXCEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 06:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-upload-the-data-from-internal-table-to-excel-file/m-p/3432203#M824419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T06:10:43Z</dc:date>
    </item>
  </channel>
</rss>

