cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if a file exists in Web Dynpro

Former Member
0 Kudos

Dear experters:

I have a business requirments which is to check if a file exists both in local PC and application server using web dynpro.

I have founded a FM DX_FILE_EXISTENCE_CHECK to do it. But it seems that it doesn't work in web dynpro when I used it to check a local file in my PC. the Exception 'FRONTEND_ERROR' of the FM was always throwen.

I don't know why it did. may I get any suggestion from you or give me some other solution to do it?

Accepted Solutions (0)

Answers (1)

Answers (1)

cris_hansen
Advisor
Advisor
0 Kudos

Hi Liyan,

You can try to use the methods from class cl_gui_frontend_services instead of using a FM that might not work.

I hope this helps.

Best regards,

Cristiano

Former Member
0 Kudos

Hi Cristiano Hansen,

thanks a lot for your reply. I am Liyan's colleague.

Class cl_gui_frontend_services canot be used without SAP GUI, the same problem to FM.