0% found this document useful (0 votes)
24 views

Form Data Begin of Occurs Include Structure Data End of Data Like Like Like Like

This document defines variables and calls functions to upload files from a UNIX directory to SAP. It defines variables for the UNIX directory path, file name, and file mask. It calls a function to retrieve the file name, passing the directory path and mask. It then calls another function to read the directory contents into a table, importing the file name, date, and time on exceptions.

Uploaded by

mkumarshahi
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Form Data Begin of Occurs Include Structure Data End of Data Like Like Like Like

This document defines variables and calls functions to upload files from a UNIX directory to SAP. It defines variables for the UNIX directory path, file name, and file mask. It calls a function to retrieve the file name, passing the directory path and mask. It then calls another function to read the directory contents into a table, importing the file name, date, and time on exceptions.

Uploaded by

mkumarshahi
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

form unix_upload.

data: begin of l_dir_list occurs 30." File list of the directory


include structure epsfili.
data: end of l_dir_list.
data: l_uxdir like epsf-epsdirnam,
l_uxfile like rlgrap-filename,
l_pcfile like rlgrap-filename,
l_mask like epsf-epsfilnam.
* l_uxdir(100) TYPE c.
data: lv_filename type string.
call function 'F!"_#"$_%&'"'
exporting
client ( sy-mandt
logical_filename ( p_uxpat)
operating_system ( sy-opsys
parameter_* ( ' '
importing
file_name ( l_uxdir
exceptions
file_not_found ( *
ot)ers ( +.
l_mask ( p_prefix.
call function '",-_#"$_./"0$1/2_!-$%#'
exporting
dir_name ( l_uxdir
file_mask ( l_mask
* IMPOTI!"
* #I_!$ME %
* FI&E_'O(!TE %
* EO_'O(!TE %
tables
dir_list ( l_dir_list
exceptions
invalid_eps_subdir ( *
sapgparam_failed ( +
build_directory_failed ( 3
no_aut)ori3ation ( 4
read_directory_failed ( 5
too_many_read_errors ( 6
empty_directory_list ( 7
ot)ers ( 8
.
if sy-subrc 9: 0.
* ME))$"E I# )Y*M)"I# TYPE )Y*M)"TY !(M+E )Y*M)"!O
* ,IT- )Y*M)".1 )Y*M)"./ )Y*M)".0 )Y*M)".1.
endif.

You might also like