SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a custom action message in UCES?

fanglin_ye
Participant
0 Kudos

Hello,

i want to add a custom action message in UCES java frontside:

e.g. actionMessages.addMessage(new UConsActionMessage(textManager, ActionMessage.ERROR, "SELFREG_ERROR_EMAIL1")  );

I've tried to search, where ist the text for the key "SELFREG_ERROR_EMAIL1". Failed. Could someone tell me, how can i add a custom action message? thx.

Regards,

Fanglin

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

where did you found this text key? Are you looking into the UCES code or the portal login screen? The class UConsActionMessage does not exist as well as the text key.

In the webbase-config you will find in the end entries like

<resource name="system" path="com.sap.fin.fscmbase.resources.system"/>

Here you can add or replace text resource bundles.

and you add message like

actionMessages.addMessage(

                    new ActionMessage(

                        "system",

                        ActionMessage.ERROR,

                        "error.action.notauthorized"));

Regards,

Andreas

View solution in original post

3 REPLIES 3

Former Member
0 Kudos

HI,

where did you found this text key? Are you looking into the UCES code or the portal login screen? The class UConsActionMessage does not exist as well as the text key.

In the webbase-config you will find in the end entries like

<resource name="system" path="com.sap.fin.fscmbase.resources.system"/>

Here you can add or replace text resource bundles.

and you add message like

actionMessages.addMessage(

                    new ActionMessage(

                        "system",

                        ActionMessage.ERROR,

                        "error.action.notauthorized"));

Regards,

Andreas

0 Kudos

Hi,

ich habe gefunden. The Text to the "SELFREG_ERROR_EMAIL1" has to be defined in SAP. Thanks for your reply.

Regards,

Fanglin

0 Kudos

Good to hear, please mark this as "answered" !