<?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 path not found in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-not-found/m-p/3115836#M739890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this&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="2973208"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 21:34:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T21:34:22Z</dc:date>
    <item>
      <title>file path not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-not-found/m-p/3115835#M739889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i am using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters:p_file like rlgrap-filename,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to read the path for the file,&lt;/P&gt;&lt;P&gt;if the file is not found.&lt;/P&gt;&lt;P&gt;it should mention enter correct file path.&lt;/P&gt;&lt;P&gt;how do i handle this scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 21:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-not-found/m-p/3115835#M739889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T21:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: file path not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-not-found/m-p/3115836#M739890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this&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="2973208"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 21:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-not-found/m-p/3115836#M739890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T21:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: file path not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-not-found/m-p/3115837#M739891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the SY-SUBRC returned form the UPLOAD FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: L_FILE TYPE STRING.
  L_FILE = P_LFILE.

  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD
    EXPORTING
      FILENAME            = L_FILE
      HAS_FIELD_SEPARATOR = 'X'
    CHANGING
      DATA_TAB            = IT_FILE
    EXCEPTIONS
      FILE_OPEN_ERROR     = 1
      FILE_READ_ERROR     = 2
      OTHERS              = 18.
  if sy-subrc &amp;lt;&amp;gt; 0.       "&amp;lt;&amp;lt;
    message e398(00) with 'Error while opening a file'.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add the File Selection Pop up for the file on the presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:       P_LFILE TYPE CHAR70 OBLIGATORY.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LFILE.
  PERFORM F4_LOCAL_FILE.


FORM F4_LOCAL_FILE .

  DATA: LT_FILES TYPE FILETABLE,
        LW_FILES TYPE FILE_TABLE,
        RC       TYPE SY-SUBRC,
        L_TYPE   TYPE STRING.

  L_TYPE = '*.txt'.

  CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG
    EXPORTING
      WINDOW_TITLE            = 'Raw data for RFBIBL00'
      DEFAULT_FILENAME        = L_TYPE
    CHANGING
      FILE_TABLE              = LT_FILES
      RC                      = RC
    EXCEPTIONS
      FILE_OPEN_DIALOG_FAILED = 1
      CNTL_ERROR              = 2
      ERROR_NO_GUI            = 3
      OTHERS                  = 4.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE E398(00) WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

* Get file selected
  READ TABLE LT_FILES INDEX 1 INTO LW_FILES.
  MOVE LW_FILES-FILENAME TO P_LFILE.

ENDFORM.                    " F4_local_file
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 21:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-not-found/m-p/3115837#M739891</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-26T21:36:12Z</dc:date>
    </item>
  </channel>
</rss>

