I get exception AUTHORITY_NOT_AVAILABLE when I make a RFC call from external program.
I use batch user provided to make connection and call function Rfc_Call_Transaction_Using.
tcode = 'FBV1' and mode = 'N' is passed.
Authorization check for RFC access is as:
How do we go about debugging this issue?
Are we missing anything here?
You might want to check the below links
maybe the user does not have authorizations for accessing the remote system
Hope this helps
For RFC execution your user will require more authorization than when executing the transaction under Sapgui, Try to call AUTHORITY_CHECK_RFC before Rfc_Call_Transaction_Using. Also user must be allowed to the function group containing the FM you use to call RFC (Authorization object S_RFC)