<?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: File upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471066#M1059075</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;&lt;STRONG&gt;File from Presentaion Server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          filename            = l_fname&lt;/P&gt;&lt;P&gt;          filetype            = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       has_field_separator = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          header_length       = 0&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          filelength          = filelength&lt;/P&gt;&lt;P&gt;        changing&lt;/P&gt;&lt;P&gt;          data_tab            = lt_input[]&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;           invalid_type                  = 5&lt;/P&gt;&lt;P&gt;           no_authority                  = 6&lt;/P&gt;&lt;P&gt;           unknown_error                 = 7&lt;/P&gt;&lt;P&gt;           bad_data_format               = 8&lt;/P&gt;&lt;P&gt;           header_not_allowed            = 9&lt;/P&gt;&lt;P&gt;           separator_not_allowed         = 10&lt;/P&gt;&lt;P&gt;           header_too_long               = 11&lt;/P&gt;&lt;P&gt;           unknown_dp_error              = 12&lt;/P&gt;&lt;P&gt;           access_denied                 = 13&lt;/P&gt;&lt;P&gt;           dp_out_of_memory              = 14&lt;/P&gt;&lt;P&gt;           disk_full                     = 15&lt;/P&gt;&lt;P&gt;           dp_timeout                    = 16&lt;/P&gt;&lt;P&gt;           others                        = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File from Application Server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : p_file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;open dataset p_file for input in text mode encoding default.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        do.&lt;/P&gt;&lt;P&gt;          read dataset p_file into ls_input-wa_string.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            append ls_input to lt_input.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            exit.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        enddo.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      close dataset p_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2008 10:26:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-05T10:26:48Z</dc:date>
    <item>
      <title>File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471063#M1059072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to upload file from different location into SAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471063#M1059072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T10:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471064#M1059073</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;From Presentation Server , we can use FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Application Server , use&lt;/P&gt;&lt;P&gt;1.Open dataset&lt;/P&gt;&lt;P&gt;2.Read dataset&lt;/P&gt;&lt;P&gt;3.close dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471064#M1059073</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2008-09-05T10:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471065#M1059074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Use LSMW for uploading data from legacy system to SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following link for steps to create LSMW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm" target="test_blank"&gt;http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm&lt;/A&gt;&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;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471065#M1059074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T10:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471066#M1059075</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;&lt;STRONG&gt;File from Presentaion Server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;          filename            = l_fname&lt;/P&gt;&lt;P&gt;          filetype            = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       has_field_separator = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          header_length       = 0&lt;/P&gt;&lt;P&gt;        importing&lt;/P&gt;&lt;P&gt;          filelength          = filelength&lt;/P&gt;&lt;P&gt;        changing&lt;/P&gt;&lt;P&gt;          data_tab            = lt_input[]&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;           invalid_type                  = 5&lt;/P&gt;&lt;P&gt;           no_authority                  = 6&lt;/P&gt;&lt;P&gt;           unknown_error                 = 7&lt;/P&gt;&lt;P&gt;           bad_data_format               = 8&lt;/P&gt;&lt;P&gt;           header_not_allowed            = 9&lt;/P&gt;&lt;P&gt;           separator_not_allowed         = 10&lt;/P&gt;&lt;P&gt;           header_too_long               = 11&lt;/P&gt;&lt;P&gt;           unknown_dp_error              = 12&lt;/P&gt;&lt;P&gt;           access_denied                 = 13&lt;/P&gt;&lt;P&gt;           dp_out_of_memory              = 14&lt;/P&gt;&lt;P&gt;           disk_full                     = 15&lt;/P&gt;&lt;P&gt;           dp_timeout                    = 16&lt;/P&gt;&lt;P&gt;           others                        = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File from Application Server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : p_file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;open dataset p_file for input in text mode encoding default.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        do.&lt;/P&gt;&lt;P&gt;          read dataset p_file into ls_input-wa_string.&lt;/P&gt;&lt;P&gt;          if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;            append ls_input to lt_input.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            exit.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        enddo.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      close dataset p_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471066#M1059075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T10:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471067#M1059076</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;PRE&gt;&lt;CODE&gt;Presentation server:
pARAMETERS:
p_file LIKE dxfields-longpath OBLIGATORY.

DATA:
w_downld TYPE string,                  " File name
w_file LIKE dxfields-location,         " File location


CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
    IMPORTING
      o_path          = p_file
      o_location_flag = w_file
    EXCEPTIONS
      rfc_error       = 1
      error_with_gui  = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE text-001 TYPE 'E'.
  ENDIF.                               " IF sy-subrc

 CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = w_downld
        filetype                = 'ASC'
        has_field_separator     = 'X'
        read_by_line            = 'X'
      TABLES
        data_tab                = t_tab
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16.





