<?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: Regarding the file name checking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-file-name-checking/m-p/2363671#M523127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Function Modules,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PC_CHECK_FILENAME_WITH_EXT,&lt;/P&gt;&lt;P&gt;PC_CHECK_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2007 06:44:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-13T06:44:34Z</dc:date>
    <item>
      <title>Regarding the file name checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-file-name-checking/m-p/2363670#M523126</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;     I m using the below program which will upload the XL sheet , here i want to validate the file name which i m selecting from the destop. the file name should be named as "Suresh.XLS", where and how i can do validation for checking the file name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I gave the code for the refernce... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  please let me know the solution ASAP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSURESH13062007                         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ttab ,&lt;/P&gt;&lt;P&gt;      fld1(30) type c,&lt;/P&gt;&lt;P&gt;      fld2(30) type c,&lt;/P&gt;&lt;P&gt;      fld3(30) type c,&lt;/P&gt;&lt;P&gt;      fld4(30) type c,&lt;/P&gt;&lt;P&gt;      fld5(30) type c,&lt;/P&gt;&lt;P&gt;      end of ttab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of ttab with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters: p_file type localfile         .&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            static    = 'X'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  start-of-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF  p_file IS INITIAL.&lt;/P&gt;&lt;P&gt; MESSAGE S398(00) WITH 'No input file specified.'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear itab.&lt;/P&gt;&lt;P&gt;    refresh itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at itab.&lt;/P&gt;&lt;P&gt;    write:/ itab-fld1, itab-fld2, itab-fld3, itab-fld4, itab-fld5.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&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;form upload_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: file type  rlgrap-filename.&lt;/P&gt;&lt;P&gt;  data: xcel type table of alsmex_tabline with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  file = p_file.&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                = file&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               = '200'&lt;/P&gt;&lt;P&gt;            i_end_row               = '5000'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            intern                  = xcel&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;&lt;/P&gt;&lt;P&gt;   loop at xcel.&lt;/P&gt;&lt;P&gt;    case xcel-col.&lt;/P&gt;&lt;P&gt;      when '0001'.&lt;/P&gt;&lt;P&gt;        itab-fld1 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0002'.&lt;/P&gt;&lt;P&gt;        itab-fld2 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0003'.&lt;/P&gt;&lt;P&gt;        itab-fld3 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0004'.&lt;/P&gt;&lt;P&gt;        itab-fld4 = xcel-value.&lt;/P&gt;&lt;P&gt;      when '0005'.&lt;/P&gt;&lt;P&gt;        itab-fld5 = xcel-value.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of row.&lt;/P&gt;&lt;P&gt;      append itab.&lt;/P&gt;&lt;P&gt;      clear itab.&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 06:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-file-name-checking/m-p/2363670#M523126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T06:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the file name checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-file-name-checking/m-p/2363671#M523127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Function Modules,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PC_CHECK_FILENAME_WITH_EXT,&lt;/P&gt;&lt;P&gt;PC_CHECK_FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 06:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-the-file-name-checking/m-p/2363671#M523127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T06:44:34Z</dc:date>
    </item>
  </channel>
</rss>

