<?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: USING SAP_CONVERT_TO_XLS_FORMAT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-convert-to-xls-format/m-p/3489717#M839102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; This is an example code for GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      text(25) type c,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA :dataset TYPE dxfields-longpath VALUE 'E:\usr\sap\put\TEST1.TXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: fname type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;parameter: p_lpath type filename-fileintern.&lt;/P&gt;&lt;P&gt;parameter: name(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: co_var(9) value 'FNAME',&lt;/P&gt;&lt;P&gt;           co_ftype(10) value 'ASC',&lt;/P&gt;&lt;P&gt;           co_fsep value 'X'.&lt;/P&gt;&lt;P&gt;data : fname1 type string.&lt;/P&gt;&lt;P&gt;data: file type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;data: wg_file type filename-fileextern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;function call to get f4 search for files&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&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;      program_name  = syst-repid&lt;/P&gt;&lt;P&gt;      dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;      field_name    = co_var&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      file_name     = fname&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      mask_too_long = 1&lt;/P&gt;&lt;P&gt;      others        = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fname1 = fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;TO MIGRATE THE FILE FROM PRES. SERV. TO INTERNAL TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&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                = fname1&lt;/P&gt;&lt;P&gt;      filetype                = 'ASC'&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;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;TO GET THE PHYSICAL PATH BY GIVING THE LOGICAL PATH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      logical_filename = p_lpath&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;      file_name        = file&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      file_not_found   = 1&lt;/P&gt;&lt;P&gt;      others           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 04:20:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T04:20:26Z</dc:date>
    <item>
      <title>USING SAP_CONVERT_TO_XLS_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-convert-to-xls-format/m-p/3489715#M839100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;when i am uploading data into sap  using the function module   SAP_CONVERT_TO_XLS_FORMAT . But i saw this function module  structures, The  decelaration of text is 256 chars, but my upload text is more than this  , how to solve this pls advise me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;sksk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 03:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-convert-to-xls-format/m-p/3489715#M839100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T03:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: USING SAP_CONVERT_TO_XLS_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-convert-to-xls-format/m-p/3489716#M839101</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;   You can use FM 'GUI_UPLOAD' for uploading the data from excel file to SAP. There you can &lt;/P&gt;&lt;P&gt;have any number of fields but which must be of the elementary type only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 04:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-convert-to-xls-format/m-p/3489716#M839101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T04:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: USING SAP_CONVERT_TO_XLS_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-convert-to-xls-format/m-p/3489717#M839102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; This is an example code for GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      text(25) type c,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA :dataset TYPE dxfields-longpath VALUE 'E:\usr\sap\put\TEST1.TXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: fname type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;parameter: p_lpath type filename-fileintern.&lt;/P&gt;&lt;P&gt;parameter: name(30).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: co_var(9) value 'FNAME',&lt;/P&gt;&lt;P&gt;           co_ftype(10) value 'ASC',&lt;/P&gt;&lt;P&gt;           co_fsep value 'X'.&lt;/P&gt;&lt;P&gt;data : fname1 type string.&lt;/P&gt;&lt;P&gt;data: file type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;data: wg_file type filename-fileextern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;function call to get f4 search for files&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&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;      program_name  = syst-repid&lt;/P&gt;&lt;P&gt;      dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;      field_name    = co_var&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      file_name     = fname&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      mask_too_long = 1&lt;/P&gt;&lt;P&gt;      others        = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  fname1 = fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;TO MIGRATE THE FILE FROM PRES. SERV. TO INTERNAL TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&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                = fname1&lt;/P&gt;&lt;P&gt;      filetype                = 'ASC'&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;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;TO GET THE PHYSICAL PATH BY GIVING THE LOGICAL PATH&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      logical_filename = p_lpath&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;      file_name        = file&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      file_not_found   = 1&lt;/P&gt;&lt;P&gt;      others           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 04:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-sap-convert-to-xls-format/m-p/3489717#M839102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T04:20:26Z</dc:date>
    </item>
  </channel>
</rss>

