How to Create Warning or Error message for transaction
Dear Gurus,
I understand that we can create a new warning or error message. I would like know how we tie the transaction with these message.
ex:
I want to create a warning message in MIGO when i receive goods for PO. How do i create a message a tie the transaction to it.
Regards,
Kumara.
Of course you can add own messages and message classes. But they will not be considered anywhere without proper coding.
If you want a message to appear in MIGO then you have to find an user exit where you can put your coding that will issue your own messages.
Similar Messages
-
How to show a single error message for all fields
Hi
I have a JSF from containing around 10 controls(input, select etc.) .
Now I need to display an error message in case any of the mandatory control has validation error.
Message format would be like
"*Please,Complete the fields marked with yellow!"* The message I need to show in a div tag with Yelow background.
Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.
My code is below.
*<h:panelGrid columns="3">*
*<h:outputText value="#{msgProv.bi_firstname}" />*
*<h:outputText>*
*<rich:spacer width="100px"></rich:spacer>*
*</h:outputText>*
*<h:panelGroup>*
*<h:inputText*
*value="#{brokerInformationFields.firstName}"*
*label="#{msgProv.bi_firstname}" id="firstName" required="true">*
*<f:validateLength maximum="10" minimum="2" />*
*<rich:ajaxValidator event="onblur" />*
*</h:inputText>*
*</h:panelGroup>*
*<h:outputText value="#{msgProv.bi_lastname}" />*
*<h:outputText>*
*<rich:spacer width="100px"></rich:spacer>*
*</h:outputText>*
*<h:panelGroup>*
*<h:inputText label="#{msgProv.bi_lastname}" id="lastName"*
*value="#{brokerInformationFields.lastName}" required="true">*
*<f:validateLength maximum="20" minimum="1"/>*
*<rich:ajaxValidator event="onblur" />*
*</h:inputText>*
*</h:panelGroup>*
*<h:commandLink action="#{brokerInformationActions.submit}">*
*<h:graphicImage value="/images/axa/btn_submit_from.png" style="border:0px;"/>*
*</h:commandLink>*
I am using (JSF1.2,Rich Faces 3.3.0,Facelets.)
And a Phase Listener from
http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
This Phase listener is to border the control with Yellow in case validation fail.
Now my Query
*1) How can I show a single message for all fields as I marked above in case of validation failure?*
*2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.*
*User can move from one control to other using tab. That time proper validation message is appearing.*
*but the border of the control is not changing to yellow.*
*What's the correcion can be made to meet that requirement too.*
regards
RoyHi 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. -
How to get rid of error message for the material?
Hi everybody,there is a material which is showing an error message whenevr try to create a sales order, i've checked the material master...there is no check in X-plant Mtrl or X-dist chan or any flag for deletion...but still the red error message comes up while creating a sales order...how to get rid of this error?
this means material is blocked for procurment
three kinds of block can be there
01 Blocked for procment/whse
02 Blocked for task list/BOM
03 Blocked for Purchasing
GOTO MM42 give material n plant data
Select BESIC VIEW
there is a field called as material block remove the blocking reason
Hope this will help
Edited by: WISH on Mar 24, 2008 6:33 AM -
Trapping and creating a nice error message for users
i wanted to find out how I to create a coldfusion code similar to my asp code. i'm trying to learn coldfusion.
This code traps the error and emails it to me, while showing the user a "friendly message"
<!--#include virtual="Errorpage.asp"-->
on error resume next
if Err.number <> 0 then
TrapError Err.description
ON ERROR goto 0
End If
processerrors
the error page sends me the message and contains a nice error message
thanksThere's an awful ot of good info there if one was to look for it by googling "coldfusion error handling".
However the short version is:
Site-wide error handler
http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf3638e6-7ffc .html#WSc3ff6d0ea77859461172e0811cbf3638e6-7ffb
onerror:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 4a.html
cferror:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d 29.html
Handling Errors:
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24 -7fc4.html
Specifcally try/catch:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e c6.html
Adam -
How to programmatically set an error message for a validation rule of an EO
Hello,
Is there a way to programmatically set an error message when validating any data on an EO?
It seems the API of the EO interface does not have any method to be defined for my needs..
thanksThe other option is that for the error message you can define a groovy expression to call an EO method.
I documented this on my blog
http://blogs.oracle.com/grantronald/entry/dynamic_error_messages_from_a
Regards
Grant -
How can I get localized Error messages for basic errors ?
I'm running JDK 1.6
and I wrote :
Locale.setDefault(Locale.CANADA_FRENCH);
try
java.io.File f = new java.io.File("c:/temp/xxnonexistentx");
byte aa[] = new byte[2];
java.io.FileInputStream fis = new java.io.FileInputStream(f);
fis.read(aa);
fis.close();
catch (Exception e)
System.err.println(" Err " + e.getLocalizedMessage());
}And I get
Err c:\temp\xxx (The system cannot find the file specified)why do I always get the US English error message. This is really a basic error, why does it seem that there is no localized version in French ?
I also tried with
Locale.setDefault(Locale.GERMAN);But I always get English �ber Alles !
WHY ?As a developper I prefer my error messages in my
langage. .NET does it (if I want), I like it. Do you
know that O'Reilly & Flanagan Java reference book
(1500 pages) in French sells very well in France ?
Not so much the English version.As I said, I sympathize to some extent. With this part, yes.
End-users do see some error messages (this file not
found is an example), you want, me and all other
people, to translate this type of messages in how
many languages, each separately, over and over ?If I'm an end-user I don't want to see Java error messages. Or if I must, I only want to see them in the context of "This error message occurred, please pass it on to the technical support people when you call them". So, given that, I don't care if the system only produces German messages. This part I don't sympathize with. -
Set up Warning or Error Messages in CO54 and CO60
Hi,
I would like to find out where in SPRO can I maintain warning and error messages for transactions CO54 and CO60?
Thank you in anticipation.
Best regards,
LyncelHi,
Thanks you for your email. However, I do not have specific message class or message number. Messages for CO54 and CO60 are needed for us to find out possible scenarios wherein it will trigger the error "Sending Message failed" in a custom transaction for TECOing process order. This custom trannsaction calls transaction CO%$ in sending messages and transaction COR2 to TECO the process order. If you could provide the transaction in SPRO wherein we could check the messages for CO54, CO60 and please include COR2 also.
Thank you,
Lyncel -
System Warning and Error Messages in Plant Maintenance
Hi All,
Where can I find the list of system warning and error messages for Plant Maintenance?
Thanks
AndrewHi,
Follow the following path in SPRO. Some of the standard messages you will fond there:
Plant Maint & Customer Serivces - Maintenanace & Service Processing - Maint. & Service Orders - Message Control.
SM -
How to create a error message for Deleted batch while creating a PO
Hi ,
Can any body tell me how to create error message for a deleted batch while creating a PO in ME21n,
when a PO is created for a deleted batch at GI &GR lebel it is showing a error message,
but i want to show a error message while doing the PO creation.
Thanks,
Sachhiin badi me_process_po_cust u can put this message
METHOD if_ex_me_process_po_cust~check. -
Dear Experts,
I have a requirement for making material description as non mandetory in change request view of mdg material screen.
I have done that using field usage in get data method of feeder classes, but still message is displaying.
This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
How to prevent error message for material description in MDG material detail screen, when user click on check action.
Thanks
SukumarHello Sukumar
In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
Regards, Ingo Bruß -
How to give error message for the screen element text field when wrong i/p
How to give error message for the screen element text field when wrong i/p
when wrong input given
eg.
I have a text box with SBOOK-CARRID
so when user give wrong entry in text box i.e LG
then I should give some error stating that the the input is invalid or not available ,
now it showing the error of standard messages,
i want manual message to be displayed when error comes.
Thank you,
Regards,
Jagrut Bharatkumar ShuklaHi all,
Thank you for your valuable reply,
but the thing is that its a screen field,
i.e text box not a selection screen
i created in screen layout
with name sbook-carrid
now i want to get error message display if wrong i/p is given
thank you.
Regards,
Jagrut bharatkumar Shukla, -
SC created without any warning or error message
Hi,
I'm working with SRM 5.0, classic scenario.
Problem is following:
I create a SC for a specific material for storage location A for example. But this specific material wasn't created for storage location A. SRM doesn't block my SC cart created neither give me any warning or error message.
After SC goes into error into shoppingcart monitor indicating that this specific material wasn't created for storage location A.
Is this normal SRM behaviour? I don't think so...
Can I activate any warning or error message in order to avoid this?
Thanks a lot,
regards,
carolineHi
This seems to be normal behaviour.
Please check for errors, dumps etc. using BBP_MON_SC, RZ20, and ST22 Transactions, if any.
You need to use BBP_DOC_CHECK_BADI for issuing Warning / Error messages.
Implement BBP_DOC_CHECK_BADI for filter type - BUS2121 (Shopping carts) and get the job done.
P.S. Carefully read the Standard SAP Documentation of this BADI using SE18 Transaction.
Hope this will help. Do let me know.
Regards
- Atul -
how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"
It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.
-
Warning/Error Message for Tax Code Mismatch between PO and Invoice
Hi Experts
Is there any SAP standard warning/ error message thrown when the User changes the tax code in the invoice which does not match the default tax code of the PO? The client would like to identify a 'tax code variance'.
If no, is there anyway we can configure this? I have checked in OMRM and OBA5 and could not find any relevant message types for the above requirement.
Any inputs would be helpful.
RegardsHi,
Can you maintain the validation for your requirement, when user change the tax code system give warning or error message automatically.
Edited by: Lavanya.ch on Dec 15, 2011 8:15 AM -
Editable ALV - how to throw an error message for a specific line & field
Hi all,
I've implemented an editable ALV and also the ON_DATA_CHECK event to check the values, entered in the ALV. So this works fine and I can check the values.
But now, I want to throw an error message corresponding to the field in the ALV, where the error occured.
How can I throw this error message corresponding to a specific line/field in the ALV?
I was using REPORT_ATTRIBUTE_ERROR_MESSAGE and REPORT_ELEMENT_ERROR_MESSAGE but without success.
I'm also using a loop over the "CHANGES" in the ALV and within this loop, I use
elem_alv = node_alv->get_element( index = <change>-element_index )
to get the element for the message.
CALL METHOD lo_message_manager->REPORT_ELEMENT_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = 'my message'
ELEMENT = elem_alv
* ATTRIBUTES =
* PARAMS =
* MSG_USER_DATA =
* IS_PERMANENT = ABAP_FALSE
* SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CTXT_ELEMENT
* MSG_INDEX =
* CANCEL_NAVIGATION =
* IS_VALIDATION_INDEPENDENT = ABAP_FALSE.
2.) is it right, that for an editable ALV, I can't use the WDDOBEFOREACTION to do the checks?
If I try to use this, I can't get the values of my ALV table to check it.
Thanks,
AndreasHi Andreas,
I have tried to replicate your problem and I am getting the desired output. I have a row by name TEMP_NEW in my ALV and I want to throw an error message whenever the user enters a value of 4 for that particular field. Please find my coding as below. The important thing is where we perform the actual comparison between the r_value and 4. r_value is defined in SALV_WD_S_TABLE_MOD_CELL as reference to type DATA. So suppose the user enters a value of say 3 in the TEMP_NEW field of the ALV then r_value would contain 3 but if you observe its type in debugging mode it would be as TYPE REF TO I and not TYPE I. So you cannot directly say something like:
"if ls_modified_cells-r_value = 3" as this would lead to a syntax error. Define a field-symbol say <temp> and then use it to get the actual value into it by saying like:
ASSIGN ls_modified_cells-r_value->* TO <temp>.
Then you can use this <temp> for comparison in your IF statement like:
IF <temp> = 3.
Find the entire coding as below:
METHOD check_data.
DATA: lr_node TYPE REF TO if_wd_context_node,
lr_element TYPE REF TO if_wd_context_element,
ls_modified_cells TYPE salv_wd_s_table_mod_cell.
FIELD-SYMBOLS <temp> TYPE data.
" get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
lr_node = wd_context->get_child_node( name = 'NODE' ).
LOOP AT r_param->t_modified_cells INTO ls_modified_cells.
lr_element = lr_node->get_element( index = ls_modified_cells-index ).
IF ls_modified_cells-attribute = 'TEMP_NEW'.
" Get the value extracted into the field symbol from the reference variable
ASSIGN ls_modified_cells-r_value->* TO <temp>.
" Use the value present in this field-symbol for your comparison
IF <temp> = 4.
" report message
CALL METHOD lo_message_manager->report_attribute_error_message
EXPORTING
message_text = 'Sample message text'
element = lr_element
attribute_name = ls_modified_cells-attribute.
ENDIF.
ENDIF.
ENDLOOP.
ENDMETHOD.
Hope this helps resolve your problem.
Regards,
Uday
Maybe you are looking for
-
How NOT to Embed Fonts in a Signature?
I've seen the various threads relating to problems with fonts in Mail and unexpected results when received by someone with different settings or on a different operating system. This is exacerbated by the fact that our office standard signatures have
-
Jpegs sent to me from Vietnam won't open in PS CS4 64
I received two DVDs of JPEGS that I cannot open in PS. They also do not preview in Bridge. These are images from a digital camera, however I do not know if they are direct from the camera or not. There is no way for me to get information from the sou
-
Why can't I send or share photos from my iPhone?
after update to ios 7.0.2 (iphone 5) i cant send/share any photos which are in camera roll with facebook or any app. when an app try to access camera roll same notice seen "this app does not have access to your photos or videos, you can enable access
-
Loaded iPhoto 9.2, my 7200 photos grew to 113,000 files with screen shots, duplicates, ,5-10copies of faces and apple has no way to eliminate this. How can I ever retrieve the original 7200 from this mess?
-
Why bother to use explain plan?
All my colleagues used the third party applications, Crystal Report or TAOD, to query data from the 10g R2 database for some kind of reporting. The problem is they always created the query with multiple outer join (> 10 tables) and they WRITE the cod