Skip to main content
Solved

Detect if running in background

  • March 3, 2026
  • 3 replies
  • 16 views

Forum|alt.badge.img+7

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;

 

 

Best answer by knepiosko

Hi

Try to mix it with Transaction_Sys.Is_Session_Deferred function.

3 replies

Forum|alt.badge.img+17
  • Superhero (Partner)
  • Answer
  • March 3, 2026

Hi

Try to mix it with Transaction_Sys.Is_Session_Deferred function.


Forum|alt.badge.img+7
  • Author
  • Sidekick (Customer)
  • March 3, 2026

Thank you, that did it for me.

IF NOT Transaction_Sys.Is_Session_Deferred THEN

 

Is it possible to get the background job name please?

 

 


Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • March 4, 2026

Maybe this?

SELECT description 
FROM transaction_sys_local_tab
WHERE id = Transaction_SYS.Get_Current_Job_Id