<?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 directory and file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098843#M735271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;J Are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have found that GUI_DOWNLOAD does not download field names correctly. Use WS_DOWNLOAD instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Take a look at my code in my previous post to this thread. That code works. Try implementing it for your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Nov 2007 17:38:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-17T17:38:35Z</dc:date>
    <item>
      <title>Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098831#M735259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if user had input correct directory or a file name.  I mean, if user type in wrong directory, for example, instead of typing "c:\file.txt", if they type "z:\file.txt" &lt;/P&gt;&lt;P&gt;I should let the user know that the file or directory does not exist.  Is there any FM for that?  Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, is there any way I can write down the field names of my internal table while try to download the internal table to a txt file.  How can i get this info in my txt file from my internal table.  Right now, I can only download the content of my internal table to a txt file, without field headings.  Any help would be great.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098831#M735259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098832#M735260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this  FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: TBL_FILES LIKE SDOKPATH OCCURS 10 WITH HEADER LINE,
        TBL_DIRS LIKE SDOKPATH OCCURS 10 WITH HEADER LINE.


  CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
       EXPORTING
            DIRECTORY  = P_DIRECTORY
       TABLES
            FILE_TABLE = TBL_FILES
            DIR_TABLE  = TBL_DIRS.
describe table tbl_dirs lines sy-index.
if sy-index is intial.
* message.. directory does not exits
endif.

&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>Fri, 16 Nov 2007 14:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098832#M735260</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-16T14:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098833#M735261</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 Class CL_GUI_FRONTEND_SERVICES.&lt;/P&gt;&lt;P&gt;It has all the methods related to frontend/file processing.&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, 16 Nov 2007 14:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098833#M735261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098834#M735262</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;Use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK b2.


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  DATA: directory TYPE string,
        filetable TYPE filetable,
        line      TYPE LINE OF filetable,
        rc        TYPE i.
  CALL METHOD cl_gui_frontend_services=&amp;gt;get_temp_directory
    CHANGING
      temp_dir = directory.
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      window_title      = 'SELECT THE FILE'
      initial_directory = directory
      file_filter       = '*.XLS'
      multiselection    = ' '
    CHANGING
      file_table        = filetable
      rc                = rc.
  IF rc = 1.
    READ TABLE filetable INDEX 1 INTO line.
    p_file = line-filename.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this helps,&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, 16 Nov 2007 14:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098834#M735262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098835#M735263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using gui_upload or gui_download ,these FM give error message if you give wrong path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fo your 2nd query try this.&lt;/P&gt;&lt;P&gt;let itab has two fields.filed1 and field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before filling data into itab ,append field names to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1-field1 = 'FIELD1'.&lt;/P&gt;&lt;P&gt;itab1-filed2 = 'FIELD2'.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS WILL BE THE FIRST RECORD.&lt;/P&gt;&lt;P&gt;then fill the itab with data.&lt;/P&gt;&lt;P&gt;USE GUI_DOWNLAOD TO transfer data from prgram to presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098835#M735263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098836#M735264</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 the DIRECTORY_EXIST method to check file path for both, PC frontend and application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
type-pools: abap.
 
data: rc type abap_bool.
data: dir type string.
 
parameters: p_file type localfile default 'C:'.
 
 
start-of-selection.
 
