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

function module to check the file type/format.

Former Member
0 Likes
4,512

Hi,

Is there any function module to identify the type of file .xml, .txt, image

any suggestions.

Thank You.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,344

Hi,

I think the function module TRINT_FILE_GET_EXTENSION would be helpfull.

Regrads,

Lokesh

3 REPLIES 3
Read only

Former Member
0 Likes
1,344

Hi,

I think this SDN link will be helpful

[;

Regards

Vinod

Read only

Former Member
0 Likes
1,345

Hi,

I think the function module TRINT_FILE_GET_EXTENSION would be helpfull.

Regrads,

Lokesh

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,344

Hi Sami,

Please go through the below pseudo code :-

DATA : wa_fpath type rlgrap-filename VALUE 'C:\Documents and Settings\Administrator\Desktop\abc.txt',
            w_len type i.
w_len = STRLEN( wa_fpath ).
w_len = w_len - 4.
write : wa_fpath+w_len(4).  

"o/p : .txt

Thanks & Regards

- Always Leaner