‎2008 Jul 16 9:45 AM
Dear ABAPers,
I need your help to find out file size in the method CHECK_ATTACH_FILE_SIZE in a BADI HRRCF00_DOC_UPLOAD. Please suggest me how to get uploaded file size into a variable.
Thanks&Regards,
Srinivas.
‎2008 Jul 17 7:56 AM
Hi
Use the Function Module "WS_QUERY". In that one parameter is there by the name "QUERY".
You set the value "FL" for that one to get the File Length.
Eg.
CALL FUNCTION 'WS_QUERY'
EXPORTING
FILENAME = <FileName with Path>
QUERY = 'FL'
IMPORTING
RETURN = RTN_VAR.
Hope this would help you.
Murthy
‎2008 Jul 18 8:18 AM
Hi Murthy,
Thanks for your reply. Given function module 'WS_QUERY' is working fine whenever using in SE38. But the same function module is not getting executed if I use this in methods of BADIs.
I am facing same problem with the function module GUI_GET_FILE_INFO also.
Please help me if you have any idea on this.
Thanks&Regards,
Srinivas