Posts

Showing posts from March, 2021

SAP ABAP - Read All Files In Application Server Directory

  *&---------------------------------------------------------------------* *& Report ZREAD_FILE_AL11 *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT  ZREAD_FILE_AL11 . constants :   yes      type  flag  value  'X' ,    no       type  flag  value  space ,   src_dir  type  epsdirnam  value  '/usr/sap/share/files'. *** START OF - Directory data :  v_err  type  i . data :  dir_name  type  epsdirnam ,       t_dir     type  table  of  zsepsfili  with  header  line .   ""as output data :  file_source       type  string ,       file_dest         type  string ,       file_temp         type  string ,       file_path         type  string ,       folder ( 200 )       type  c ,       add_ext_par ( 255 )  type  c ,       x_rtr ( 1 ) ,       x_ret2            type  bapiret2 ,       xt_ret2           type  table  of  bapi_matreturn2  with  header  li