Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Finding File size

Former Member
0 Likes
670

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.

2 REPLIES 2
Read only

former_member787646
Contributor
0 Likes
537

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

Read only

0 Likes
537

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