<?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: validating the logical path in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837142#M664335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There r two ways -&lt;/P&gt;&lt;P&gt;1. Use this FM and check the Filename entered on screen with the populated table.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RZL_READ_DIR'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            name           = directory&lt;/P&gt;&lt;P&gt;            nrlines        = 1&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            file_tbl       = file_table&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            argument_error = 1&lt;/P&gt;&lt;P&gt;            not_found      = 2&lt;/P&gt;&lt;P&gt;            send_error     = 3&lt;/P&gt;&lt;P&gt;            OTHERS         = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use open Dataset&lt;/P&gt;&lt;P&gt;open dataset d1........&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write:/ 'File path not found'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this FM also.&lt;/P&gt;&lt;P&gt;DX_FILE_EXISTENCE_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 12:00:33 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-10-04T12:00:33Z</dc:date>
    <item>
      <title>validating the logical path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837140#M664333</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;how to validate the logical path entered on the selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 11:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837140#M664333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T11:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: validating the logical path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837141#M664334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At selection-screen on p_field.&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;opendataset p_field text mode encoding default.&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; throw error message&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 11:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837141#M664334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T11:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: validating the logical path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837142#M664335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There r two ways -&lt;/P&gt;&lt;P&gt;1. Use this FM and check the Filename entered on screen with the populated table.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RZL_READ_DIR'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            name           = directory&lt;/P&gt;&lt;P&gt;            nrlines        = 1&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            file_tbl       = file_table&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            argument_error = 1&lt;/P&gt;&lt;P&gt;            not_found      = 2&lt;/P&gt;&lt;P&gt;            send_error     = 3&lt;/P&gt;&lt;P&gt;            OTHERS         = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use open Dataset&lt;/P&gt;&lt;P&gt;open dataset d1........&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write:/ 'File path not found'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this FM also.&lt;/P&gt;&lt;P&gt;DX_FILE_EXISTENCE_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 12:00:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837142#M664335</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-10-04T12:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: validating the logical path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837143#M664336</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 the Fucntion module FILE_GET_NAME to Retrieve Logical file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, look at the below code&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95e635c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 12:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837143#M664336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T12:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: validating the logical path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837144#M664337</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;check the piece of code..&lt;/P&gt;&lt;P&gt;*--Call the function module to get the physical file name for the&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;logical file path provided.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: lv_mandt LIKE sy-mandt,&lt;/P&gt;&lt;P&gt;        lv_opsys LIKE sy-opsys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE: sy-mandt TO lv_mandt,&lt;/P&gt;&lt;P&gt;        sy-opsys TO lv_opsys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      client           = lv_mandt&lt;/P&gt;&lt;P&gt;      logical_filename = p_lpn&lt;/P&gt;&lt;P&gt;      operating_system = lv_opsys&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name        = v_fname1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_not_found   = 1&lt;/P&gt;&lt;P&gt;      OTHERS           = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;File not found.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE i137.&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 12:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837144#M664337</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-10-04T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: validating the logical path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837145#M664338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to validate the physical path entered by the user not logical path..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i  can use open dataset.. &lt;/P&gt;&lt;P&gt;but if the user enters only directory then also it will give sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me how to validate the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 12:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-logical-path/m-p/2837145#M664338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T12:20:25Z</dc:date>
    </item>
  </channel>
</rss>

