Skip to Content

Get Filesize with class CL_GUI_FRONTEND_SERVICES

Hello,

i must show file informations in a table view. I found the class CL_GUI_FRONTEND_SERVICES. There are a lot of file methods included (FILE_EXIST, FILE_GET_SIZE, ...). Unfortunately the error HTTP 500 displayed in the Internet Explorer. On the SAP system a shortdump with the Error OBJECTS_OBJREF_NOT_ASSIGNED is generated.

Does anyone know where is the problem ?

Thanks

Hubert

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 28, 2004 at 06:49 PM

    Yes you can't use CL_GUI_FRONTEND_SERVICES from a BSP page. CL_GUI_FRONTEND_SERVICES using activeX controls running within the SAPGui to perform most of its actions. Since you have not connection to a SAPGui during a BSP page, you can use this class.

    You might want to look at scripting against the Microsoft FileSystem Object. There is a size property of both the folder and file object. A search of Microsoft's website will show lots of documentation on this object and code samples in VBScript and JavaScript. This does opens up all kinds of security concerns from the browser however.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.