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

string related

kesavadas_thekkillath
Active Contributor
0 Likes
531

C:\Documents and Settings\Administrator\Desktop\t.kesav\bdc_excel.xls

from the above path how can i get only the file name 'bdc_excel.xls'

plz help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

Hi,

<b>SO_SPLIT_FILE_AND_PATH</b> --> Split a fully pathed filename into a filename and a path.

Regards

Sudheer

2 REPLIES 2
Read only

Former Member
0 Likes
471

hi,

use this FM.

CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
COMPLETE_FILENAME = COMPLETE_FILENAME_VALUE
* CHECK_DOS_FORMAT =
IMPORTING
DRIVE = DRIVE_VALUE
EXTENSION = EXTENSION_VALUE
NAME = FILE_NAME
* NAME_WITH_EXT =
PATH = PATH_VALUE
* EXCEPTIONS
* INVALID_DRIVE = 1
* INVALID_EXTENSION = 2
* INVALID_NAME = 3
* INVALID_PATH = 4
* OTHERS = 5
 
write file_name.

Note : pls chk the type of file_name in the FM.

Rgds

Reshma

Read only

Former Member
0 Likes
472

Hi,

<b>SO_SPLIT_FILE_AND_PATH</b> --> Split a fully pathed filename into a filename and a path.

Regards

Sudheer