We implemented a modification where triggering an action creates a background job executed by the IFSAPP user to update certain data.
We also have an event configured to prevent modifications to this data when the user is IFSAPP.
How can we adjust this event so that it is not triggered when the user is IFSAPP and the action is executed through a background job?
is it possible?
Thank you in advance
DECLARE
cf$_userid VARCHAR2(100);
BEGIN
-- Récupérer l'utilisateur IFS
cf$_userid := ifsapp.fnd_session_api.get_fnd_user();
-- Interdire l'utilisateur IFSAPP
IF cf$_userid = 'IFSAPP' THEN
Error_sys.Appl_General(
'SepaPaymentAddress',
'IFSAPPMODIFYRIB: IFSAPP n''est pas autorisé à modifier les RIBs'
);
END IF;
END;