‎2007 Sep 07 2:06 PM
hi abapers,
how to check whether the file is there or not in bdc(unix)?
‎2007 Sep 07 2:10 PM
Hi
For Local file
CALL The method CL_GUI_FRONTEND_SERVICES=>FILE_EXIST (Check it in SE24)
For application server file
OPEN DATASET P_FILE ....................
if sy-subrc ne 0.
Message 'File does not exist' type 'E'.
ENDIF.
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
‎2007 Sep 07 2:10 PM
Hi
For Local file
CALL The method CL_GUI_FRONTEND_SERVICES=>FILE_EXIST (Check it in SE24)
For application server file
OPEN DATASET P_FILE ....................
if sy-subrc ne 0.
Message 'File does not exist' type 'E'.
ENDIF.
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
‎2007 Sep 07 2:10 PM
Hi,
You need to check using the OPEN DATASET, if the SY-SUBRC = 0 then the Fiels is there if not then the fiel is not there
Regards
Sudheer