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

Find the path of a string using methods

Former Member
0 Likes
476

Dear Gurus ,

I have the path "
filestltrv\sap\mauals\text.xls' and i want using Methods in ABAP to find the path '"
filestltrv\sap\mauals\'.

I suppose using loops and with finding '\' i will do it .

Is any other Way ????

Thanks a lot !!!!

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
440

Hello,

The FM: SO_SPLIT_FILE_AND_PATH is what you are looking for.

BR,

Suhas

Dear Gurus ,

I have the path "
filestltrv\sap\mauals\text.xls' and i want using Methods in ABAP to find the path '"
filestltrv\sap\mauals\'.

I suppose using loops and with finding '\' i will do it .

Is any other Way ????

Thanks a lot !!!!

1 REPLY 1
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
441

Hello,

The FM: SO_SPLIT_FILE_AND_PATH is what you are looking for.

BR,

Suhas