<?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 Substitute function module or method for TH_DOWNLOAD_BINFILE ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176366#M1623792</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 need to change the function module TH_DOWNLOAD_BINFILE (to download application server template file to presentation server) and replace it with another function module or method having similar functionality. The function module has to be changed as basis team has removed AUTHORITY OBJECT 'S_ADMI_FCD' due to audit concerns and but, this function module checks for this authorization object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest any standard function module or method very similar to TH_DOWNLOAD_BINFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2011 10:10:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-30T10:10:42Z</dc:date>
    <item>
      <title>Substitute function module or method for TH_DOWNLOAD_BINFILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176366#M1623792</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 need to change the function module TH_DOWNLOAD_BINFILE (to download application server template file to presentation server) and replace it with another function module or method having similar functionality. The function module has to be changed as basis team has removed AUTHORITY OBJECT 'S_ADMI_FCD' due to audit concerns and but, this function module checks for this authorization object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest any standard function module or method very similar to TH_DOWNLOAD_BINFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 10:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176366#M1623792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T10:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute function module or method for TH_DOWNLOAD_BINFILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176367#M1623793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ARCHIVFILE_SERVER_TO_CLIENT ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 10:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176367#M1623793</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-30T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute function module or method for TH_DOWNLOAD_BINFILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176368#M1623794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ARCHIVFILE_SERVER_TO_CLIENT has a limitation on file path length (70), my file path is longer. Is there any other function module/method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 11:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176368#M1623794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute function module or method for TH_DOWNLOAD_BINFILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176369#M1623795</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;DEL&gt;Is it to download any file? The, you could use the official method CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD.&lt;/DEL&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 TYPES xx(50) TYPE x.
  DATA lt_xstring TYPE TABLE OF xx.
  DATA l_length TYPE i.
  DATA l_filename1 TYPE string.
  DATA l_filename2 TYPE string.
DATA l_xstring TYPE xstring.
DATA l_message TYPE string.

   OPEN DATASET l_filename1 IN BINARY MODE FOR INPUT MESSAGE l_message.
   IF sy-subrc = 0.
     READ DATASET l_filename1 INTO l_xstring.
     CLOSE DATASET l_filename1.
   ENDIF.
  CALL METHOD cl_swf_utl_convert_xstring=&amp;gt;xstring_to_table
    EXPORTING
      i_stream = l_xstring
    IMPORTING
      e_table  = lt_xstring
    EXCEPTIONS
      OTHERS   = 3.
  l_length = XSTRLEN( l_xstring ).
  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download
    EXPORTING
      bin_filesize = l_length
      filename     = l_filename2
      filetype     = 'BIN'
    CHANGING
      data_tab     = lt_xstring
    EXCEPTIONS
      OTHERS       = 3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi - 10 minutes later&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 11:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176369#M1623795</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-30T11:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute function module or method for TH_DOWNLOAD_BINFILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176370#M1623796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And creating a copy of the standard FMs to bypass those restrictions is not an option? It would be the easiest way....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 13:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176370#M1623796</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-30T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute function module or method for TH_DOWNLOAD_BINFILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176371#M1623797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for single function module or method which has all the functionalities of TH_DOWNLOAD_BINFILE, without authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 14:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176371#M1623797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute function module or method for TH_DOWNLOAD_BINFILE ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176372#M1623798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was keeping copying of the standard FM as the final option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I have no choice but to copy standard FM and by-pass the authorization check!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Arun Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 14:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/substitute-function-module-or-method-for-th-download-binfile/m-p/8176372#M1623798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-30T14:20:22Z</dc:date>
    </item>
  </channel>
</rss>

