Skip to Content
avatar image
Former Member

How to check if a file exists in Web Dynpro

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 25, 2010 at 12:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.