Custom error message for invalid date format

Hi,
I am using af:selectInputDate component for date. When i enter wrong date format it comes up follwoing pop up error message:
The value "12/13/2009" is not a valid date. Valid example ""29/11/2005".
However i dont want to show this standard message but a customised error message like "the value is not in correct format...".
Can anyone help me how can i show customised message.

Hi Kiran
Try these options
1) Change your <b>Internet Explorer</b> [The Browser which you are using] language
2) In Application Level, ie in Webdynpro
a)Go to <b><Your project name>>Webdynpro>Applications--><Your Application>
Double click on your Application name</b>b) Go to Application Properties TAB, Add a New Application Property
c) Click on "<b>Browse</b>" and Select <b>DefaultLocale</b> and mention the Value as
<b>en_US</b> [If you didnt mention any thing here by default it will take browser's language]
3)In your Portal check the language setting of particular user in identity management
Warm Regards
Chaitanya.A

Similar Messages

  • Customized error message for MethodValidator

    Hi,
    I coded a validation method and attached it to an entity attribute through the MethodValidator of the Entity Object validation tab.
    When I test it in the application module tester, it works fine. Just the error message produce by BC4J is too generic, like "JBO-27013: Attribute set validation method validateIsSoldTo failed for attribute IsSoldTo in Customer".
    Is there anyway that I can provide a more meaningful customized error message?
    I am using JDev 3.2.2 for a JSP application using Data Tag.
    Thanks!
    Dawson

    short of coding the dml procs yourself and trapping those error messages that way, i don't think we offer you a good way currently to trap and translate error messages coming out of our automatic DML processes. i've just logged the enhancement request to facilitate this, but for now i'm pretty sure you'd have to code that dml and trap your errs yourself.
    regards,
    raj

  • Custom Error Messages for Database Constraint Violations Problem

    Hi
    I have added a custom message bundle for the model project as explained in
    37.8.3 in the Fusion Developer's Guide - How to customize error messages for database constraint violations.
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvgen.htm#BABEFGCI
    Constraint Name : SYS_C0018574
    And I have following CustomErrorMessages class
    public class DBCustomErrorMessages extends ListResourceBundle {
        private static final Object[][] sMessageStrings =
            new String[][] { { "SYS_C0018574",
                               "Existing Record Found" } };
        protected Object[][] getContents() {
            return sMessageStrings;
    }This works fine when I run application model and adding records to vialate the constraint. So it gives me following message
    (oracle.jbo.DMLConstraintException) Existing Record FoundBut when run ui project it does not fire.
    Still it gives the message
    ORA-00001: unique constraint (CCBS2.SYS_C0018574) violatedCould you please shed some light?
    Edited by: deshan on Mar 15, 2011 11:28 AM

    Please see the image.
    http://4.bp.blogspot.com/-Fna66p-W5Jw/TX7uSQqqBtI/AAAAAAAAAH0/D1APg6oAIxI/s1600/1.JPG
    Error in Application Module ORA-00001: unique constraint (CCBS2.SYS_C0018574) violated exception is different from ui project.
    Any hint?
    Thanks
    deshan
    Edited by: deshan on Mar 15, 2011 10:16 AM

  • Custom error message for Back Button Error

    I am using JDeveloper 9. I have tried to create a custom error message to handle a "Back button" press.
    But the error message is usually ignored and the system's regular "Stale data" message appears. Is there a way to prevent the system's message from appearing and to raise a custom error message?

    Do the following coding in your processRequest() of the Create or udpate page.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    // If isBackNavigationFired = false, we're here after a valid navigation
    // (the user selected the Create button) and we should proceed
    // normally and initialize a new employee.
    if (!pageContext.isBackNavigationFired(false))
    // We indicate that we are starting the create transaction (this
    // is used to ensure correct Back button behavior). Note that you
    // can assign whatever name you want to your transaction unit.
    TransactionUnitHelper.startTransactionUnit(pageContext, "empCreateTxn");
    // This test ensures that we don't try to create a new employee if
    // we had a JVM failover, or if a recycled application module
    // is activated after passivation. If these things happen, BC4J will
    // be able to find the row that you created so the user can resume
    // work.
    if (!pageContext.isFormSubmission())
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    // Call your method to handle creating the new row.
    am.invokeMethod("createEmployee", null);
    else
    if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext, "empCreateTxn", true))
    // Get the purchase order number from the request.
    String orderNumber = pageContext.getParameter("headerId");
    MessageToken[] tokens = { new MessageToken("PO_NUMBER", orderNumber)};
    OAException message = new OAException("ICX", "FWK_TBX_T_PO_UPDATE_CONFIRM", tokens,
    OAException.CONFIRMATION, null);
    // We got here through some use of the browser "Back" button, so we
    // want to display a state loss error and disallow access to the page.
    // If this were a real application, we would probably display a more
    // context-specific message telling the user they can't use the browser
    // "Back" button on the "Create" page. Instead, we wanted to illustrate
    // how to display the Applications standard NAVIGATION_ERROR message.
    OADialogPage dialogPage = new OADialogPage(message);
    pageContext.redirectToDialogPage(dialogPage);
    } // end processRequest()
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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,
    Pavithra

    Hi 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

  • Custom Error Message For Session State Violation

    Hi,
    Can anyone tell me is there a way to have a custom error message whenever there is a session state protection violation ?
    Currently it throws an error message as follows:
    "Session state protection violation: This may be caused by manual alteration of a URL containing a checksum or by using a link with an incorrect or missing checksum. If you are unsure what caused this error, please contact the application administrator for assistance"
    Can i have a custom message here ? An image, or a custom text for a more friendly end-user message
    Thank you very much,
    Srikumar S

    Version of database? Version of APEX? Browsers involved? More information you provide, better response from people here...
    Thank you,
    Tony Miller
    Ruckersville, VA

  • Custom Error message for BI iview

    Hi guys,
    We have configured over 100 BI iviews in Portal which we do not want people to access for a certain period. A simple option we have thought is to remove all permissions on the System connector created for BI which would automatically deny users from accessing it. However, it gives a Portal Runtime Error message, is it possible to custom a message page for it?
    Thanks

    hi wang,
    this is the area u r looking
    http://help.sap.com/saphelp_nw70/helpdata/en/de/893341762ff523e10000000a155106/frameset.htm
    Custom Portal Runtime Error Page
    i wll send one more document to get out of this
    http://help.sap.com/saphelp_nw04s/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    Custom Error Pages on Portal
    these u can check for custom messages
    Custom error page - image
    bvr
    Edited by: bvr on Jul 24, 2009 11:18 AM
    Edited by: bvr on Jul 24, 2009 11:22 AM
    Edited by: bvr on Jul 24, 2009 12:24 PM

  • Customized Error Message for User

    What's your recommendation re displaying Customized User Error msg as opposed to the generic, techy #SQLERRM# ?
    How can one implement this ?
    How can one capture #SQLERRM# (or whatever), evaluate the ORA number and display a message grandmom can understand ?
    Please give an example if you can in the context of DELETE a record on P301 "Product Information" of the "Sample App"
    Thanks

    short of coding the dml procs yourself and trapping those error messages that way, i don't think we offer you a good way currently to trap and translate error messages coming out of our automatic DML processes. i've just logged the enhancement request to facilitate this, but for now i'm pretty sure you'd have to code that dml and trap your errs yourself.
    regards,
    raj

  • Custom Error Message for Validation.....

    Here is my Validation:
    I want the error which is grown from what is wrong on the page to display after the validation.
    the GUI for validation will not let me leave the Validation ERROR box empty...just not sure how to get around this.
    DECLARE
    isValid BOOLEAN := TRUE;
    message VARCHAR2(4000):='';
    BEGIN
    if (:P14_EXISTING_METRIC_NAME IS NULL and :P14_METRIC_NAME IS NULL)
    then
    message := 'Metric Name is Not Chosen:';
    isValid := FALSE;
    end if;
    if   (:P14_EXISTING_SUB_VALUE IS NULL and :P14_METRIC_SUBNAME IS NULL)
    then
    message := message || ' Sub Metric Name is Not Chosen:';
    isValid := FALSE;
    end if;
    if NOT REGEXP_LIKE(:P14_METRIC_VALUE,'expression')
      then
    message := message || ' Value is not Numeric:';
      isValid := FALSE;
    end if;
    if NOT isValid
    then
       raise_application_error (-20001,message);
    end if;
    END;Edited by: bostonmacosx on Feb 27, 2013 12:05 PM

    SO what I did was make sure that the process doesn't go false:
    and at the end just checked my messages and added an error on the end. WHEW hope this helps someone in the future.
    DECLARE
    isValid BOOLEAN := TRUE;
    message VARCHAR2(4000):=NULL;
    BEGIN
    if (:P14_EXISTING_METRIC_NAME IS NULL and :P14_METRIC_NAME IS NULL)
    then
    message := 'Metric Name is Not Chosen<BR>';
    end if;
    if   (:P14_EXISTING_SUB_VALUE IS NULL and :P14_METRIC_SUBNAME IS NULL)
    then
    message := message || ' Sub Metric Name is Not Chosen<BR>';
    end if;
    if (NOT REGEXP_LIKE(:P14_METRIC_VALUE,'^(\d{1,99})\.(\d{0,99})$') or :P14_METRIC_VALUE IS NULL)
      then
    message := message || ' Value is not Numeric<BR>';
    end if;
    if message IS NOT NULL
    then
    apex_error.add_error (
            p_message          => message,
            p_display_location => apex_error.c_inline_in_notification );
    end if;
    END;Edited by: bostonmacosx on Feb 27, 2013 12:52 PM

  • 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
    Narasimha

    The 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;

  • 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
      

  • The custom error message in the bank application is displaying in English

    Hello Team,
    The custom error message for a blank institution number in the bank application is displaying in English when the user is logged in French. See attached screen shot.
    ESS --> Personal Information --> Bank Information.
    Could any one let me know the procedure in solving the error. Helpful answer is highly appreciated.
    Thanks,
    Sankar

    Hi,
    sandip is correct, go to SE11 Table T100.
    I did it this way: Searched for (in my case) SPRSL = DE and TEXT = "Bitte Bankschlüssel eingeben" (that's the said error message). With the upcoming result I got the message ID and message Number, these are:
    ARBGB = 'AR' MSGNR = '195'
    ARBGR = '1J' MSGNR ='510'
    Maintain them for your SPRSL and you should be fine.
    regards, Lukas

  • Custom error messages impossible with jsf ea4??

    Hello,
    Does jsf allow custom error messages for built-in validators?
    I was told by a member of the jsf team that what is described in the tutorial applies only to future versions of jsf.
    Is this a bug? If it isn't and if it is indeed possible to have your own error messages for built-in validators, I would be grateful for someone of the jsf team to help me.
    I have already posted some messages asking for help but I never got any answer.
    Julien

    If a validator wants to add an error message to the current page, it has to call FacesContext.addMessage() with a javax.faces.application.Message argument. The design intent is that you can look up localized messages (defined in the config file) via MessageResources -- that's the part that does not work right now.
    In the interim, though, you can construct your own Message instances by leveraging the MessageImpl class:
    context.addMessage
    (new MessageImpl(Message.SEVERITY_ERROR,
    "You goofed",
    "Here are the gory details..."));
    or look up the message strings from a resource bundle.
    Craig

  • Error Message For Correct Input.

    Hi,
    Im generating Vendor Report I want to Dispaly the Error Message for Invalid Input.
    If i give the Company Codes other than 1000,2000,3000, & 4000 it should give the Error
    as Invalid Company code...But For Correct company code also it is giving Error...
    I Created Error class 'YVENMSG'
    and in my Program i called Erorr as follows
    if sy-subrc IS  INITIAL.
    MESSAGE e000(YVENMSG) .
    ENDIF.
    I dont know wr im wrong...
    Plz help me on this...
    Regards
    Smitha

    Hi Smitha
    You declare as below :
    *---- SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECT-OPTIONS : s_werks FOR vbap-werks .                 "Plant
    SELECTION-SCREEN END OF BLOCK b1.
    *Selection Screen validation
    AT SELECTION-SCREEN .
      IF s_werks-low IS NOT INITIAL.
        SELECT SINGLE werks            "Plant
        FROM t001w
        INTO s_werks-low
        WHERE werks = s_werks-low
        and werks in ( '2000','3000','4000' ).
        IF sy-subrc NE 0.
          MESSAGE e000 WITH text-t48.
        ENDIF.
      ENDIF.
    if its a parameter just replace s_werks as p_werks
    Edited by: Martina Floriette on Feb 21, 2009 6:01 AM

  • CreateStrategyR3 and ReadStrategyR3 Customized Error Message

    Hi
    We want to display customize error message for the function module SD_SALESDOCUMENT_CREATE.
    the function returns a return structure that has error codes like V1-117, V1-118 etc
    We want to display the customized error message for this code
    so we have made the changes in CreateStrategyR3 and ReadStrategyR3 
    as well as we have placed the customized message in the property file
    but I still cant see customized error message i can see the std error message of SAP
    Can anyone help me out with this
    Regards
    JM

    Hi ,
    Does this approach work for the version 7.0 also?
    I have made changes to ReadStrategyR3, OrderR3, backendobject-config.xml and overriden replaceR3MessageTexts.
    public boolean replaceR3MessageTexts(JCO.Record messageRecord, StringBuffer messageId, StringBuffer text){
              super.replaceR3MessageTexts( messageRecord , messageId, text); is the way i am trying to override it.
    Still the standard message is getting displayed.
    I am trying to capture message V1/150.
    Please help.
    Best regards,
    Rohit Sharma

Maybe you are looking for

  • Messages not getting displayed in BADI

    Hi experts, I have implemented a BADI for automating FB50 in MIGO. Atlast i am using CALL FUNCTION 'MESSAGE_TEXT_BUILD'   EXPORTING     msgid                     = WA_MESSTAB-MSGID     msgnr                     = WA_MESSTAB-MSGNR    MSGV1            

  • I have a pdf file, and I am trying to edit it? how do I edit it?

    I have a pdf file, and I am trying to edit it! How do I do that?

  • Using iweb as a store

    first i guess, is it possible to have a website made from iweb be an online store? and if so what are the possibilities? how would i go about incorporating a paypal account into the website? and if i can get this far how many options do i have for or

  • Complaint

    Please help am at the end of my tether feel very stressed and worried, having been a loyal customer of bt for 15 years I upgraded to bt vision with broadband only to find it never worked , I complained over twenty times often being on the phone for u

  • Instantclient-odbc - odbcad32.exe problem

    Hi. I have instantclient set up on my workstation (windows xp). It works fine via both sqlplus.exe and php/apache. However, I cannot get instantclient-odbc-win32-10.2.0.3-20061115 to work. When I add a dsn choosing "Oracle in instantclient_10_2 Versi