Skip to main content
Solved

Issue when using #USER_ID# inside an event

  • November 3, 2021
  • 3 replies
  • 247 views

Chamaka Wimalarathne
Hero (Partner)
Forum|alt.badge.img+15

Trying to use the following statement inside an event

 

IF  EXPENSE_RULE_VALUE in ('STD') and  #USER_ID# not in ('7889','013588') THEN

  Raise_application_error(-20199,'Select the expense t  : ' ||   EXPENSE_RULE_VALUE  || ' can not be used any more' );

END IF;

 

But we encounter the below error
 

[ORA-06550]: line 27, column 74:

PLS-00201: identifier 'IFSAPP' must be declared

ORA-06550: line 27, column 2:

 

any way to use the #USER_ID#  properly ?

 

Best answer by Bhagya Wickramasinghe

Hi @Chamaka Wimalarathne,

Can you please try using the method call fnd_session_api.get_fnd_user() instead of #USER_ID# ?

Best Regards,

Bhagya

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

Forum|alt.badge.img+13

Hi @Chamaka Wimalarathne,

Can you please try using the method call fnd_session_api.get_fnd_user() instead of #USER_ID# ?

Best Regards,

Bhagya


PvanderHeyden
Do Gooder (Customer)
Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 2 replies
  • March 30, 2022

hi all,
This error was reported:
    PL/SQL: ORA-00904: "GROSEBOOM": ongeldige ID.
To solve it this code was replaced:
       WHERE  cp.profile_name = 'TEK_ENGINEER_TL'
         AND  ucp.identity = #USER_ID#;
by this:
       WHERE  cp.profile_name = 'TEK_ENGINEER_TL'
         AND  ucp.identity = fnd_session_api.get_fnd_user();

Thanks !
Paul


Forum|alt.badge.img+3
  • Do Gooder (Customer)
  • 4 replies
  • March 31, 2022

Hi
If you still would like to use the replacement variable please use ‘#USER_ID’ otherwise it will interpret it as a variable (that isn’t declared) instead of a value.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings