Overwrite Standard Validation message to Custom message

Hello Gurus,
I searched and have gone through lot of resources but did not find solution and came up with this question.
I have a scenario where I can not make action(Save) as validation independent. So, I tried using IF_WD_MESSAGE_MANAGER methods in WDDOBEFOREACTION as below.
1) Used HAS_VALIDATION_ERRORS If true got all the messages using method GET_MESSAGES.
2) Loop through messages of perticular attribute and deleted message based on MSG_ID using REMOVE_MESSAGE.
3) And tried to set custom error message using REPORT_ATTRIBUTE_ERROR_MESSAGE.
But to my suprise IF_WD_MESSAGE_MANAGER->GET_MESSAGES is not returning any messages even though there exists a validation erro, though HAS_VALIDATION_ERRORS returning TRUE.
Cant we make use of GET_MESSAGES in WDDOBEFOREACTION or anything wrong in my logic.
Any inputs would be appreciated!
Thanks a ton in advance!
Regards,
Pavan.
Edited by: Pavankumar Adiraju on Aug 1, 2011 6:42 AM

Thanks for the response!!
@ Srinivas: Sorry, I missed one more step wherein I use message object(MSG_OBJECT) of messages returned by GET_MESSAGES to get the specific message using GET_TEXT.
So, to rephrase I will only overwrite specific error message with my custom message.
@ Kranthi : Before posting the question I found the forum suggestion you mentioned but did not find a way to get reference to it.
Please tell me if you know how to get reference of IF_WD_VALIDATION in WDDOBEFOREVALIDATION to use it.
Regards,
Pavan.

