<?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: Selecting file path in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072697#M95309</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;Here is the sample code to get F4 help for application server.Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;&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 p_file.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4 help for the flat file path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM f4_filepath USING 'P_FILE' p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f4_filepath USING p_applfile p_presfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'F4_DXFILENAME_4_DYNP'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        dynpfield_filename = p_applfile&lt;/P&gt;&lt;P&gt;        dyname             = sy-cprog&lt;/P&gt;&lt;P&gt;        dynumb             = sy-dynnr&lt;/P&gt;&lt;P&gt;        filetype           = c_p&lt;/P&gt;&lt;P&gt;        location           = c_a&lt;/P&gt;&lt;P&gt;        server             = space.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " F4_FILEPATH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2005 11:09:41 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-12-23T11:09:41Z</dc:date>
    <item>
      <title>Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072684#M95296</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 have to display a selection screen to the user to upload date from the application server or he can upload using EXCEL file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If he want to select that file from application server what code I have to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me the function module name for uploading excel file to BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 06:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072684#M95296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072685#M95297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;use this to upload excel to internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 06:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072685#M95297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T06:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072686#M95298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you will try to upload excel file from the application server it will give many errors. Better upload tab delimited text file from application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use OPEN DATASET statement for that.&lt;/P&gt;&lt;P&gt;Do F1 on this and you will find detail procedure.&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;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 06:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072686#M95298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T06:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072687#M95299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what exactly your requirement..&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 06:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072687#M95299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T06:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072688#M95300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I don't think there is any FM&lt;/P&gt;&lt;P&gt;   which can display to the user&lt;/P&gt;&lt;P&gt;   a dialog screen to select files&lt;/P&gt;&lt;P&gt;   from APPLICATION SERVER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (The path needs to be mentioned directly&lt;/P&gt;&lt;P&gt;   as a string/character)&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;2. For front-end pc,&lt;/P&gt;&lt;P&gt;   the FM is&lt;/P&gt;&lt;P&gt;   F4_FILENAME.&lt;/P&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 07:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072688#M95300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T07:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072689#M95301</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;To display file selection dialog for application server files proceed as follows:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;c_file_mask TYPE dxfields-filemask VALUE '*',&lt;/P&gt;&lt;P&gt;       searched_dir TYPE dxfields-longpath,&lt;/P&gt;&lt;P&gt;        file_path LIKE dxfields-longpath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  searched_dir = 'INITIAL_DIRECTORY_TO_START_WITH'.&lt;/P&gt;&lt;P&gt;  TRANSLATE searched_dir TO LOWER CASE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     i_location_flag       = 'A'&lt;/P&gt;&lt;P&gt;     i_server              = ' '&lt;/P&gt;&lt;P&gt;     i_path                = searched_dir&lt;/P&gt;&lt;P&gt;     filemask              = c_file_mask&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    FILEOPERATION         = 'R'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    O_LOCATION_FLAG       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    O_SERVER              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     o_path                = file_path&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ABEND_FLAG            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     rfc_error             = 1&lt;/P&gt;&lt;P&gt;     OTHERS                = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_path is the full path of selected file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maxim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 07:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072689#M95301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T07:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072690#M95302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi using ALSM_EXCEL_TO_INTERNAL_TABLE function module first upload the excel to internal table.&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;open dataset........&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 07:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072690#M95302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T07:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072691#M95303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have to give options to user either he can upload data from excel sheet or from application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding to this one I wanna to give a selection-screen giving the excel file name of application server file path. What I have to do for this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the procedure for getting the data to upload ".CSV" file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 10:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072691#M95303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T10:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072692#M95304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using FM ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;upload the data to internal table, that is comma delimited file, so you can do in the other way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab occurs 0,
        line(300) type c,
      end of itab.
 
data: begin of it_data occurs 0,
      field1..
      field2...
      end of it_data.
 
call function 'GUI_UPLOAD'
  exporting
     filename = 'C:file.csv'
     filetype = 'ASC'
  tables
     data_tab = itab.
 
loop at itab.
  split itab-lineat ',' into
    it_data-field1
    it_data-field2
    it_data-field3.
 append it_data.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;p_fiel will come from selection screen.&lt;/P&gt;&lt;P&gt;give p_file type rlgrap-filename in the selection screen.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters: p_file like rlgrap-filename.
