Skip to Content
0
Former Member
May 23, 2013 at 02:53 PM

OPEN_DATASET_NO_AUTHORITY Issue on SAP RFC - php

104 Views

Hello Everyone,

I'm having problems with a PHP application that connects to SAP via RFC in order to display on screen .pdf files in a server folder. If such files do not exist, the function would create them and then display.

The error I'm getting via ST22 is:

23.05.2013 11:31:44 mxxxx_DEV RFC_USER 900 C OPEN_DATASET_NO_AUTHORITY CX_SY_FILE_AUTHORITY 0 519D47B5E8E35EDBE10000xxxxxxx

---

The line of code that is generating this error is:

OPEN DATASET v_filename2 FOR OUTPUT IN BINARY MODE.

Permissions on both file and folder are CHMOD777, however php error keeps returning a no authorization issue.

string(384) "<pre></pre><br><font size=4 color=red><pre>Errors found during saprfc-Calls:</font><br><font size=3 color=red><pre><br><b>saprfc::callFunction('Z_PRINT_OP')\n saprfc_call_and_receive(): Call error: RFC Error Info :\nKey : RFC_ERROR_SYSTEM_FAILURE\nStatus : \nMessage : No authorization to open the file /xxx/PAYMENT_ORDERS/xxxx-2012.pdf.\nInternal: \n</b></pre></font>"

Since I was not familiar with SAP Basis Roles and permission, I did some research myself and suggested the Basis team to include the authorization

object S_DATASET for the user RFC_USER. However, this did not solve the problem. Is ther any other auth. object, role or permission that could be added to the user Basis wise?

I would really appreciate any help on this issue. Thanks in advance!!