Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

File check possible ??

Former Member
0 Likes
1,488

Hi experts,

I need to find the existence of the file at specific location...is it possible

<<text removed by moderator>>

thnx in advance.

Edited by: Matt on Feb 28, 2009 7:04 PM - Please do not offer rewards or points

1 ACCEPTED SOLUTION
Read only

former_member530652
Participant
0 Likes
1,190

U can do it by using Func. Moduel DX_FILE_EXISTENCE_CHECK or static class CL_GUI_FRONTEND_SERVICES=>FILE_EXIST

6 REPLIES 6
Read only

former_member242255
Active Contributor
0 Likes
1,190

if you want to check the app.server existence hen you can write the OPEn dataset and if it is not succesfull..and all

else check the FM DX_FILE_EXISTENCE_CHECK

regards.

sravan

Edited by: Sravan Kumar on Feb 27, 2009 7:48 AM

Read only

0 Likes
1,190

Hi,

Example:

start-of-selection .

CALL FUNCTION 'DX_FILE_EXISTENCE_CHECK'

EXPORTING

FILENAME = file

PC = 'X'

IMPORTING

FILE_EXISTS = FILE_EXISTS

EXCEPTIONS

RFC_ERROR = 1

FRONTEND_ERROR = 2

NO_AUTHORITY = 3

OTHERS = 4

Try like this.

Neelima.

Read only

former_member530652
Participant
0 Likes
1,191

U can do it by using Func. Moduel DX_FILE_EXISTENCE_CHECK or static class CL_GUI_FRONTEND_SERVICES=>FILE_EXIST

Read only

Former Member
0 Likes
1,190

HI,

Yes for

Presentation Serevr - class CL_GUI_FRONTEND_SERVICES=>FILE

Appication Server - Open Dataset <filename> In INPUT mode....

Read only

Former Member
0 Likes
1,190

Hi,

for seeing the file in the application server you will get it from AL11.

existance of the file in the persentaion server check this

for existance in the application server check this

hope this will useful to you.

Regards!

Read only

Former Member
0 Likes
1,190

Try this

CL_GUI_FRONTEND_SERVICES=>FILE_EXIST method.

Regards,

Joan