04-23-2007 8:55 PM
Hi,
Iam writing some files to APP server .Iam unable to check those files by using AL11. How to check those files in APP server?
04-23-2007 8:57 PM
Hi,
You can use this FM EPS_GET_DIRECTORY_LISTING.
Also please try this FM /SAPDMC/LSM_F4_SERVER_FILE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
* Open the Browse Dialog Box on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
IMPORTING
serverfile = p_apath
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
* No need to check for sy-subrc
ENDIF.
Regards,
Ferry Lianto
04-23-2007 8:57 PM
Hi,
You can use this FM EPS_GET_DIRECTORY_LISTING.
Also please try this FM /SAPDMC/LSM_F4_SERVER_FILE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
* Open the Browse Dialog Box on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
IMPORTING
serverfile = p_apath
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
* No need to check for sy-subrc
ENDIF.
Regards,
Ferry Lianto
04-23-2007 9:03 PM
Ferry,
I want to see the contents in the file also .How can i check contents in the file?
04-23-2007 8:57 PM
04-23-2007 9:08 PM
Hi,
You can try this FM EPS_READ_BLOCK or EPS_READ_TEXT_BLOCK to read a block of input file content.
Otherwise, you need to use READ DATASET statement to read all contents.
Regards,
Ferry Lianto
04-23-2007 9:25 PM
This f.m TRINT_DISPLAY_FILE_CONTENTS will give contens in the file.