Application Development 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: 

how to check file path

Former Member
0 Kudos

hi experts

I got one issue that in my file path when i am downloading a file (fileintern) ie on presentation server i have to drivers suppose eg C, D drive suppose if i give a 'E' or 'G' drive then i should get a message that concerned file path is incorrect.

plz help me as soon as possibel with example if u can.

1 ACCEPTED SOLUTION

former_member583013
Active Contributor
0 Kudos

You could use this FM <b>CH_CHECK_PATH</b>

Greetings,

Blag.

7 REPLIES 7

former_member583013
Active Contributor
0 Kudos

You could use this FM <b>CH_CHECK_PATH</b>

Greetings,

Blag.

Former Member
0 Kudos

CH_CHECK_PATH

no funtion module with that name

0 Kudos

It is under SAP ECC 6.0 -:)

Greetings,

Blag.

Former Member
0 Kudos

Use this function module below to check path and drive

PC_CHECK_PATH_WITH_DRIVE

former_member189059
Active Contributor
0 Kudos

try this function

CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST

Former Member
0 Kudos

Hi,

After Fetching File path Split file path ':' before into a field and Check it on condition

Thanks & Regards,

jogu_vinesh@yahoo.com

Former Member
0 Kudos

Hi Santu Setty,

Once you get the File Path you can get the first character using

variable+0(1) and then check for whether it is C or D.

**Reward for Useful answers***

Regards,

Vijay