12-03-2021 11:01 PM
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
12-04-2021 9:09 AM
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.
12-05-2021 1:27 PM
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?
12-05-2021 2:06 PM