open dataset p_file for output in textmode encoding default.
if sy-subrc = 0.
Loop at it_data.
transfer it_data to p_file.
endloop.
endif.
cloase dataset p_file.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 10:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072692#M95304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072693#M95305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen&lt;/P&gt;&lt;P&gt;your problem is upload the file or see a file browser for application server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 10:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072693#M95305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T10:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072694#M95306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you want to give F4 help for the Application server&lt;/P&gt;&lt;P&gt;  then use the below func.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
         EXPORTING
              directory        = ' '
              filemask         = ' '
         IMPORTING
              serverfile       = dl_file
         EXCEPTIONS
              canceled_by_user = 1
              OTHERS           = 2.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE e999 WITH 'Error while getting the file name'(036).
    ELSE.
      p_file =  dl_file.
    ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 10:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072694#M95306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T10:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072695#M95307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can you be a bit clear as I am still not sure whatz the req is and where are you stuck?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; For CSV files on your presentation server, you can use FM KCD_CSV_FILE_TO_INTERN_CONVERT to upload it into internal table. The return parameter is of type kcde_intern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 10:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072695#M95307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T10:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072696#M95308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Praveen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the Below Code Which really Helps you a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Upload the Excel Sheet, Please use this FM Below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: File1 like RLGRAP-filename.&lt;/P&gt;&lt;P&gt;parameter: File2 like RLGRAP-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Navigation Help say like F4 Functionality, Please use the Below Code and go on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE1.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'NAVIGATION_FILENAME_HELP'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            SELECTED_FILENAME = FILE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = File1&lt;/P&gt;&lt;P&gt;    I_BEGIN_COL                   = 1&lt;/P&gt;&lt;P&gt;    I_BEGIN_ROW                   = 1&lt;/P&gt;&lt;P&gt;    I_END_COL                     = 256&lt;/P&gt;&lt;P&gt;    I_END_ROW                     = 65536&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    INTERN                        = it_itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INCONSISTENT_PARAMETERS       = 1&lt;/P&gt;&lt;P&gt;   UPLOAD_OLE                    = 2&lt;/P&gt;&lt;P&gt;   OTHERS                        = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;Where It_tab is the Internal Table equal to the Structure of Excel Sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, If you want to take it from the Application Server, Please use the Below Code For Upload from the Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: WA(30000).&lt;/P&gt;&lt;P&gt;  DATA: SEPARATOR TYPE X VALUE 09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Open DataSet ****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET file2 FOR INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000 WITH 'FILE COULD NOT BE OPENED'(104).&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      READ DATASET file 2INTO&lt;/P&gt;&lt;P&gt;      INT_TAB_TEMP-INPUT.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        APPEND INT_tab_TEMP.&lt;/P&gt;&lt;P&gt;        CLEAR INT_tab_TEMP.&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Close DataSet ****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CLOSE DATASET file2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you Open the File for Output, Please use the Below Code for Conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CLEAR: INT_tab_final, INT_tab_TEMP.&lt;/P&gt;&lt;P&gt;  LOOP AT INT_tab_TEMP.&lt;/P&gt;&lt;P&gt;    SPLIT INT_tab-INPUT AT SEPARATOR  INTO&lt;/P&gt;&lt;P&gt;*Please populate the splitted fields &lt;/P&gt;&lt;P&gt;Int_tab_Final - Fields&lt;/P&gt;&lt;P&gt;    APPEND INT_tab_final.&lt;/P&gt;&lt;P&gt;    CLEAR INT_tab_final.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  REFRESH: INT_tab_temp.&lt;/P&gt;&lt;P&gt;  SORT INT_tab_final.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM INT_tab_final&lt;/P&gt;&lt;P&gt;  COMPARING ALL FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, Then you can use this Internal Table(int_tab_final) for Display or Inserting into the DB tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let me know any Issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If you feel this code works you a lot, Please allot Points for Very Useful Answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Satya KRishna.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 11:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072696#M95308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-23T11:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072697#M95309</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;Here is the sample code to get F4 help for application server.Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;&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 p_file.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4 help for the flat file path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM f4_filepath USING 'P_FILE' p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f4_filepath USING p_applfile p_presfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'F4_DXFILENAME_4_DYNP'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        dynpfield_filename = p_applfile&lt;/P&gt;&lt;P&gt;        dyname             = sy-cprog&lt;/P&gt;&lt;P&gt;        dynumb             = sy-dynnr&lt;/P&gt;&lt;P&gt;        filetype           = c_p&lt;/P&gt;&lt;P&gt;        location           = c_a&lt;/P&gt;&lt;P&gt;        server             = space.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " F4_FILEPATH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2005 11:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072697#M95309</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-12-23T11:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072698#M95310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not working properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2005 09:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072698#M95310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-30T09:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072699#M95311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the problem you are facing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2005 09:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-file-path/m-p/1072699#M95311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-30T09:56:18Z</dc:date>
    </item>
  </channel>
</rss>

