REPORT ZTEST_001.
PARAMETER: P_DIR TYPE PFEFLNAMEL DEFAULT '/usr/sap/trans'.
DATA: BEGIN OF IT_FILEDIR OCCURS 10.
INCLUDE STRUCTURE SALFLDIR.
DATA: END OF IT_FILEDIR.
START-OF-SELECTION.
CALL FUNCTION 'RZL_READ_DIR_LOCAL'
EXPORTING
NAME = P_DIR
TABLES
FILE_TBL = IT_FILEDIR.
LOOP AT IT_FILEDIR.
WRITE: / IT_FILEDIR-NAME.
ENDLOOP.
阅读(506) | 评论(0) | 转发(0) |