When running or monitoring SAP jobs (specifically BW process chains) using the Workload Automation Agent for SAP, the AutoSys scheduler logs report the following error:
CAUAJM_E_10728 Failed to process an incoming AFM string: [TIMESTAMP] [JOB_DETAILS] STATE UNKNOWN Status(Unknown) LStatus(RFC_READ_TABLE- JCoException: NOT_AUTHORIZED) Plugin(sap) User(WA_AGENT)
The job may remain in STARTING or RUNNING status in AutoSys, or it may transition to STATE UNKNOWN.
The SAP plugin uses the standard SAP function module RFC_READ_TABLE to query status tables, such as RSPCPROCESSLOG, for BW process chains. The error occurs because the SAP RFC user account configured in the agent lacks the necessary authorization objects to execute RFC_READ_TABLE or to read the specific target table.
To resolve this issue, the SAP Basis team must grant the following authorizations to the RFC user account used by the Workload Automation Agent:
Authorization Object S_RFC
Grant EXECUTE activity for the function group SDTX. This function group contains the RFC_READ_TABLE function module.
Authorization Object S_TABU_DIS or S_TABU_NAM
Grant read access to the specific table used for monitoring. For BW Process Chains, this is typically:
Verification
1. After granting permissions, restart the failed job or wait for the next monitoring cycle.
2. Review the sap_communicator.log located in the agent's log directory. The JCoException: NOT_AUTHORIZED should no longer appear, and the job status should correctly reflect the state in SAP.
If the error persists, enable JCo tracing to identify the exact missing authorization object:
agentparm.txt file.jco.trace_level=3 and jco.trace_path=/tmp (or a valid path)..trc files for specific NOT_AUTHORIZED details.To speak with a customer representative or a Support Engineer see Contact Support. Scroll to the bottom of the page and click on the respective region.