<?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 error in same screen. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938891#M62697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambhi,&lt;/P&gt;&lt;P&gt;If you want to validate for existance of file &lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;      DATA : l_f_exist(1).&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'TMP_GUI_GET_FILE_EXIST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          fname          = p_inp&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          exist          = l_f_exist&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          fileinfo_error = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;I assume you are not validating data in the file at selection screen.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Mano Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mano Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2005 14:28:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-12T14:28:23Z</dc:date>
    <item>
      <title>file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938890#M62696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey guys,&lt;/P&gt;&lt;P&gt;I want to check my file path validation and display error in same screen itself.&lt;/P&gt;&lt;P&gt;I used my GUI_UPLOAD method in START OF SELECTION. to read the file.&lt;/P&gt;&lt;P&gt;If error it displays error in some other plain screen.&lt;/P&gt;&lt;P&gt;I know AT selection screen will allow me to display in same screen.&lt;/P&gt;&lt;P&gt;But is the way of using GUI_UPLOAD method in AT selection screen is advisable?&lt;/P&gt;&lt;P&gt;or else please give me alternate way.&lt;/P&gt;&lt;P&gt;ambichan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 14:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938890#M62696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T14:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938891#M62697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambhi,&lt;/P&gt;&lt;P&gt;If you want to validate for existance of file &lt;/P&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;      DATA : l_f_exist(1).&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'TMP_GUI_GET_FILE_EXIST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          fname          = p_inp&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          exist          = l_f_exist&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          fileinfo_error = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;I assume you are not validating data in the file at selection screen.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Mano Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mano Sri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 14:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938891#M62697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T14:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938892#M62698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai mano,&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;Does P_inp parameter allows only file name or&lt;/P&gt;&lt;P&gt;FILE PATH.&lt;/P&gt;&lt;P&gt;could you pls confirm.&lt;/P&gt;&lt;P&gt;ambichan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 14:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938892#M62698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938893#M62699</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;You can use in AT Selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_EXIST&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILE                 =  'C:\test.txt'&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    RESULT               =&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;   CNTL_ERROR           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ERROR_NO_GUI         = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRONG_PARAMETER      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   NOT_SUPPORTED_BY_GUI = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   others               = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" 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="1" 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;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the return parameter will be "X" if file exists else it will be blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 14:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938893#M62699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T14:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938894#M62700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;up to 128 char i guess , so you can try with file path &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 14:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938894#M62700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T14:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938895#M62701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ambi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do the GUI_UPLOAD in the AT SELECTION-SCREEN event, provided you do that only when the user presses the 'Execute' or 'F8' button. That way you will avoid doing it all the time. AT SELECTION-SCREEN will be executed before the START-OF-SELECTION and any error you give there, the processing stops there and you remain in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN.

  CASE sscrfields-ucomm.
    WHEN 'ONLI'.
      CALL FUNCTION 'GUI_UPLOAD'
         ........
         .....
    WHEN OTHERS.
  ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 14:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938895#M62701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T14:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938896#M62702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To valid the existance of file in presentation or application server u can use SXDA_FILE_EXISTENCE_CHECK&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SXDA_FILE_EXISTENCE_CHECK'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     DS_NAME              = P_FPATH   "file path&lt;/P&gt;&lt;P&gt;     DATA_APP             = 'X'&lt;/P&gt;&lt;P&gt;     DATA_REM             = SPACE&lt;/P&gt;&lt;P&gt;     SERVER               = SPACE&lt;/P&gt;&lt;P&gt;     DATA_FRN             = SPACE&lt;/P&gt;&lt;P&gt;     PC_FILE              = SPACE&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     FILE_EXISTS          = W_XFLAG&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     RFC_FAILURE          = 1&lt;/P&gt;&lt;P&gt;     FRONTEND_ERROR       = 2&lt;/P&gt;&lt;P&gt;     DB_ERROR             = 3&lt;/P&gt;&lt;P&gt;     OTHERS               = 4.&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;   STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF W_XFLAG EQ 'X'.&lt;/P&gt;&lt;P&gt;    WRITE:/001 'File exists'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:/001 'File does not exists'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 00:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938896#M62702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-13T00:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938897#M62703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give an Information message and do a leave to transaction &amp;lt;same program&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 05:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938897#M62703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-13T05:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938898#M62704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mr. Chan,&lt;/P&gt;&lt;P&gt;I guess you forgot to close the thread &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;, hope problem is not persisting.&lt;/P&gt;&lt;P&gt;-M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 15:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938898#M62704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-13T15:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: file path error in same screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938899#M62705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did the answers help you? Can you please close the post if resolved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2005 03:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-path-error-in-same-screen/m-p/938899#M62705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-16T03:08:37Z</dc:date>
    </item>
  </channel>
</rss>

