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

Error when using C_DIR_READ_START

Former Member
0 Likes
3,663

Hi!

I'm trying to list local files with sap functions C_DIR_READ_START, C_DIR_READ_NEXT and C_DIR_READ_FINISH, like in this link:

But doesn't work when called the function C_DIR_READ_START with local path, the return code error is 2.

This happens only in my client, in others clients this works perfectly.

Someone knows what is this problem? It is configuration?

Tnx!

3 REPLIES 3
Read only

Former Member
0 Likes
2,285

After function:

CALL 'C_DIR_READ_START'

ID 'DIR' FIELD DIRNAME ID 'FILE' FIELD FILENM

ID 'ERRNO' FIELD FILE-ERRNO

ID 'ERRMSG' FIELD FILE-ERRMSG

The error message in 'ERRMSG' is:

"opendir: No such file or directory"

Read only

0 Likes
2,285

Hi Janfer,

Wer u able to solve it.M facing similar issue....

Read only

0 Likes
2,285

Filenm is case sensitive