on 04-19-2018 8:45 AM
How to read file properties such as filename, file size from webdynpro application? What class or method can we use to get the properties?
I'm trying to read the file properties such as filename, size when the document is accessed via web dynpro application. Through SAP GUI I'm able to get file properties, but from webdynpro how can I get these properties?
Do we have any class that can be reused or any possible way?
Hi Akshay,
Take a look at the UI elements FileUpload and FileDownload. Filename is a property of those UI elements. You can determine the file size via
bytes = xstrlen( file_data ).
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amy,
Thanks for the answer, but I don't think this will work in my case. I'm having a different scenario. In the SAP GUI we use "CL_GUI_FRONTEND_SERVICES" class, do we have any alternative which provides similar kind of services for the webdynpro?
I have an application like an inbox, where an HR can access or reject the ticket. so this has both GUI and web dynpro supported. I just have to read additional properties of file that has been added to the ticket. so when calling from GUI it works, but for web dynpro we cannot use the class that I've mentioned above. I'm looking for another class which provides similar kind of services which support web dynpro application. I cannot use file upload or file download UI elements.
Regards,
Akshay.
Hi Amy,
Yes, a file previously added to the ticket will be available to download for the user in webdynpro. but along with that when a user selects a ticket, I want the file path or filename and file size kind of properties of the document that has been attached to the ticket. Is it possible to read such file properties? Does SAP allow to read the file properties in webdynpro just like it allows SAP GUI?
Thanks
Akshay
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.