User is getting RfcInvoke failed (RFC_ABAP_EXCEPTION): NOT_AUTHORIZED_RFC_MAT_BAPI this error while executing MM02 longtext script.
This error is because of missing authorizations.
Please see below application trace:
"S_RFC Authorizations for BUS1001" is missing, after getting this access issue got resolved. Basis team need to provide this access