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 comment
10|10000 characters needed characters exceeded

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 comment
    10|10000 characters needed characters exceeded