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

Validate file path on application server without logical file name.

former_member224405
Participant
0 Likes
1,891

HI

I am trying to use the FILE_VALIDATE_NAME FM to validate the file path to read APP server file but my requirement is that i dont want to use logical file name let me know work around.

Thanks,

HI

I am trying to use the FILE_VALIDATE_NAME FM to validate the file path to read APP server file but my requirement is that i dont want to use logical file name let me know work around.

Thanks,

3 REPLIES 3
Read only

Former Member
0 Likes
1,636

Hi,

I think you'll need to use OPEN DATASET and then check SY-SUBRC.

regards,

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,636

FILE_VALIDATE_NAME requires a logical file name, so basically you can't.

The "i dont want to use logical file name" is the root cause of the SCI error message, for security reasons (counter the threat of filepath traversal) you have to define (and respect) a logical file name?

Read only

mynynachau
Community Manager
Community Manager
0 Likes
1,636

Closing this question as it is a duplicate of: https://answers.sap.com/questions/13170120/directory-traversal-in-sap-abap.html

Best regards

Chau (SAP Community Moderator)