application server:


OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.

READ DATASET p_file INTO fs_tab.

CLOSE DATASET p_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &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;sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471067#M1059076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T10:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471068#M1059077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI use open data set for opening file which is in application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use Read dataset for reading file from application server &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close dataset for closing file which was opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the file is in dev server use' gui_upload'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2008 10:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471068#M1059077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-05T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471069#M1059078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know these options but my query is that file is neither in my system nor in application server. let us say, it is present in client system. How to take path of that file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 04:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471069#M1059078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T04:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471070#M1059079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manish .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Go through this link|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5645189"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 06:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471070#M1059079</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2008-09-08T06:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471071#M1059080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread to fetch file from another R3 system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2606140"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3236727"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 06:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471071#M1059080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T06:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471072#M1059081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;You can upload one file from presentation server to an internal table in SAP by using the function module&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GUI_UPLOAD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;use f4_filename to select the file from presentation server which will be uploaded.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After taking the filename in a variable call FM GUI_UPLOAD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;here is the code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;FILENAME = V_FILE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;FILETYPE = 'txt'  " the file type of the file which will be uploaded.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;HAS_FIELD_SEPARATOR = 'X '  " Give 'X 'as parameter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA_TAB  = i_table " the internal table name where the data will be uploaded.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;EXCEPTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;FILE_OPEN_ERROR = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;FILE_READ_ERROR = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;NO_BATCH = 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;GUI_REFUSE_FILETRANSFER = 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;INVALID_TYPE = 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;NO_AUTHORITY = 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;UNKNOWN_ERROR = 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;BAD_DATA_FORMAT = 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;HEADER_NOT_ALLOWED = 9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;SEPARATOR_NOT_ALLOWED = 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;HEADER_TOO_LONG = 11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;UNKNOWN_DP_ERROR = 12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;ACCESS_DENIED = 13&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;DP_OUT_OF_MEMORY = 14&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;DISK_FULL = 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;DP_TIMEOUT = 16&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;OTHERS = 17.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" 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="2" 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;/UL&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__________________________________________________&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;upload data from Application Server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Otherwise if you want to upload data in SAP from Application server then you can use three functinal module in sequence.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;They are&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;OPEN DATASET dsn FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;EXIT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It is used for opening the dataset which is nothing but a sequential file in application server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;READ DATASET dsn INTO rec.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHILE sy-subrc &amp;lt;&amp;gt; 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;WRITE / rec.   READ DATASET dsn INTO rec.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDWHILE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;This module  is used for reading the sequential file content from the application server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLOSE DATASET dsn.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;This module is used for closing the sequential dataset in application server which is open.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;you can use one function module F4_DXFILENAME to select the file in application server. after selecting the file name you can pass the file name in the three functional modules as dsn.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So dsn will contain the full path in application server .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So you don't need to remember the name of the file and path of the file dsn application server.So in run time you can choose a file from application server to upload the file name in SAp.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2008 07:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471072#M1059081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-08T07:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471073#M1059082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File is neither in application server nor in presentation server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 05:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471073#M1059082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T05:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471074#M1059083</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; File is neither in application server nor in presentation server.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where is the file than?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 05:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471074#M1059083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T05:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471075#M1059084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;File is in shared location of client, I have to take that file and run transaction code FLB2.&lt;/P&gt;&lt;P&gt;Steps are:&lt;/P&gt;&lt;P&gt;1) first take that file &lt;/P&gt;&lt;P&gt;2) Put either in application/presentation server&lt;/P&gt;&lt;P&gt;3) execute FLB2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 05:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471075#M1059084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T05:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471076#M1059085</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; I know these options but my query is that file is neither in my system nor in application server. let us say, it is present in client system. How to take path of that file?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there SAP GUI installed on that system(it is present in client system.)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than can you not write upload program which have selection screen and taking a file path from selection screen and upload the file to application server.&lt;/P&gt;&lt;P&gt;than youo can easily read this file via your whole SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gujargoud on Sep 9, 2008 7:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 05:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471076#M1059085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T05:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471077#M1059086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;you said that the file may be in another client system.But as far my knowledge the client system may be another SAP or non-SAP system, but it should be uploaded to the XI server or an application server before uploading it to another R3 system.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;The file from client system will be uploaded in an XI server with IDOC technique or any other and then you will fetch the file from XI server.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actually for this a broad knowledge of XI is needed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thanks.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2008 05:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471077#M1059086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-09T05:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: File upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471078#M1059087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no solutions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 14:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload/m-p/4471078#M1059087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:20:54Z</dc:date>
    </item>
  </channel>
</rss>