Similar Messages

  • Can we modify the standard AOL Message with custom Message in Seeded Page?

    Hi,
    I have a requirement to change AOL Message with custom Message in Seeded Page.
    In a seeded OAF page when a user clicks on a submit button a standard AOL Processing Message is populated.
    I Need to change the Standard Message and call Custom Message.
    Did controller extension and found that both the messages are populating.
    called the code after super and tried to call before super also.
    Did any one face this issue and resolved it. Kindly provide the solution.
    Regards
    Chaitanya

    Hi Gyan,
    I have tried by extending a sample custom controller.
    Below is the code of TestCO calling create message
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
          OAApplicationModule am = pageContext.getApplicationModule(webBean);
          if (pageContext.getParameter("Test") != null)
              OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_CREATE_CONFIRM",    null,
              OAException.CONFIRMATION, null);
              pageContext.putDialogMessage(confirmMessage);
      }Then I extending the TestCO to XXTestCO and it is calling Update Message
        public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
          super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            if (pageContext.getParameter("Test") != null)
                OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_UPDATE_CONFIRM",    null,
                OAException.CONFIRMATION, null);
                pageContext.putDialogMessage(confirmMessage);
        }got below Confirmation
    Confirmation
    Employee &EMP_NAME with the number &EMP_NUMBER has been created.
    Employee (&EMP_NAME) has been updated.
    Tried below approach also calling the message before super class
        public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            if (pageContext.getParameter("Test") != null)
                OAException confirmMessage = new OAException("AK", "FWK_TBX_T_EMP_UPDATE_CONFIRM",    null,
                OAException.CONFIRMATION, null);
                pageContext.putDialogMessage(confirmMessage);
          super.processFormRequest(pageContext, webBean);
        }got below Confirmation
    Confirmation
    Employee (&EMP_NAME) has been updated.
    Employee &EMP_NAME with the number &EMP_NUMBER has been created.
    My requirement is to print only the message which I have kept in Extended controller i.e. Update message
    Regards,
    chaitanya

  • Reg:Table for Custom Messages and custom Messaege Classes

    Hi ,
    My requirement is to find out all custom messages . so can any one tell in which tables all custom messages and custom message classes are stored .
    Thanks & Regards,
    Lakshmi.

    hi,
    You can checkthese tables listed below,
      T100                             Messages
      T100A                            Message IDs for T100
      T100C                            Message Control by User
      T100O                            Assignment of message to object
      T100S                            Configurable system messages
      T100SA                           Application Areas for Configurable Messages
      T100T                            Table T100A text
      T100U                            Last person to change messages
      T100V                            Assignment of messages to tables/views
      T100W                            Assign Messages to Workflow
      T100X                            Error Messages: Supplements
      T100ARBGB                    Application Area
    But The main table for storing all the message classes and their numbers are stored in table
    T100

  • Oracle Devs -  "Customizing a Standard Validator Message" tutorial moved?

    Guys and Gals,
    Page 366 of the Oracle JDeveloper 11g Handbook: A Guide to Oracle Fusion Web Development references a "Customizing a Standard Validator Message" tutorial on java.sun.com.
    It is nowhere to be found. Java.sun.com redirects to another oracle webpage, and the JDev tutorials do not seem to cover this material.
    I'm not looking to add my own custom validator, but rather modify the default JSF error message. i.e. Change standard validator text from "Too many objects match the primary key oracle.jbo.key[<mypart>]" to "Part <mypart> already exists.".
    Can anyone reference another tutorial for this topic?
    Thanks in advance.

    HaHa! Finally found something similar. Sweet sauce.
    http://netbeans.org/kb/docs/web/convert-validate.html#08

  • Standard Oracle Messages in Custom forms

    Hi,
    We have created cutsom oracle forms in our EBS setup and we want to show standard oracle messages in our custom forms, but somehow we are not able to show those messages. Is there any setting that we need to do to enable this?
    Thanks,

    Hi,
    Please see "Oracle Applications Developer Guide", Chapter 27 - Customization Standards.
    Applications Releases 11i and 12
    http://www.oracle.com/technology/documentation/applications.html
    You may also review these documents.
    Note: 1019036.6 - How do you Create Custom Messages?
    Note: 189441.1 - How to Change the Text for a Standard Message
    Regards,
    Hussein

  • ACROBAT XI Standard - keep getting an error message .... serial number provided is valid, cannot find a qualifying product on this computer - I can access XI but would like to resolve this.  Thank you

    ACROBAT XI Standard - keep getting an error message .... serial number provided is valid, cannot find a qualifying product on this computer - I can access XI but would like to resolve this.  Thank you

    Trebmera you will want to enter your eligible previous copy of Acrobat's serial number.  You can locate your registered serial numbers at http://www.adobe.com/.  You can find more information at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • JSF, NetBeans and customizing of Standard Validation Errors

    Hello together,
    i want to use german Standard Validation Errors via a own .properties File:
    1.
    Here is my faces-config.xml ( the entries are uncommented ! ):
    <faces-config>
    <application>
    <locale-config>
    <default-locale>de</default-locale>
    <supported-locale>de</supported-locale>
    <supported-locale>en</supported-locale>
    </locale-config>
    *<message-bundle>alles.mymessages</message-bundle>*
    </application>
    </faces-config>
    2.
    Here is mymessages.properties-File in package alles:
    javax.faces.validator.NOT_IN_RANGE=Das angegebene Attribut liegt nicht zwischen den erwarteten Werten {0} und {1}.
    javax.faces.validator.NOT_IN_RANGE_detail="{2}"\:Eingegebener Wert liegt nicht im erwarteten Bereich von {0} bis {1}.
    javax.faces.validator.LongRangeValidator.LIMIT=Validierungsfehler
    javax.faces.validator.LongRangeValidator.LIMIT_detail=Eingegebener Wert kann nicht in den korrekten Typ umgewandelt werden.
    javax.faces.validator.LongRangeValidator.MAXIMUM=Validierungsfehler
    javax.faces.validator.LongRangeValidator.MAXIMUM_detail="{1}"\:Wert ist gr\u00F6\u00DFer als das erlaubte Maximum"{0}".
    3.
    Here the part of the JSF-View with the Validator:
    <ui:textField binding="#{WorkTypeEdit.textFieldBeschartKzSoll}" converter="#{WorkTypeEdit.bigIntegerConverter1}"
    id="textFieldBeschartKzSoll" required="true" style="height: 24px; width: 48px" validator="#{WorkTypeEdit.longRangeValidator1.validate}"/>
    The application still shows the standard englisch validation error text. What is wrong here ?
    I' am using NetBeans 5.5.1 with VWP and the deploment is to Glassfish server.
    Thanks a lot.
    HJA

    Hello Raymond,
    i did some coding and create additional a custom validator:
    My JSF-View part:
    <ui:textField binding="#{WorkTypeEdit.textFieldBeschartKzSoll}" converter="#{WorkTypeEdit.integerConverter1}"
    id="textFieldBeschartKzSoll" maxLength="2" required="true" style="height: 24px; width: 48px" *validator="#{MyValidation.validateInput}">*
    *<f:validateLongRange minimum="1" maximum="9"></f:validateLongRange>*
    </ui:textField>
    My custom validator in Myvalidation class:
    public void validateInput (FacesContext facescontext, UIComponent component, Object value) throws ValidatorException
    long min = 0, max = 0;
    Locale locale = facescontext.getViewRoot ().getLocale ();
    String mb = facescontext.getApplication ().getMessageBundle ();
    ResourceBundle rb = ResourceBundle.getBundle (mb, locale);
    Validator[] validator = ((UIInput) component).getValidators ();
    for (int i=0; i < validator.length; i++)
    if (validator[i] instanceof LongRangeValidator)
    LongRangeValidator lv = (LongRangeValidator) validator;
    long lvalue = Long.valueOf ((String)value.toString ());
    min = lv.getMinimum ();
    max = lv.getMaximum ();
    if (lvalue < min || lvalue > max)
    ((UIInput) component).setValid (false);
    *String message = rb.getString ("javax.faces.validator.NOT_IN_RANGE");*
    *String messageDetail = rb.getString ("javax.faces.validator.NOT_IN_RANGE_detail");*
    *facescontext.addMessage (component.getClientId (facescontext), new FacesMessage (FacesMessage.SEVERITY_ERROR,message,messageDetail));* }
    What happen now is, at first i get the german message because of rb.getString........ so the locale is working
    and then the englisch message follows in the message component.
    Sorry that i take your time so long...
    HJA

  • Custom Messages Long Text not appearing

    Hi Everybody!
    We are having a problem displaying the long text of custom messages.
    After we click on the "More Information" link beside the message short text, we should get a pop-up message with the long text.
    Instead, we get a pop-up message showing an internet explorer 400 error.
    We are OK displaying long text of standard messages. Should we do something extra to display long text of custom messages?
    Thanks
    Gabriel

    Hi Atul,
    Regarding the long-text option, yes, I have marked: The "Self-Explanatory" checkbox is not checked.
    Here is the source code!
    ** VARIABLES **
      DATA: t_partner          TYPE TABLE OF bbp_pds_partner,
            x_partner          TYPE bbp_pds_partner,
            u_vendor_set       TYPE TABLE OF bbp_vendor_getlist_s,
            x_vendor_set       TYPE bbp_vendor_getlist_s,
            w_xfeld            TYPE xfeld,
            e_message          TYPE bbp_smessages_badi,
            w_guid_crmt_object TYPE crmt_object_guid,
            w_guid_bbp_guid    TYPE bbp_guid,
            w_partner_no       TYPE  bu_partner_guid,
            w_nombre           TYPE bdl_logfun,
            w_process          TYPE bbp_proc_type,
            w_status           TYPE xfeld,
            w_header           TYPE bbp_pds_po_header_d.
        CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
          EXPORTING
            i_guid          = iv_doc_guid
            i_with_itemdata = 'X'
          IMPORTING
            e_header        = w_header
          TABLES
            e_partner       = t_partner.
        IF iv_cv_updated_active_doc = space.
          w_guid_bbp_guid   = iv_doc_guid.
          w_guid_crmt_object = w_guid_bbp_guid .
          LOOP AT t_partner INTO x_partner WHERE partner_fct = '00000019'.
            w_partner_no = x_partner-partner_no.
    *     This function check if the partner is valid.
            CALL FUNCTION 'Z_BC_BLOQ_GET'
              EXPORTING
                iv_bu_partner_guid = w_partner_no
              IMPORTING
                ev_xfeld           = w_xfeld.
            IF w_xfeld IS NOT INITIAL.
    *  Get the name of the vendor.
              CALL FUNCTION 'BBP_VENDOR_GETINFO'
                EXPORTING
                  partner_guid       = w_partner_no
                  x_with_name        = 'X'
                  x_show_inv_parties = 'X'
                  purch_pd_org_type  = 'O'
                TABLES
                  vendor_set         = u_vendor_set.
              READ TABLE u_vendor_set INTO x_vendor_set INDEX 1.
              CLEAR e_message.
              e_message-msgty   = 'A'.
              e_message-msgid   = 'ZSRM_ERRORES'.
              e_message-msgno   = '005'.
              e_message-msgv1   =  x_vendor_set-partner.
              e_message-msgv2   =  x_vendor_set-vendor_name.
              e_message-msgv3   =  x_vendor_set-vendor_no.
              APPEND e_message TO et_messages.
            ENDIF.
            CLEAR x_partner.
          ENDLOOP.
      ENDIF.
    ENDMETHOD.

  • Custom message is not getting displayed after raising do_not_save

    Hi all,
    In Order_save BADI, based some conditions, we were throwing custom messages.
    FYI., code used,
    CV_OWN_MESSAGE = 'X'.
    MESSAGE 'xxxxxxxxxxxxxx' TYPE 'W' Raising do_not_save.
    After Solman upgrade from 7.0 to 7.1, system is not displaying custom message and
    system throwing message like "The document could not be saved" only after execution of above message statement.
    How can I overwrite this system message.
    Any help would be highly appreciated.
    -Mahi

    Hi,
    Please check the below notes
    1922870 - Raising DO_NOT_SAVE event from ORDER_SAVE BADI cause dump
    1650635 - Work Center: problems when using BAdI ORDER_SAVE
    Rg,
    Karthik

  • Error message in customer exit

    HI ABAPer's,
    I am facing the one problem  while giving the error message in customer exit  ZXM06U43(POCustomer exit). The scenario is i am looping the  tekpo(PO line item) internal tables and doing some validations if any lineitem fail in the validation i need  give the error message .I dd the  but all ways it showing the error in last line item in the  PO.
    Thanks,
    Harinath

    Hi,
    You have to either leave the screen. Also you can try EXIT in place of LEAVE SCREEN as per suitable to your transaction.
    SAMPLE CODE:
      IF SY-SUBRC <> 0.
        MESSAGE E059(ZGO) WITH I_MSEG-MATNR I_MSEG-AUFNR.
        LEAVE SCREEN.
      ENDIF.
    Regds,
    Anil
    Edited by: Anil Katoch on Sep 3, 2009 7:37 AM

  • DISPLAY ONLY CUSTOM MESSAGE WITH SRW.MESSAGE

    Hi.I created a report with Report Builder 9i.I also created two form parameters of type date.I put inside the validation trigger in the property inspector the following plsql code.
    function FROM_DATEValidTrigger return boolean is
    v_date VARCHAR2(12);
    date1 date;
    begin
    v_date := :from_date;
    date1:=TO_DATE(v_date, 'DD/MM/YYYY');
    return (TRUE);
    EXCEPTION
    WHEN OTHERS THEN
    SRW.MESSAGE(546,'My Message');
    return (FALSE);
    end;
    This code works fine.Supose the user input wrong data for example 29/02/2003 displays an alert message
    with my custom message.But after this displays an another message from the Report Builder like this:
    Rep-0546:Invalid parameter input.
    My question is .Is it possible display only my custom message with the SRW.MESSAGE built in procedure?
    Thanks in advance Panagiotis.

    Hi,
    I am using this function in my Validation process to display Error when user gives null input
    function DEPT_IDValidTrigger return boolean is
    begin
         -- Check for Null Value here
         if(:DEPT_ID is null) then
         raise SRW.NULL_ARGUMENTS;
         else
    return true;
    end if;
         Exception
              -- Exception For Null Value
    when SRW.NULL_ARGUMENTS then
         srw.message(100, 'Please Enter Dept ID');
    raise srw.program_abort;
    end function ___ ;
    Function is correct but the error message i am getting at the client side is as follows ::
    "*MSG-00100: Please enter Dept IDREP-1419: 'dept_idvalidtrigger': PL/SQL program aborted.* "
    It seems it is adding some system level error.
    but i want only my custom message to be displayed on the client side ::
    *"Please Enter Dept ID"*
    Is this Possible in Oracle 6i.

  • Adding custom message in exception list of F110 transaction without adding payment block

    Hi All,
    My requirement is to add custom message in exception list of F110 transaction based on certain fields validation without adding payment block .
    I tried using BTE 1820 where I can add my validation but am not able to add the custom message in exception list.
    Thanks,
    Mihika.

    Hi Raymond,
    Thanks for your reply.
    I did checked the document and tried giving the S and I message in my BTE with trace option checked on Additional log screen.
    But Success and information message doesn't showed in Exception List.
    If I set the Error message the Proposal gets cancelled and I can see my error message in log. (We don't want this option as in this option proposal is not getting created)
    If I set the Payment block I can see that logged in exception list. But we don't want to set the payment block but the message should appear in exception list.
    I added the message using simple message statement. Will you please advice if any other way to add the message other than using the MESSAFE statement.
    Thanks,
    Mihika.

  • Display custom messages in Writeback Reports OBIEE 11g

    Is there any way i can display a custom message when user enter the wrong data(conditions).I am using OBIEE 11.1.1.7.1.
    Anyone please help me out here.
    Thanks,
    prassu

    I dont think so...
    after inserting date in db table try to show it up based on your validations there itself it can be a report or so..
    if not you need to have something like html+JavaScript etc.. altogether it is complex

  • How to validate concurrent program parameter and display a custom message?

    Hi Friends,
    I have a concurrent program which has two non-mandatory parameters.
    The requirement is that user should provide value for any one of the parameters.
    If user does not enter value for both the parameters, i need to display a custom error message.
    Parameter1 has an independent value set.
    Parameter2 has character value set with validation type as special.
    Process i tried so far:
    In the value set for the second parameter, under the Validate event, i have written the following code:
    FND PLSQL "declare
    l_paramb VARCHAR2(20) := :!VALUE;
    l_parama VARCHAR2(20) := :$FLEX$.MOT_CUSTMSGTST_A;
    BEGIN
    IF 1 = 1  THEN
    fnd_message.set_name('FND','FND_GENERIC_MESSAGE');
    fnd_message.set_token('MESSAGE','Please enter any of the ip1 or ip2');
    fnd_message.raise_error;
    END IF;
    END;" I am not using those variables that are defined for the time being.
    Now since the condition 1=1 is always satisfied, i should always receive the error message.
    I am not receving any error message and i can go ahead and submit the program..
    Please advise on where am i going wrong.
    Reports Version - 6i
    Oracle Apps Version - 11.5.10.2
    Regards,
    Sreekanth Munagala

    Hi srrekanth,,
    I've similar issue , I need to display custom message for concurrent program parameter.Need to validate the parameter & display custom message .
    Can you pl provide solution.

  • How to add custom message in place of default message  for af:inputDate

    Hi ,
    I am using JDeveloper 11.1.1.6.0  ,
    how to display the custom message <af:inputDate in place of default message "please enter valide date or Time" . i am trying through converter datepicker icon is disable .please help me how to add client side converter.
    Thanks
    ARm

    Hi,
    see the ADF Faces skin selector: http://docs.oracle.com/cd/E23943_01/apirefs.1111/e15862/toc.htm#inputDate
    Its has a resources string that you can use to change the message: af_inputDate.TIP_TITLE_SELECT_DATE
    For more see:
    Customizing the Appearance Using Styles and Skins - 11g Release 1 (11.1.1.6.0)
    Frank

Maybe you are looking for