<?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: Transfer file from  presentation server to application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620629#M1440481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;get the data into a internal table using gui_upload function module &lt;/P&gt;&lt;P&gt;then loop the internal table data and transfer to application server&lt;/P&gt;&lt;P&gt;  DATA:lv_string TYPE string,&lt;/P&gt;&lt;P&gt;       p_er_a type string,&lt;/P&gt;&lt;P&gt;       lv_msg type string.&lt;/P&gt;&lt;P&gt;p_er_a = '/tmp/file_name.txt'. &lt;/P&gt;&lt;P&gt;  if p_er_a is not initial.&lt;/P&gt;&lt;P&gt;    if comout[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     open dataset p_er_a  FOR OUTPUT IN TEXT MODE ENCODING UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LOOP AT comout.&lt;/P&gt;&lt;P&gt;*concatenate the internal table fields &amp;amp; it_comut is that internal table &lt;/P&gt;&lt;P&gt;        CONCATENATE comout-doc comout-msg comout-sordr comout-outdel comout-acnt comout-customer&lt;/P&gt;&lt;P&gt;        INTO lv_string&lt;/P&gt;&lt;P&gt;        SEPARATED BY cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        transfer lv_string to p_er_a .&lt;/P&gt;&lt;P&gt;        CLEAR:lv_String,comout.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      close dataset p_er_a.&lt;/P&gt;&lt;P&gt;      concatenate 'Refer the File Path: ' p_er_a into lv_msg.&lt;/P&gt;&lt;P&gt;      message lv_msg type 'I'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manesh.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 04:53:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-19T04:53:07Z</dc:date>
    <item>
      <title>Transfer file from  presentation server to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620624#M1440476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is transfer the text file my local pc to sap application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that i tried following functional module. In that i need to provide the file name . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to  browse the file from local pc and dont want to  browse the file in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one provide the solution .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrr_test.&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;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;          PATH             = 'd:\rr\rrtest2.txt'&lt;/P&gt;&lt;P&gt;        TARGETPATH       = 'e:\usr\sap\D02\DVEBMGS00\work\rrtest3'.&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;   ERROR_FILE       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   OTHERS           = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt;  write : / sy-subrc.&lt;/P&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   write : / sy-subrc.&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;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajendran R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 05:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620624#M1440476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T05:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file from  presentation server to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620625#M1440477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajendra , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try this code snippet , here we call a selection screen that allows us to browse the file name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : p_file TYPE localfile OBLIGATORY .&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;&lt;/P&gt;&lt;P&gt;  data: user_action type i, filename type filetable, result type i,&lt;/P&gt;&lt;P&gt;        fn type file_table.&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'&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;LI level="1" type="ul"&gt;&lt;P&gt;   FILE_FILTER             =&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              = filename&lt;/P&gt;&lt;P&gt;    RC                      = result&lt;/P&gt;&lt;P&gt;    USER_ACTION             = user_action&lt;/P&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;&lt;/P&gt;&lt;P&gt;  if user_action = cl_gui_frontend_services=&amp;gt;action_ok.&lt;/P&gt;&lt;P&gt;    clear p_file.&lt;/P&gt;&lt;P&gt;    loop at filename into fn.&lt;/P&gt;&lt;P&gt;      p_file = fn-filename.&lt;/P&gt;&lt;P&gt;    endloop.&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;Hopefully it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 05:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620625#M1440477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T05:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file from  presentation server to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620626#M1440478</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;use method CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG to get filename on pesentation server. After that you can use C13Z_FILE_UPLOAD_ASSCI or C13Z_FILE_UPLOAD_BINARY. Or you can try to call direct C13Z_FRONT_END_TO_APPL if it fulfill your requirement. This FM provides user with a possibility to browse for file on a presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 06:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620626#M1440478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T06:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file from  presentation server to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620627#M1440479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 06:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620627#M1440479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T06:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file from  presentation server to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620628#M1440480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will just give you a different idea, which makes it much easier than going thru a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application server has a file system like you have one in your PC.&lt;/P&gt;&lt;P&gt;We have a directory for data exchange in the application server. I can add this directory as a drive in my MS Explorer.&lt;/P&gt;&lt;P&gt;So I can just use Explorer functionality like drag&amp;amp;drop, copy&amp;amp;paste to move a file from local PC to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess your basis admin can do this too..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 11:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620628#M1440480</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2010-02-18T11:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer file from  presentation server to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620629#M1440481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;get the data into a internal table using gui_upload function module &lt;/P&gt;&lt;P&gt;then loop the internal table data and transfer to application server&lt;/P&gt;&lt;P&gt;  DATA:lv_string TYPE string,&lt;/P&gt;&lt;P&gt;       p_er_a type string,&lt;/P&gt;&lt;P&gt;       lv_msg type string.&lt;/P&gt;&lt;P&gt;p_er_a = '/tmp/file_name.txt'. &lt;/P&gt;&lt;P&gt;  if p_er_a is not initial.&lt;/P&gt;&lt;P&gt;    if comout[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     open dataset p_er_a  FOR OUTPUT IN TEXT MODE ENCODING UTF-8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LOOP AT comout.&lt;/P&gt;&lt;P&gt;*concatenate the internal table fields &amp;amp; it_comut is that internal table &lt;/P&gt;&lt;P&gt;        CONCATENATE comout-doc comout-msg comout-sordr comout-outdel comout-acnt comout-customer&lt;/P&gt;&lt;P&gt;        INTO lv_string&lt;/P&gt;&lt;P&gt;        SEPARATED BY cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        transfer lv_string to p_er_a .&lt;/P&gt;&lt;P&gt;        CLEAR:lv_String,comout.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      close dataset p_er_a.&lt;/P&gt;&lt;P&gt;      concatenate 'Refer the File Path: ' p_er_a into lv_msg.&lt;/P&gt;&lt;P&gt;      message lv_msg type 'I'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manesh.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 04:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-file-from-presentation-server-to-application-server/m-p/6620629#M1440481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T04:53:07Z</dc:date>
    </item>
  </channel>
</rss>

