on 09-02-2013 3:47 PM
Hi all,
i have to do validate that all attached file should not be more than 60 mb. we need to get file the file size ..?
I am assuming you are using file upload UI element, the data should have been binded to element
of type xstring?
If that's the case a simple abap statement to get the number of bytes on a xstring should work
http://help.sap.com/abapdocu_702/en/abendescriptive_functions_binary.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jiten,
Take a look at demo component WDR_TEST_EVENTS and its view FILEUPLOAD in your system. You can get the size of an uploaded file by using built-in function xstrlen...
size = xstrlen( xstring_file_content ).
This will give you the size of the file in bytes.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.