Custom error/info message in workflow
Hello everybody!
I´m developing a workflow that have a lot of steps as calling scripts, check some conditions launch resource actions and generate some files. I would like to show in IDM the result of the process and if it fails exactly in which step. So I thought to create an activity that checks if the step is ok and if it doesn´t show an error message. Is it possible? Which would be the best approaching for showing the error?
Thanks and regards.
Edited by: Rookie-IDM on Aug 24, 2010 12:01 AM
An alternative is to use the "ActionResult" tag. I have a feeling it's identical back-end code to what you're calling. It might just help make the code more readable. Or less depending on your style of coding... :)
Here's one I grabbed out of the sample dir:
<Action>
<ActionResult name='ProvisionStatus' type='message' overwrite='true'>
<message name='UI_SUNRISE_XML_SCHEDULED'>
<ref>sunrise.date</ref>
</message>
</ActionResult>
</Action>Anyway, it's an option.
Similar Messages
-
Customized Error/Info Messages in ADF FACES Pages
hi every one...
I need to display customized eerror/info messages in a ADF Faces application.
How can i use adf:message componenet to do this...Hi,
af:messages show all messages added to the JSF message stack
FacesContext fctx = FacesContext.getCurrenInstance();
fctx.addMessage("Some Name Strinng here", new FacesMessage(FacesMessage.SEVERITY_ERROR, "Your error message here",null));
If <"Some Name Strinng here"> is the id of a component then the error message is also shown below this component
For customizing error messages - e.g. translating Exceptions into useful user information, see SRDemo, which can be downloaded and installed through JDeveloper Help-->Check for Updates.
Frank -
Writing Info Messages to Workflow Protocoll
Does anybody know how info messages can be written to workflow protocolls within a BOR object method??
Thanks for your help!
MArtinI think we are talking about a BPEL catch here, not a java catch.
The exception (SQLException) will be returned by the DB adapter to the BPEL engine as a fault (probably a RemoteFault, but you can check in the audit).
You should catch the RemoteFault (this is a system fault). In a catch, you can specify a faultvariable of type RuntimeFaultMessage (defined in RuntimeFault.wsdl, in system/xmllib directory).
This faultvariable will then contain all the error details, so you can process it further in the catch branch. -
How to show a custom error message in Workflows
Hi
I am working on an already developed Z copy of BO FIPP.
The requirement is to make a customer specific validation on Profit centers which should be checked just before posting the document.
I am aware of the POST method in FIPP that uses Function Module - PRELIMINARY_POSTING_POST_ALL to make sure that everything is fine and captures the errors as well if any. - But it captures only standard SAP errors.
How can I use this FM to capture my custom errors as well.
Or is there any way to achieve this.
Kindly advise.
Thanks,
Arash.Hi Nabheet,
Thanks for your response.
The FM returns the error messages if they are standard ones. For example, if the posting period is closed - the FM will not allow the Workflow to proceed further.
But in this case, I have a custom error - for a particular Profit center, Cost center and I/O fields are mandatory(not at time of parking, but should be filled before posting).
Since this is not a standard error, this FM will not stop workflow from proceeding further. How can I have the custom error captured in this FM?
Thanks. -
ERROR in SWU3 - Automatic Workflow Customizing
Dear Experts,
I am geeting error in SWU3 - Automatic Workflow Customizing in 1st step.
1st step - Maintain Runtime Enviornment does not become green due to error in element " Schedule Background Job for Deadline Monitoring "
The error message is " Error within method CL_SWF_ADM_JOB_FACTORY=>GET_INSTANCE->"
Kindly throw some light on this.
Regards,
ShantkumarHi,
Refer this [Link1|https://wiki.sdn.sap.com/wiki/x/fQDDAw] [Link2|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10bcbd65-64ea-2a10-9a8d-b653b8e0843c] [Link3|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6] [Link4|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/303617cf-73dd-2a10-c993-cc6303585176].
Regards,
Surjith -
Remove the info message "Customizing missing: No code for category"
Hi Experts,
I am getting the information message i.e "Customizing missing: No code for category" while entering into the repair web ui screen in service. I want to remove this information message. Please suggest me how to avoid this info. message. Thank you in advance.
Regards,
SanthoshI installed this VB script and still get the same error message. I have also installed all the install scripts from InstallShield. I sent an email to InstallShield a week ago explaining my problem but have had no reply. Their Website says to contact the software vendor directly - that would be Apple. I have an Apple 800 number but have never been able to get through. I have installed other Windows software in the last week and have not had a problem. Any more suggestions?
Home built Windows XP Pro
Home built Windows XP Pro -
Custom error message in SAP application log
Is there a way to add a custom error message to the SAP application log without passing the message variables MSGV1, MSGV2, MSGV3, MSGV4 and the Message class and number.
We want to pass a custom message from the BAPIRET2-MESSAGE without giving it a Message class and number. The reason for this is that we are using class based exceptions instead of the traditional message class with errors. When we catch the class based exception, we take the error text of the exception and put in in the BAPIRET2-message and set the BAPIRET2-TYPE as 'E'. Now we want to add this to the SAP application log.
The call to 'BAL_LOG_MSG_ADD' takes a structure BAL_S_MSG which is just like BAPIRET2. However this function builds the entry to the application log use the message variables MSGV1, MSGV2, MSGV3, MSGV4. There is no provision to pass in the BAPIRET2 message.
Add message to application log
CALL FUNCTION 'BAL_LOG_MSG_ADD'
EXPORTING
i_log_handle = app_log_handle
i_s_msg = log_message
Thanks,
JayHi Jay,
Did you see <b>BAL_LOG_EXCEPTION_ADD</b>?
This FM is represented by the structure <b>BAL_S_EXC</b>. This can have various versions as described below:
<b>Data of BAL_S_EXC Structure / Use</b>
<b>EXCEPTION</b> / Exception class from which an exception text
is added to the log. This field must be filled.
<b>MSGTY</b> / Message type (MSGTY) of a T100 message.
This field must also be filled for exceptions.
<b>PROBCLASS,
DETLEVEL,
ALSORT, TIME_STMP</b> / Message or exception attributes, such as
problem class (PROBCLASS, for
example, "very important"), level of detail
(DETLEVEL, from 1 to 9), sort criterion
(ALSORT, unrestricted) and timestamp
(TIME_STMP). These fields can be displayed
in the log (except TIME_STMP).
<b>MSG_COUNT</b> / This attribute is not used for exceptions.
Follow the link below for more details:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/frameset.htm">SAP Help DOc</a>
Hope this helps.
Thanks
Sanjeev -
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 -
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);
} -
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
-
How to create Custom error message in SharePoint 2013
Hi,
I have created one document library.On uploading the same file SharePoint throws error as"server error.The same file exit".
But my requirement is not to show the SharePoint default message.I wanted to create custom message and show the pop up for the same file upload.
Is there any way to create any custom error page or can I manipulate SharePoint default error page?
Any help?
Thank youHi,
You can create an event receiver to set the validation error messages. One such post to redirect the custom error page is as follows
https://social.msdn.microsoft.com/Forums/office/en-US/2bc851f6-e04b-4550-b87f-9b874a290482/sharepoint-event-receivers-and-custom-error-messages?forum=sharepointdevelopmentlegacy
Create custom error page for SharePoint event receiver
Please mark it answered, if your problem resolved or helpful. -
How to show custom error message in WebADI Excel template?
Hi,
I've created a custom Web ADI integrator and associated it with a 'Procedure' based custom interface.
WebADI Interface API Returns is set to "Error Message".
I'm using raise_application_error(-20001, "Actual Error Message") for invalid rows,but custom error message from PL/SQL is not populated on the excel template.
Instead it is showing "SQL exception occurred during PL/SQL upload".
Am I missing anything? How to show custom error message from Pl/SQL procedure to WebADI Excel template?
TIA
NarasimhaThe custom API errors are visible in the BNE log but not on the Excel.
BNE Log=>
12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR BnePLSQLUpload.doUpload: Exception while uploading to PL/SQL API. Error Code: 20001, Message: ORA-20001: -Please enter CONTAINER_ID - Enter PO_NO -
ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
ORA-06512: at line 1
12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR BnePLSQLUpload.doUpload: Stack trace: java.sql.SQLException: ORA-20001: -Please enter CONTAINER_ID - Enter PO_NO -
ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4710)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
at oracle.apps.bne.integrator.upload.BnePLSQLUpload.doUpload(BnePLSQLUpload.java:284)
at oracle.apps.bne.integrator.upload.BneSAXUploader.processDeepestLevel(BneSAXUploader.java:2346)
at oracle.apps.bne.integrator.upload.BneSAXUploader.startElement(BneSAXUploader.java:1182)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:234)
at oracle.apps.bne.integrator.upload.BneUploader.processUpload(BneUploader.java:301)
at oracle.apps.bne.integrator.upload.BneAbstractUploader.processUpload(BneAbstractUploader.java:114)
at oracle.apps.bne.integrator.upload.async.BneAsyncUploadThread.run(BneAsyncUploadThread.java:140)
12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 WARNING BneOracleWebAppsContext.getTimeZone CLIENT_TIMEZONE_ID has not been set
12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 ERROR BneOracleWebAppsContext.getExtraJDBCConnection recieved the same connection as the base connection. There may be transaction problems.
How to show the same error in the excel template?
Here is the package:
CREATE OR REPLACE PACKAGE BODY APPS.XXPO_COSTFACTS_WEBADI_PKG
AS
PROCEDURE upload_data (
P_CONTAINER_ID IN VARCHAR2
, P_SAIL_DATE IN DATE
, P_PO_NO IN VARCHAR2
) IS
--declare
lv_err_msg VARCHAR2(240);
lf_err_flag NUMBER := 0;
ln_temp NUMBER;
BEGIN
--------------------- checking for mandatory parameters---------------------------
IF (P_CONTAINER_ID IS NULL) THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg||'-'||'Please enter CONTAINER_ID - ';
END IF;
-------------Validation for Sail Date Format----------------------
IF (P_SAIL_DATE IS NULL) THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' ' || 'Enter Sail Date - ';
ELSE
BEGIN
SELECT 1
INTO ln_temp
FROM DUAL
WHERE P_SAIL_DATE = TO_DATE (TO_CHAR (P_SAIL_DATE, 'DD-MON-YYYY'), 'DD-MM-YYYY');
EXCEPTION
WHEN NO_DATA_FOUND THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format';
WHEN OTHERS THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format'|| SQLERRM;
END;
END IF;
-------------Validation for PO_Number----------------------
IF (P_PO_NO IS NULL) THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' ' || 'Enter PO_NO - ';
ELSE
BEGIN
SELECT count(1)
INTO ln_temp
FROM PO_HEADERS
WHERE Attribute4 = P_PO_NO;
EXCEPTION
WHEN NO_DATA_FOUND THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' No Oracle PO for Biceps PO#'||P_PO_NO;
WHEN OTHERS THEN
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' Error getting the Oracle PO for Bicpes PO#'||P_PO_NO||' Error-' || SQLERRM;
END;
END IF;
-----------------------Insert Record----------------------------
IF lv_err_msg is NULL THEN
BEGIN
INSERT
INTO XXP2P_HW_COST_FACTORS_STG
CONTAINER_ID
,SAIL_DATE
,PO_NO
, ERROR_FLAG
, ERROR_MSG
,CREATED_BY
,CREATION_DATE
,LAST_UPDATED_BY
,LAST_UPDATE_DATE
,LAST_UPDATE_LOGIN
VALUES
P_CONTAINER_ID
,P_SAIL_DATE
,P_PO_NO
,lf_err_flag
,lv_err_msg
,FND_GLOBAL.USER_ID
, trunc (sysdate)
,FND_GLOBAL.USER_ID
, trunc (sysdate)
,FND_GLOBAL.LOGIN_ID
-- commit;
DBMS_OUTPUT.put_line
'-' || 'After ap_invoices_interface'
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
lf_err_flag := 1;
lv_err_msg := lv_err_msg || ' ' || 'error loading CONTAINER_ID-' || P_CONTAINER_ID || SQLERRM;
raise_application_error(-20001, lv_err_msg);
END;
ELSE
raise_application_error(-20001, lv_err_msg);
END IF;
END upload_data;
END XXPO_COSTFACTS_WEBADI_PKG; -
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 -
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 -
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,
ArisHi,
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 ......
Maybe you are looking for
-
Caller id not working after upgrade to IOS 8.
I have an iPhone 5 which I upgraded to IOS 8. After the upgrade the caller id does not shows the person's name (which I have on my Contacts) on the screen. Now I installed IOS 8.1.1 but the problem persists. This happens also on an iPhone 5S from
-
Generate a PDF export and getting the file or the bytestream to modify it
Hi everybody I have a web dynpro application and want to get the bytestream or the PDF file itself. Is there a function (RFC, J2EE-Method, ABAP methode/class) where I can say "Hey function, generate a PDF export of a BI report and save the PDF file <
-
DVD-R 16X verbatim won't burn in my G5
I bought this package of 50 DVD-R Verbatim and I can't burn them... I have to use Maxell DVD-R, can anybody explain why ? In my systeme profiler, HARDWARE>DISC BURNING> SONY DVD RW DW-U21A: Firmware Revision: AADB Interconnect: ATAPI Burn Support: Ye
-
Why I see ONLY one db on my node ?
I have a PC (NT node) with 1 oracle server 8.17 , on the server I have 2 databases (db1 , db2). With OEM I see the node ... but ONLY db1 !!! Suggestion ? (off course I refresh node and db2 works ok)
-
After following all help instructions I can't open reader or open pdf documents-internet explorer xp
After following all instruction I can't open reader or pdf documents--internet exp xp