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: 

Read binary data from a shared file

0 Kudos

Hi,

I'm trying to read Binary data from a shared folder.

pathExample: \\shares\SAP\test_download\file.txt

I tried to read data with

'OPEN DATASET I_FILE FOR INPUT IN BINARY MODE.'

But I'm always facing sy-subrc = 8. Also the message ID ans message number are DA-300 which is : "No active nametab exists for FILEA31I."

Does anyone have any idea about the issue.

PS: When I execute the 'AUTHORITY_CHECK_DATASET' for the same path, I don't have any error.

Regards,

Hanen

3 REPLIES 3

Sandra_Rossi
Active Contributor

If you want to use OPEN DATASET (file on SAP application server), ask your admin to make sure how SAP application server can access this shared folder.

If your ABAP program is a dialog program, and the shared folder is defined on user's laptop, you may use the method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD to read the flie on this shared folder.

0 Kudos

Thanks for the response. Actually I'm not using a program, I'm using an odata service to read binaray data from share folder.

So the SAP application server need access to the shared folder, right?

That's right.