on ‎2012 Jun 05 9:51 AM
Hi Guru's,
I got a requirement i.e to limit file size when candidate tryinh to Upload document.
Went through many threads........please go through my requirement and help me.....
I got a badi HRRCF00_DOC_UPLOAD.
I'm sucessfull in getting File types and No.of Files, but couldn't get File Size using method CHECK_ATTACH_FILE_SIZE......
I'm using Class 'cl_gui_frontend_services' and method 'file_get_size', but getting sy-subrc as 4 i.e. 'not_supported_by_gui'........
I'm passing CONTENT ( xstring parameter ) to my custom filed ( declared as string as 'file_get_size' parameter file name is string ) and passing that to method 'file_get_siz'........
So GURU's plz suggest me a way to derive the file size.....
Just to mention : Even in method CHECK_ATTACH_FILE_TYPE, I'm using FM 'SKWF_MIMETYPE_OF_FILE_GET' with destination to get file type......without destination it dosen't work.
Regards
Sai
Request clarification before answering.
Hi,
Please try this code.
l_size = xstrlen( ls_atta_hex-content ).
Where ls_atta_hex-content is the content in XSTRING. All the best !!
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.