cancel
Showing results for 
Search instead for 
Did you mean: 

SO_split_file_and_path function module

Former Member
0 Kudos

HI,

Im using so_split_file_and_path ,,but the problem is when i call the fn module in webdynpro no errors ,butnot getting values in importing parameters..what will be the type of that strippedname and file path

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Instead try Function module "TRINT_SPLIT_FILE_AND_PATH".

former_member199125
Active Contributor
0 Kudos

Hi Vasavi,

Both the parameters are string types only. Make sure you provide the full path name.

Regards

Srinivas

Former Member
0 Kudos

hi

im getting full path name ..stripped name is not getting

Former Member
0 Kudos

Hi Vasavi,

Wht is your requirement??

You want file name seperately?? if yes you can use another..

DATA filename TYPE string.

CALL METHOD cl_fitv_gos=>split_path

EXPORTING

iv_path = lv_header

IMPORTING

ev_filename = filename.

also check this,,,.

Cheers,

Kris.

Former Member
0 Kudos

Hi Vasavi,

Check The Function Module it is displaying correctly .

check this code it is working fine and u can get the path and strippedname

DATA filename TYPE string.

DATA file_path TYPE string.

TEMP = 'C:/RAJ.DOC'.

CALL METHOD cl_fitv_gos=>split_path

EXPORTING

iv_path = TEMP

IMPORTING

ev_filename = filename

ev_path = file_path.

Regards,

Basuvaraj.P

Edited by: basavaraj.p on Jul 14, 2011 2:26 PM

Former Member
0 Kudos

Hi Kris,

Thank you for giving the method name it is working for me now for my requirement . However i have one more point how to find the file size of the filename in bytes which is returned  the method.

i wanted the file size as well . If you could let me know that would great.

Thanks

Sayamala

Former Member
0 Kudos

Hi Vasavi,

Go to debugg mode and check data is coming or not.

DATA: file_name LIKE  rlgrap-filename,
file_path LIKE  rlgrap-filename.

CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
EXPORTING
full_name     = 'C:\vasavi.doc'
IMPORTING
stripped_name = file_name
file_path     = file_path.

Please refer SAP NOte

769439 Documents with long file names cannot be opened

734889 SAPoffice: File names truncated (multi-byte code page) .

Cheers,

Kris.

Former Member
0 Kudos

Hi kissnas,

I checked thru ddebuggiung also..im not getting the values ..but in se37 its working fine..

Former Member
0 Kudos

Hi Vasavi

You are not getting the values exported by the FM though it has imported values from your program values to it. Is this the case?

Revert

Gaurav