Display custom error message in enhancement spots
Hi all,
Is there someone here who've encountered having the need to display custom error message in an enhancement spot? Could you help me please.. I can't find any reference from the net.
Thanks in advance
Regards,
Aris
Hi,
The error message can be only displayed in enhancement spots based on thr program flow.
You have to determine where its getting called for ex: in PBO or PAI etc.....
You have to find the right place to display the error messages . for ex: using a memory id ......
Similar Messages
-
ICI - How to display custom error messages in SAP CRM
Hello,
we are working on a custom Contact Center which interfaces with SAP CRM Version 7 with Enhancement Package over ICI.
The basic call functions like accepting, hanging up, holding and retrieving are fully implemented and are working already.
Our goal is to display error messages in the CRM so that clients know there is something wrong, for example why he can't be log in successfully (e.g. the telephony server isn't reachable).
We already found the ICI Documentation file which provides us the CRM SOAP error codes and tried to send SOAP Fault messages, but never got
them to screen.
Please find an attached example screenshot what we mean exactly, reproduced by trying to make a call with CRM user while BCM CDT isn't
running in the background.
Regarding to this topic we've the following questions:
- Is it possible to display custom error messages on the CRM or is this functionality limited to SAP?
- Could you provide us some further information on how to use this feature exactly (implementation details?) and how the SOAP XML should look like to get it work?
Thank you in advance!
Best regards
René HolyNewUser7 wrote:
Please correct me if I am wrong
I need to create an entity adapter and attach an error handler with the adapter? or can i handle that in the event handler itself. I coulnt find any api for handling errorsYou can do it both ways but since we are talking about event handler now, then in 9.x you need to extend com.thortech.xl.client.events.tcBaseEvent class for creating a event handler. In tcBaseEvent class there are various flavors of handleError method. So use that as per my note earlier and you should be good.
HTH -
Error message in enhancement spot
Hi...,
I want to give error message in enhancement spot.
I am using FM 'CR_BT_ORDER_POST'.
wHEN USER WILL TRY TO CHANGE SERVICE ORDER.i WANT TO THROUGH ERROR MESSAGE.AND KEEP THE CURSOR ON SAME SERVICE ORDER SCREEN
But now it is coming out of IW32.WHEN I AM GIVING ABORT MESSGAE TYPE.ERROR MESSAGE IS NOT ALLOWED IN UPDATE TASK MODE.
tHANKS,
aNILHi,
I think you have to use the function module 'POPUP_TO_CONFIRM' give the error message what you want to and if the user press any button keep the control on the same screen.
Regards,
Himanshu -
Cannot display custom error message in CRM_MKTLIST_BADI
We did implement the following BADI BADI Name: CRM_MKTLIST_BADI
Interface: IF_EX_CRM_MKTLIST_BADI Method: MAP_AND_CONVERT_DATA
This enhancement is for suport the extension field for create new BP in
external list management (transaction CRMD_MKTLIST). The BP creation
process work properly but we cannot display our custom error message,
only SAP standard error message is shown. We did try using the export
parameter ET_MKTLIST_E but it does not work as expected, custom message
still cannot display.
How we can be show the custome error message ?
Thanks in advance.
Supreeya K.Hello Supreeya,
have you tried to post this question in the SAP CRM: Webclient UI - Framework forum?
Regards
Gregor -
Display Custom Error Message in OIM 11g
Hi,
I'm trying to display an error message from a validation event handler but seems that am missing something. When the "oracle.iam.platform.kernel.ValidationFailedException" is thrown from a validation handler an error message is displayed: "An error occurred". If an error code is provided (see code below) then the message looks like: "An error occurred. The corresponding error code is ERR-0001". I guess that some resource bungle with corresponding messages should be provided.
the code used:
package test;
public class UserGeneralValidationHandler implements oracle.iam.platform.kernel.spi.ValidationHandler
@Override
public void validate(long processId, long eventId, Orchestration orchestration)
throws ValidationException
String errorCode = "ERR-0001";
String message = "Simple validation message.";
ValidationFailedException ex = new ValidationFailedException(message);
ex.setProcessID(processId);
ex.setErrorCode(errorCode);
throw ex;
Q:
1.What is missing for complete solution?
2.What is the algorithm that used by OIM to find default or non default resource bundle?
3.How to change out-of-box validation messages? For a sample "The organization ABC does not exist." message is shown if non existing organization is provided during user creation and I'd like to have a different one.
Regards
Sergerename OIMUI.jar to OIMUI.zip
find logging_en and loggin.properties.
Modify the "IAM-2050512" error message with your custom message
Find Agent and agent_en.properties.
Find Note[ERROR_SUBMITTING_REQUEST].text. Modify the message. Make sure the message must be the same with in logging.properties("IAM_2050512")
Deploy
change the OIMUI.zip to jar
replace the existing OIMUI.jar
login to weblogic and redeploy OIM (oim.ear)
no need to restart OIM server.
Test:
create a request in web console again, you must see the custom message when you hit the submit button
hope this helps.
-rad -
Displaying Custom Error Message in ALV
Hello Experts,
Usually, when an error occurs in editable ALV, the standard WD ALV functionality marks the particular error cell in red and displays the error message.
I want the same functionality for custom error messages in event ON_DATA_CHECK. I'm able to display the message, but looking for a way to mark cells as well.
Please help....Hello friend,
I think this link will help you much more clear on the coloring of the ALV concepts.
http://help.sap.com/saphelp_smehp1/helpdata/en/5f/ec57c72a1349c8bfdda56d976e9399/frameset.htm
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393?QuickLink=index&overridelayout=true
Thanks,
Sri Hari -
How to display custom error message if the Required field is not entered?
Hi,
I have made one input field as required field in a view.
I want to display one custom error message ,if the required input field is not entered.
Please help me regarding this.
Thanks,
Deepikahi deepika....
First go to message pool under webdynpro components.
Create a new message there..of type error.
Enter your text.
Now to avoid null pointer exception , in wdDoInit(), initialise the value
wdContext.currentDateTimeElement().setDate("");
now create an action for submission of data. If field is empty, then within the button write:
msg = wdComponentAPI.getComponent().getMessageManager();
if(wdContext.currentDateTimeElement().getDate().equals(""))
msg.raiseMessage(IMessageCompTodatDateTime.ERROR,new Object[]{""},true) ;
between begin others put:
regards,
pinki
IWDMessageManager msg = null; -
How to display custom error message in Job log for batch processing
Hi All,
I am rexecuting one R/3 report in batch mode and i want to display all the custom error i have handled in job log when its executed from SM36,SM37. The custom error are like 'Delovery/Shipmet doe not exits' or others which we can display in online mode like message e100(ZFI) or any other way and accordingly we can handle the program control like come out of the program ro leave to transaction'Zxxx' or anything. But i want my program to be executed completely and accumulate all the error in job log of batch processing.
Can anyone tell me how can i do so...
Thanks,
AmritaHi,
Thats what i have done from the begining. I have written message like this:
Message i100(ZFI).
I was hoping to see this message in the log. But i cant see. Can you help me pleae... -
Can we display custom error message in user decision step screen.
Hi,
My requirement is to display error message when approver selects reject button in user decision step.
based on some condition i need to display error message in user decision screen when approver tries to
reject .
Please help
Thanks,
PhaniHi ibrahim,
Thanks for your Replay.
steps
1. cretae global class with interface IF_SWF_IFS_WORKITEM_EXIT.
2. cretae Event with importing parameter.
where i need to call EVENT_RAISED method ,do inned to call that method in
IF_SWF_IFS_WORKITEM_EXIT ?
how SWRCO_EVENT_AFTER_EXECUTION value is passed to method EVENT_RAISED ?
Thanks,
phani -
How to display custom error message in custom page
Hi,
I would like to show the exception details of custom component in my custom idoc page. Please let me know how to get the exception which is cached in Custom component in page.
ThanksHi,
Do they get a 404 error? If it is the case, you can customize error pages : [Custom Error Pages|http://help.sap.com/saphelp_nw70/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm].
Regards,
Pierre -
LSO_CHECK_BOOKING custom error messages are not displayed
Hi,
Good day! I am currently experiencing some problems displaying custom error messages from BADI LSO_CHECK_BOOKING. I have implemented this Badi and is appending error messages in CT_MESSAGE_TAB however when the message is displayed in portal, the custom message is not displayed. Instead, SAP displays a predefined error "Error When Creating Prebooking with the data entered..."
Is there a way for me to display my custom error message instead of the predefined SAP message?
Thanks a lot.
Cheers,
JamesHi James,
You have not mentioned, which portal you are using. Please see below, that there are differences in the learning and the admin portal:
Learning Portal:
The framework of the existing design of the Learning Portal does not
allow customer specific error messages to be displayed in the portal.
Only a generic message will be displayed when prebooking in the learning
portal if the BADI LSO_CHECK_BOOKING returns an error. The design of the
application does not expect to raise an exception from the BADI. If the
BADI processing is assumed to be unsuccessful, the messages filled by
the BADI will be ignored and a general error message will be displayed
in the portal.
So this is basically a design limitation.
Administrator Portal:
Have you tried e.g. the following notes?
SAP Note 1806593 Admin Portal: Message is not displayed while prebooking
SAP Note 1575238 LSO: BADI LSO_CHECK_BOOKING does not show warning messages
Regards,
Agnes -
Catch datetime exception and custom error message in SSRS
I currently working on create report by using SSRS. I have 2 parameters: [Start date] and [End date] to filter data from database and show it on report. I want to validate 2 datetime parameter as describe above. Please tell me a solution to do this.
For example:
When user type the text like: 4/15/2014mmm => System validation thrown a message: [The From Date not correct type]
But in my case, I want to receive a custom error message by myself.(Look like: [Date Invalid!])Hi Brain,
According to your description, you have a report with two parameters for user to input. Now you want to validate these two parameters and display custom error message when the date is invalid. Right?
In Reporting Service, it doesn’t provide any interference for us to modify the system error message (the text in grey color). That means we can’t modify the system message when error occurs. However we can create a textbox in this report, use custom code
and expression to display the custom error message. But this all based on the report is successfully running. So if error occurs during report processing, all the custom code and expression will not work. In this scenario, we find a workaround for you. We
use custom code to judge if the date is valid, if the users type an invalid date, we return a default value to make sure this report can successfully run. Then we use expression to control the visibility of tablix in this report and create a textbox to show
the custom error message. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
Go to Report Properties. Put the code below into custom code:
Public Shared a As Integer=0
Public Shared Function IsDate(d1 As String,d2 As String) as Integer
Try
FormatDateTime(d1)
FormatDateTime(d2)
Catch ex As Exception
a=1
End Try
return a
End Function
Create two parameters. One is StartDate, the other is EndDate. Set the data type of these two parameters Text.
Create a filter for StartDate, put the expression below into Value:
=IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!StartDate.Value,"1/1/2012")),CDate("1/1/2012"))
Create a filter for EndDate, put the expression below into Value:
=IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!EndDate.Value,"1/1/2013")),CDate("1/1/2013"))
Ps: In step3 and step4, the date(“1/1/2012”, “1/1/2013”) in the expression are the default we set to make sure the report can successfully process. You can set any date existing in your dataset.
Use the expression below to set the visibility of the tablix:
=IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,false,true)
Create a textbox, put the expression below into it:
=IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,"","Date invalid")
Save and preview. It looks like below:
Reference:
SSRS Calendar and Date Restriction
Errors and Events Reference (Reporting Services)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
-
Custom Error message in Login Page
Hi,
I am using MVC framework for my project. I want to display custom error messages to the user in the Login page(JSP).
For eg: invalid password, password has been expired etc. How do I pass these messages from Java to my login page & display it?This is a sample action class for login page in struts : -
package xxx;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import LoginForm.java;
public class Action extends org.apache.struts.action.Action
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ActionErrors errors = new ActionErrors();
ActionForward forward = new ActionForward(); // return value
String username;
String password;
try {
LoginForm lf = new LoginForm;
username =lf.getUserName();
password = lf.getPassword();
if( username== null)
forward=mapping.getInputForward();
if( (username == "admin" ) && ( password="admin"))
// do something here
} catch (Exception e) {
// Report the error using the appropriate name and ID.
//Errors will be caught here.
errors.add("name", new ActionError("id"));
// If a message is required, save the specified key(s)
// into the request for use by the <struts:errors> tag.
if (!errors.isEmpty()) {
saveErrors(request, errors);
// Forward control to the appropriate 'failure' URI (change name as desired)
// forward = mapping.findForward("failure");
} else {
// Forward control to the appropriate 'sucuess' URI (change name as desired)
forward = mapping.findForward("success");
// Finish with
return (forward);
You need to have LoginForm.java as Model and Login.jsp as View . Action.java will be your controller. -
Reg:- Custom Error Message for 404 error in KM Document iView
Hi All,
We have a requirement to display a custom error page instead of the standard"404 - The requested resource is not available" displayed in KM document iView, when the resource in question doesn't exist.
Is it possible to display custom error message? If so, how can we achieve this functionality? What are the settings to be made?
Appreicate your help.
Thanks and Regards,
PavithraHi Ravi,
Thank you for the reply.
But the scenario what I am talking about is different from the one mentioned in the link.
I am using a KM Document iView. In the iView parameter, Path to Document, I have given the path to a document which does not exist in KM.
For example, Path to Document - /documents/Test Folder/abc.html.
There is no document by the name abc.html in KM.
In this case, I get an error called "404 - The requested resource is not available." How can I get rid of this message and show a custom message instead?
Please note that, this message appears at the iView level (and not page level as mentioned in the link)
Appreciate your help.
Regards,
Pavithra -
Component level display of the Custom Error Message in 11g
Iam using custom error handler that extends the default DCErrorHandlerImpl class to handle the Custom exceptions thrown from the service layer, and able to see the exception displayed in the ADF UI in a popup window.
How can we do Customization in order to display the Custom error message inline with a component (i.e. associated with a specific UI component with the arrow mark look and feel ) instead of the global level message displayed as a pop up window on the ADF UI page? Please suggest.
Thanks,
Kayal.
Edited by: user11217416 on Feb 15, 2012 6:07 AM
Edited by: user11217416 on Feb 15, 2012 6:14 AMHi,
Try as follows
final static int MSG_FATAL = 1;
final static int MSG_ERROR = 2;
final static int MSG_WARN = 3;
final static int MSG_INFO = 4;
public static void showMsgForRelevantComponentAll(int iSeverity, String sMsg, UIComponent uIComponent) {
FacesMessage msg = null;
switch (iSeverity) {
case MSG_FATAL:
msg = new FacesMessage(FacesMessage.SEVERITY_FATAL, null, sMsg);
break;
case MSG_ERROR:
msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, sMsg);
break;
case MSG_WARN:
msg = new FacesMessage(FacesMessage.SEVERITY_WARN, null, sMsg);
break;
case MSG_INFO:
default:
msg = new FacesMessage(FacesMessage.SEVERITY_INFO, null, sMsg);
FacesContext facesContext = FacesContext.getCurrentInstance();
facesContext.addMessage(uIComponent.getClientId(facesContext), msg);
}
Maybe you are looking for
-
How do I create a new apple store account when my phone tells me that I have exceeded the maximum limit on this phone
-
I lost my Visual Voicemail when upgrading to iphone 5. New phone was set up from itunes backup of iphone4 but my Mac tells me there is an iCloud back up of my phone prior to this date. Will my Vis Voicemail be on this and can I get it on my new phone
-
Problem with emails getting stuck
I have an email stuck and I can't delete it. I tried to send it to many many people and now the error message comes up "The server does not recognise the recipients". I have tried to find the answer in the current forums but can't find one. How do
-
9.3.0 install questions
I need assistance with several questions & issues regarding SP2 vs SP3 Using my Enterprise Distribution License Agreement (http://get.adobe.com/reader/enterprise/) I am able to download the installer code for Adobe Reader v9.3.0 for Windows XP SP2 an
-
Adding Dashboard widgets to Desktop & Keeping it "Sticky"
Hi, I know there are many posts out there on part of this topic. I am aware on how to add widgets from Dashboard to the Desktop. However, I haven't figured out how to ensure that the newly added widget does not overlay itself on the application I am