dir = p_file.
 
  call method cl_gui_frontend_services=&amp;gt;directory_exist
    exporting
      directory            = dir
    receiving
      result               = rc
    exceptions
      cntl_error           = 1
      error_no_gui         = 2
      wrong_parameter      = 3
      not_supported_by_gui = 4
      others               = 5.
 
  if rc = 'X'.
 
    write:/ 'The directory does exist'.
 
  else.
 
    write:/ 'The directory does not exist'.
 
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use FM GUI_DOWNLOAD to download internal table with fieldname(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin OF itab occurs 0,
        matnr like mara-matnr,
      end of itab.

data : begin of it_fieldnames occurs 0,
        name(100),
       end of it_fieldnames.

it_fieldnames-name = 'MATNR'.
append it_fieldnames.

select matnr from mara into table itab UP TO 10 ROWS.

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    FILENAME = 'C:Documents and SettingssampathDesktopflatfile.XLS'
    FILETYPE = 'ASC'
  TABLES
    DATA_TAB = itab
    FIELDNAMES = IT_FIELDNAMES .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098836#M735264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098837#M735265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;go thru this sample program...any way in GUI_DWONLOAD  if file is not found SY-SUBRC value will set to 19..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES : mara.
DATA: ld_filename TYPE string VALUE 'C:TEMPDATA.XLS'.

DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
ERSDA LIKE mara-ersda,
END of itab.

DATA: BEGIN OF fl_name OCCURS 0,
name LIKE mara-matnr,
END of fl_name.
fl_name-name = 'Material'.
APPEND fl_name.
fl_name-name = 'Creation date'.
APPEND fl_name.



SELECT matnr ersda FROM mara INTO TABLE itab up to 20 rows.

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    filename                        = ld_filename
   WRITE_FIELD_SEPARATOR           = ';'
  tables
    data_tab                        = itab[]
    FIELDNAMES                      = fl_name
 EXCEPTIONS
   FILE_WRITE_ERROR                = 1
   NO_BATCH                        = 2
   GUI_REFUSE_FILETRANSFER         = 3
   INVALID_TYPE                    = 4
   NO_AUTHORITY                    = 5
   UNKNOWN_ERROR                   = 6
   HEADER_NOT_ALLOWED              = 7
   SEPARATOR_NOT_ALLOWED           = 8
   FILESIZE_NOT_ALLOWED            = 9
   HEADER_TOO_LONG                 = 10
   DP_ERROR_CREATE                 = 11
   DP_ERROR_SEND                   = 12
   DP_ERROR_WRITE                  = 13
   UNKNOWN_DP_ERROR                = 14
   ACCESS_DENIED                   = 15
   DP_OUT_OF_MEMORY                = 16
   DISK_FULL                       = 17
   DP_TIMEOUT                      = 18
   FILE_NOT_FOUND                  = 19
   DATAPROVIDER_EXCEPTION          = 20
   CONTROL_FLUSH_ERROR             = 21
   OTHERS                          = 22
          .
IF sy-subrc EQ 19.
WRITE :/ 'FILE NOT FOUND'.
ENDIF.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 14:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098837#M735265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T14:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098838#M735266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF t_mara OCCURS 0,
        matnr TYPE mara-matnr,
        prdha TYPE mara-prdha,
      END OF t_mara,

      BEGIN OF t_header OCCURS 0,
        field(20) TYPE c,
      END OF t_header,

      w_dir    TYPE string         ,
      w_file   TYPE string         ,
      w_target TYPE rlgrap-filename,
      w_result TYPE c              ,
      w_len    TYPE i              .


PARAMETERS: p_dir(50)  TYPE c OBLIGATORY,
            p_file(50) TYPE c OBLIGATORY.


AT SELECTION-SCREEN.

  w_dir  = p_dir.
  w_file = p_file.

  w_len = STRLEN( w_dir ).

  SUBTRACT 1 FROM w_len.

  CASE w_dir+w_len(1).
    WHEN ''.
      w_dir = w_dir+0(w_len).
  ENDCASE.

  CLEAR w_result.

* Check for Valid Directory
  CALL METHOD cl_gui_frontend_services=&amp;gt;directory_exist
    EXPORTING
      directory = w_dir
    RECEIVING
      result    = w_result
    EXCEPTIONS
      OTHERS    = 0.

  CASE w_result.
    WHEN space.
      MESSAGE e208(00) WITH 'Directory does not exist'.
  ENDCASE.


START-OF-SELECTION.

* Get data to be downloaded
  SELECT matnr
         prdha
    UP TO 10 ROWS
    FROM mara
    INTO TABLE t_mara.

  CLEAR w_target.

  CONDENSE: w_dir ,
            w_file.

* Create target location
  CONCATENATE w_dir
              ''
              w_file
    INTO w_target.

* Column Headers
  REFRESH t_header.

  t_header-field = 'Material Number'.
  APPEND t_header.

  t_header-field = 'Product Hierarchy'.
  APPEND t_header.

  CLEAR t_header.

* Download the file
  CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
      filename   = w_target
      filetype   = 'DAT'
    TABLES
      data_tab   = t_mara
      fieldnames = t_header
    EXCEPTIONS
      OTHERS     = 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 16:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098838#M735266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098839#M735267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for their very good help!  I was able to validate the directory/file name just using the gui_download method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am still not able to put the field names in my txt file.  I created separate header table and passing it to the gui_download.  But for some reason it is not printing out the field names.  Here it what I am trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ilogtab occurs 0,    "saving the log file structure&lt;/P&gt;&lt;P&gt;       log_f(256) TYPE c,&lt;/P&gt;&lt;P&gt;END OF ilogtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_fieldnames occurs 0,    "saving the log file structure&lt;/P&gt;&lt;P&gt;       l_f(256) TYPE c,&lt;/P&gt;&lt;P&gt;END OF it_fieldnames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA ilogtab LIKE  struct3_logf OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am concatenating fields into a string and than appending it to the internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename              = f1&lt;/P&gt;&lt;P&gt;            filetype              = 'ASC'&lt;/P&gt;&lt;P&gt;            write_field_separator = 'X'&lt;/P&gt;&lt;P&gt;            append                = ''&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab              = ierrtab  "msg_error&lt;/P&gt;&lt;P&gt;            fieldnames            = it_fieldnames&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_open_error       = 1&lt;/P&gt;&lt;P&gt;            file_write_error      = 2&lt;/P&gt;&lt;P&gt;            invalid_filesize      = 3&lt;/P&gt;&lt;P&gt;            invalid_table_width   = 4&lt;/P&gt;&lt;P&gt;            invalid_type          = 5&lt;/P&gt;&lt;P&gt;            no_batch              = 6&lt;/P&gt;&lt;P&gt;            unknown_error         = 7&lt;/P&gt;&lt;P&gt;            OTHERS                = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e999 WITH 'Error File Write Error: ' sy-subrc.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any input on that please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: field contents are getting print in txt file, but with out field names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 17:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098839#M735267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T17:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098840#M735268</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;There is a parameter in GUI_DOWNLOAD which tells to write the file header. I can't tell the name as I am not in front of system, but if you just look the importing parameters of the FM you will find it.&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, 16 Nov 2007 17:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098840#M735268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098841#M735269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One mistake....I am passing the ilogtab to the gui_download...not the ierrtab. I cut and paste the wrong FORM.  Sorry about that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 17:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098841#M735269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098842#M735270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you fill the Fieldname tab as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;it_fieldnames = 'Field1'.
Append it_fieldnames.

it_fieldnames = 'Field2'.
append it_fieldnames.&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>Sat, 17 Nov 2007 02:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098842#M735270</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-17T02:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098843#M735271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;J Are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have found that GUI_DOWNLOAD does not download field names correctly. Use WS_DOWNLOAD instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Take a look at my code in my previous post to this thread. That code works. Try implementing it for your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 17:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098843#M735271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-17T17:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Validating directory and file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098844#M735272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all who helped! Problem is solved.  I achieved the issue by creating two tables one for the fields and one for the data...thanks AGain...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2007 23:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-directory-and-file/m-p/3098844#M735272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-19T23:23:29Z</dc:date>
    </item>
  </channel>
</rss>

