<?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: Upgrade- Download function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327687#M1395622</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;The Function module which i posted in that they are not passing the file name as parameter.&lt;/P&gt;&lt;P&gt;But GUI_DOWNLOAD requires the file name as mandatory parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case what i had to pass with respective to the parameter file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the parameters need to pass to GUI_DOWNLOAD with respective to the function module (DOWNLOAD) which i posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Any clues from experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayanth16 on Nov 6, 2009 5:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2009 16:04:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-06T16:04:24Z</dc:date>
    <item>
      <title>Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327684#M1395619</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;&lt;/P&gt;&lt;P&gt;I am working in an upgrade from 4.6C to ECC 6.0.&lt;/P&gt;&lt;P&gt;I came across one FM which is used in 4.6C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS C_PRES_SERVER_TEMP_DIR LIKE RLGRAP-FILENAME VALUE 'c:\temp\'.
CONSTANTS C_PRES_FILE_MASK(62)
VALUE ',Data files *.csv  *.dat  *.txt,*.CSV;*.DAT;*.TXT,All files,*.'.
CONSTANTS C_EXCEL(4) VALUE '.xls'.

 CHECK NOT DOWNLOAD IS INITIAL.
  CHECK SY-BATCH = C_FALSE.
  M_SET_DEFAULT 'P' C_PRES_SERVER_TEMP_DIR WA_FILE-NAME C_EXCEL REPID.

  CALL FUNCTION 'DOWNLOAD'
       EXPORTING
*           BIN_FILESIZE        = ' '
*           CODEPAGE            = ' '
*           FILENAME            = ' '
            FILETYPE            = 'DAT'
*           ITEM                = ' '
*           MODE                = ' '
*           FILEMASK_TEXT       = ' '
            FILETYPE_NO_CHANGE  = C_TRUE
*           NO_AUTH_CHECK       = ' '
       IMPORTING
            ACT_FILENAME        = WA_FILE-NAME
            ACT_FILETYPE        = WA_FILE-TYPE
            FILESIZE            = WA_FILE-SIZE
            CANCEL              = WA_FILE-CANCEL
       TABLES
            DATA_TAB            = I_TAB_OUT
*           FIELDNAMES          =
       EXCEPTIONS
            INVALID_FILESIZE    = 1
            INVALID_TABLE_WIDTH = 2
            INVALID_TYPE        = 3
            NO_BATCH            = 4
            UNKNOWN_ERROR       = 5
            OTHERS              = 6.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While passing parameters i am facing difficulty.&lt;/P&gt;&lt;P&gt;Now i am using GUI_DOWNLOAD fm .file name is mandatory.&lt;/P&gt;&lt;P&gt;Under the file name parameter what i had to pass.&lt;/P&gt;&lt;P&gt;And also in the import parameters they passed a lot.&lt;/P&gt;&lt;P&gt;But in the GUI_DOWNLOAD import parameter only FILELENGTH is there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 15:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327684#M1395619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327685#M1395620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace function module with method &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check documentation on the class as well as in the forum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 15:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327685#M1395620</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-11-06T15:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327686#M1395621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check the class cl_gui_frontend_services for all file related activities. You can find lots of demo programs for upload and download functionality. &lt;/P&gt;&lt;P&gt;The upload and download FM's will give a pop up for the user to select the file path. Whereas, in gui_* FM's you can directly pass the file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nilesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 16:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327686#M1395621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T16:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327687#M1395622</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;The Function module which i posted in that they are not passing the file name as parameter.&lt;/P&gt;&lt;P&gt;But GUI_DOWNLOAD requires the file name as mandatory parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case what i had to pass with respective to the parameter file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the parameters need to pass to GUI_DOWNLOAD with respective to the function module (DOWNLOAD) which i posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Any clues from experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayanth16 on Nov 6, 2009 5:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 16:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327687#M1395622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T16:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327688#M1395623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi ,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The Function module which i posted in that they are not passing the file name as parameter.&lt;/P&gt;&lt;P&gt;&amp;gt; But GUI_DOWNLOAD requires the file name as mandatory parameter.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; In that case what i had to pass with respective to the parameter file name.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I need the parameters need to pass to GUI_DOWNLOAD with respective to the function module (DOWNLOAD) which i posted.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Hi Any clues from experts&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards&lt;/P&gt;&lt;P&gt;&amp;gt; Jai&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Jayanth16 on Nov 6, 2009 5:14 PM&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a file name which you can identify. It is a required field in GUI_DOWNLOAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is it downloading using DOWNLOAD? and what is the file name? Just use the same file name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 16:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327688#M1395623</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-11-06T16:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327689#M1395624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jayanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because the FM: DOWNLOAD gives you a pop-up for file selection which is not available with GUI_DWONLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use the FM: GUI_FILE_SAVE_DIALOG or the method CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_SAVE_DIALOG (whichever is OK for you).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Pass the selected filename to GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am providing you the algo, for how-to-code SEARCH SDN !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 16:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327689#M1395624</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-11-06T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327690#M1395625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;That's enough of spoon feeding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nilesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 16:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327690#M1395625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade- Download function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327691#M1395626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Suhas,&lt;/P&gt;&lt;P&gt;&amp;gt; That's enough of spoon feeding. &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Nilesh.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Nilesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check the OP's query his concern was the param FILENAME in DOWNLOAD is optional, but in GUI_DOWNLOAD it is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And no one seemed to address this &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wont call that spoon-feeding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 16:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-download-function-module/m-p/6327691#M1395626</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-11-06T16:38:43Z</dc:date>
    </item>
  </channel>
</rss>

