Change Error Message in Travel Expenses

Hi All,
I'm having a problem changing one of the error messages on the Create Expense Report screens in ESS Travel Expenses.
[Here's a screenshot|http://www.scehardt.com/news/image003.png]
I've changed the label to say Ticket instead of Document.  Now I need to change the error message to match.  I found the error message in the backend, but it is formatted as Required entry field "&" is empty.  Does anyone know where Document Number is inserted into the error message?  Alternately, is there a way to change the error message for that field to a custom message?
Thanks,
Scott

Hi Friend,
Find the code snippet something like this in your code
IWDMessageManager msgMgr =
                 wdComponentAPI.getMessageManager();
                 msgMgr.reportContextAttributeMessage(
                 wdContext.current<YourNodeElement>().getAttributePointer("<YourDocumentNumberAttribute>"),
                 IMessagePackScopingComp.<Your_Error_message_key>, new Object[] {"Document Number"});
                         // Replace The Document Number from last line with your desired text
Here you can change the Text which is going to be supplied to message pool at run time.
Further you can follow this tutorial for message pool and error message.
[A Simple Input Form with Message and Error Service Support|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/837d9290-0201-0010-1381-e633fe17cb14?quicklink=index&overridelayout=true]
Regards
Jeetendra

Similar Messages

  • Change error message to warning message

    Hi Experts,
    How can we change error message to warning message.
    Eg: T-code : SE91 shows the message. If i want to change message class PG, message no 26 error to warning what will be the process.
    Regards
    Ratan

    Hi Ratan,
    Message class PG is used in the below mentioned Standard SAP Methods and Includes, So it is not suggested to change the SAP standard code.
    Regards,
    Raja Sekhar

  • Change Error Message to Warning Message in GL account

    Hi Experts,
                      I want to Change Error Message to Warning Message In the GL Account - FH142.
    What is the Transcation Code for this.

    Hi,
    Go to transaction code OBMSG and give application area as FH and create new condition for the message 142.
    SAP will support such kind of changes.
    Regards,
    Sankar

  • Warning Message in Travel Expense Manager

    Hi Folks,
    I am using EXIT_SAPMP56T_002 USER-EXIT in Travel and Expense (Tcode - PR05) which is being called at the time of saving.
    My purpose is to show a message if the user enters an expense above limit and allow him to enter the description why the amound exceed the limit without changing the amount
    The solution can be an error / warning message.
    Problem : If I use error message the system will not allow me to move forward until and unless i change the amount to <=Limit. (But user want the amount as it as and just want to enter discription)
    If am using warning message the system will no tsyop on same screen as the exit is called on click on save mode.. So he can't enter the description.
    Please help me ..
    Regards,
    Sachin Dhingra

    Hi Sachin,
    Can't we have a popup to get the reason after the warning message.
    eg:
    CHECK amount GT maxlimit.
    DO.
    CLEAR:l_ans,l_val.
    CALL FUNCTION 'POPUP_TO_GET_ONE_VALUE'
      EXPORTING
        textline1            = 'Please enter the reason why the amount is more than the limit'
    *   TEXTLINE2            = ' '
    *   TEXTLINE3            = ' '
        titel                = 'Reason'
        valuelength          = 50
    IMPORTING
       ANSWER               = l_ans
       VALUE1               = l_val
    EXCEPTIONS
       titel_too_long       = 1
       OTHERS               = 2
    CHECK NOT l_val IS INITIAL
    AND l_ans EQ 'J'.
    EXIT.
    ENDDO.
    I kept this message in do loop because u want it as mandatory.
    So he can't proceed further with out entering the reason. If u dont want this then u can simply remove the do loop.
    Check this logic if it helps u.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jul 28, 2008 11:38 AM

  • Error while create travel expense report - MTR

    Hi all
    I am implementing MTR and as of now I am able to successfully sync the data to the client. Now when I try creating a trip in the client (offline) the following error occurs
    At the travel expense create process "Enter Genera Data" page, there is an input field for mileage, the unit for this is shown as "km" and if I try giving some value in it, it throws the following java exception.
    java.lang.NumberFormatException: empty String
         at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
         at java.lang.Float.parseFloat(Unknown Source)
         at com.sap.mbs.mttcore.util.NFHelper.localizedStringToFloat(Unknown Source)
         at com.sap.mbs.mtr.common.AbstractValidation.extractDecimal(Unknown Source)
         at com.sap.mbs.mtr.common.AbstractValidation.validateFieldLength(Unknown Source)
         at com.sap.mbs.mtr.common.AbstractValidation.validateAllFieldLengths(Unknown Source)
         at com.sap.mbs.mtr.common.AbstractValidation.validateAllFieldLengths(Unknown Source)
         at com.sap.mbs.mtr.mile.process.impl.MileValidationImpl.validateSingleMileForNewTrip(Unknown Source)
    Similar kind of error occurs when I give the amount in the "Expense Receipts" page of expenese create process.
    Had any one come across this error, Do I need to do any changes in the configuration?? Please clarify
    Thanks
    Raj

    Nadia
    Really, I was wondering whether should I keep hands on the java code.  Any ways below are the errors I face when I try to create a trip.
    1) In the "Enter General Data" the step1, the Mileage part it shows as km should be mi. When I try to input any number in there the following error occurs
    empty String - More details
    Component:: trip
    View:: com.sap.mbs.mtr.trip.control.impl.EnterGeneralDataController
    Event:: onNextStep
    Code:: Unknown Error
    java.lang.NumberFormatException: empty String
         at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:983)
         at java.lang.Float.parseFloat(Float.java:222)
         at com.sap.mbs.mttcore.util.NFHelper.localizedStringToFloat(Unknown Source)
         at com.sap.mbs.mtr.common.AbstractValidation.extractDecimal(AbstractValidation.java:227)
         at com.sap.mbs.mtr.common.AbstractValidation.validateFieldLength(AbstractValidation.java:191)
         at com.sap.mbs.mtr.common.AbstractValidation.validateAllFieldLengths(AbstractValidation.java:177)
         at com.sap.mbs.mtr.common.AbstractValidation.validateAllFieldLengths(AbstractValidation.java:152)
         at com.sap.mbs.mtr.mile.process.impl.MileValidationImpl.validateSingleMileForNewTrip(MileValidationImpl.java:307)
         at com.sap.mbs.mtr.mile.process.impl.MileProcessImpl.validateMileForTripGeneralData(MileProcessImpl.java:242)
         at com.sap.mbs.mtr.trip.control.impl.EnterGeneralDataController.validateMile(EnterGeneralDataController.java:1136)
         at com.sap.mbs.mtr.trip.control.impl.EnterGeneralDataController.bindAndValidateMile(EnterGeneralDataController.java:931)
         at com.sap.mbs.mtr.trip.control.impl.EnterGeneralDataController.bindAndValidate(EnterGeneralDataController.java:886)
         at com.sap.mbs.mtr.trip.control.impl.EnterGeneralDataController.onNextStep(EnterGeneralDataController.java:811)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.mbs.core.control.AbstractViewController.process(Unknown Source)
         at com.sap.mbs.core.control.DefaultStateMachine.process(Unknown Source)
         at com.sap.mbs.core.web.FrontServlet.doHandleEvent(Unknown Source)
         at com.sap.mbs.mtt.application.web.FrontServletImpl.doHandleEvent(Unknown Source)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGetNotThreadSafe(AbstractMEHttpServlet.java:347)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:689)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doPost(AbstractMEHttpServlet.java:706)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:313)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:534)
    2) In the same page when I tried to do "Change Cost Assignment" Similar error occurs but at a different Java Class.
    empty String - More details
    Component:: trip
    View:: com.sap.mbs.mtr.trip.control.impl.CostAssignmentViewController
    Event:: onNextEntry_Cost
    SAME ERROR
    3) The 2nd page of the process, "Record Expense Receipt", when I give some value in the Receipt Amount Field, It gives the similar error
    empty String - More details
    Component:: receipt
    View:: com.sap.mbs.mtr.receipt.control.impl.ReceiptListController
    Event:: onNextEntry
    4) Also I am not able to see the Estimates (Estimate Airfare, Estimate .....) in the drop down for Expense Type in the 2nd Page "Record Expense Receipt".
    Thanks
    Raj

  • Email Address Change -- error message rec'd

    I just changed my email address and now I'm having difficulty accessing iTunes.  The error message says to be sure my computer allows cookies from iTunes.  Sounds basic, but I don't know how to do this.  Can anyone shed some light for me?  Thanks.

    Have you set up your email as a BIS account (you log onto a website to set up the BB accounts)?
    or do you need to leave your PC and outlook and Desktop Redirector running all the time?
    it sounds like an Outlook issue running in conjunction with a Antivirus/antispam program.....
    Checked out my Blackberry FAQ's and Links to Needed Articles here
    http://darkeen.homelinux.com/index.php/Blackberryfaq

  • How to Change ERROR Message

    Hi Frnds,
    Hope you all doing good.
    I have kept a database level constrint for a Standared OAF page. but the database error was displaying on page like this
    ORA-02091: transaction rolled back ORA-00001: unique constraint (HR.XXDate_UNIQUE_UK) violated in Package irc_party_swi Procedure create_user
    how can i change this error message and keep my own custom message to display in screen !!
    any suggestions or code would be a big help please :-)

    Hi,
    Thank you frnd.it would be helpful for me if you provide any sample code.please
    You'd need to use a try - catch block around the code that invokes the database call an use an OAException
    when the submit button is pressed in the page. PFR is invoking AM,in the application module commit is taking place.at the time of commit the database level constaint is invoking.
    so now where shuld i keep try-catch block ?

  • How to change Error Message into warning message

    Dear Friends,
    I am getting an error
    The qty stored that was entered is adjusted
    Message no. XU 040
    at the time of GRN. I am maintaining batch specific Unit of Measure.
    Please tell me how to change this error message in to a warning message.
    Thanks
    Prashant Atri

    Hello Prashant,
    This is satndard SAP messagge which is maintained in customizing;
    SPRO>>Logistics - General>>Batch Management>>Define Attributes of System Messages
    Here you can convert this messages to warning message. I urge you to please check with abaper as this may be hardcoded message and it may have implications on valuation and posting.
    In the above IMG path you can do the changes
    Br,
    Tushar
    Edited by: Tushar Patankar on Jan 1, 2011 5:36 PM

  • Change error message to warning during pricing condition upper limit check.

    Hi All,
    I have a header condition ZFMN to which maximum amount that can be entered is set to $5000. When I enter the amount greater than this, it gives me error message.
    Could we change it to warning message?

    During Creation of PO when you click PO Check, What Include you are using.
    Cann't you use the BADI ME_PROCESS_PO_CUST and write the code whatever you want in PO_CHECK,
    There during Check you use any FM POP_TO_CONFIRM OR POP_TO_INFORM or show any information Message too.
    Try it once.
    Thanks
    Arbind

  • Change error message as warning

    Hi All
    I changed Gl account from B/s item to P/L item. while doing this i got error, in OBA5 i made this error message as warning.
    i would like to know what is the impact if i change the error message as warning.
    regards
    prasad

    pls note that this setting applies to all the program which uses this message class. SAP would not be responsible if standard message class is modified.
    hope this helps:
    http://www.ams.utoronto.ca/Assets/output/assets/Developmentstandards_guidelines_335678.pdf.pdf

  • Display Error Message in I Expense Page as Hyperlink

    Hi All,
    I want to show oracle apps custom message in oaf i expense page.In fact I am able to do that with built in Ap_Web_Utilities_Pkg.AddExpErrorNotEncoded.
    Ex:
    Ap_Web_Utilities_Pkg.AddExpErrorNotEncoded(p_message_array,l_clerr,Ap_Web_Utilities_Pkg.C_ErrorMessageType,
    'Date', --Prompt
    p_exp_line_info.receipt_index) ;
    But I want the custom error message with hyperlink.
    Ex:my custom error message would be "Submit Your Details in https://portal.abcd.net"
    Once they click the link they can navigate to the link.
    Thanks
    Feroz

    Hi All,
    I got the solution.Its working.
    Thanks
    Feroz

  • How to change error messages in Oracle Portal 3.0.9.8

    I have errors such as "No row returned" and etc.
    How can I change this error messages.
    Urgent
    HELP

    about report:
    select field1,field2,...,fieldn
    from table
    where table.date_insert<sysdate
    union
    select null field1, null field2, ...,null fieldn
    from dual
    order by field1...
    about other err:
    solve this problem by writing portlet manually

  • ESS Business Package - How to change error message

    Hi,
    In ESSBusiness Package Leave Application screen, if we enter some character XXX for From and To date field and try to proceed further (preview button) It is showing a error message 'Enter the value in format 11/25/1987" that we want to change to 'Enter the value in format MM/DD/YYYY".
    Please let us know from where this standard message is coming whenever we put some character values for any date control and how to change the same to customer specific message.
    Regards
    Sudhir

    Thank you Poojith,
    This is a standard message not only coming for Calender control in ESS application but also behaviour is same for custom webdynpro applications. So this message is not part of Leave Component message pool
    Regards
    Sudhir

  • Change Error Message in commit

    I have this code in a Managed Bean,
    BindingContainer binding = BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding operacion = binding.getOperationBinding("Delete");
    operacion.execute();
    operacion = binding.getOperationBinding("Commit");
    operacion.execute();
    List errors = operacion.getErrors();
    I try to delete a row which has children in other tables. (Master-Detail).
    When a execute this code the program show me a popup with the error of integrity constraint.
    I want to change the message but I don't know how.
    I tried this:
    if (errors.size() > 0) {
    String error_detail = "";
    FacesContext fc = FacesContext.getCurrentInstance();
    String error_decp = "MY MESSAGE";
    FacesMessage messag = new FacesMessage(error_decp, error_detail);
    messag.setSeverity(FacesMessage.SEVERITY_INFO);
    fc.addMessage(null, messag);
    But the popup show the message of adf and MY MESSAGE below.

    this error is coming from the mode layer.. to customize that
    use
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvgen.htm#BABEFGCI
    example is here
    http://code.google.com/p/adfproject/downloads/detail?name=CustomMessageForPrecision.zip

  • Changing error message for mandatory field in me21n

    Hi,
    We had made the field "Collective no." of the additional data tab of the me21n transaction mandatory.
    We also change the name of that field to a custom name.
    Now if the user doesn't enter text in that field we get the error "Please enter Collective no.".
    I want to change the message to match our new field name.
    I checked in T100 for that message, but it's not there.
    Can anyone tell me from were that message come from, and how to change it.
    Thanks

    Hello,
    Tell us class and msg no so that we can find out coz it is pecular requirement.
    I suggest do not make it mandotary and dont change to custom field - give information message, place the cursor in field so user get message when he dont enter any value.
    yesterday we have discussed same we do not have any userexit - SAP direct modification required.
    PAI of the SAPMEGUI 1229 and MEPO1229-SUBMI field it contains value of collection no so just write your code there.
    *****Poorna********

Maybe you are looking for

  • Frequent Fails when installing Adobe Flash Player (Windows XP, Windows 7, Windows 8.0, and Windows 8.1)

    Constantly see the following error message from Adobe Flash Player Installer: Error has been encountered. Close this window and try downloading again. What in heck does that error message mean? This message occurs most of the time when I try to updat

  • Displayin document in Smartform

    Hi everyone. I am using the following code to read an attachment . At the end of this code i'm using GUI_DOWNLOAD to download the data read from attachment into my system as a word document say filename C:\ XYZ.doc .This is working fine giving the ri

  • JSPM : Deployment Stopped in between

    Hi experts, Today I was updating Enterprise Support Portal from SP11 to SP21 (SAP Netweaver7.0 ) Half of the component Deployed successfully. But Rest of the component ended in error I checked J2ee instance are runnig fine (server0,Dispatcher and SDM

  • Problems using assertionTicket due missing entry in SLD/CIM

    Hi all! We have a problem on our SLD of the solution manager. If i try to create a a jco connection on any portal system using SSO (assertionTicket) I got the following error message: Exception while creating JCo client connection Failed to create ne

  • Adding straight line/outlines

    the answer is probably stairing straight at me, but for the life of me, I cannot seem to figure this simple task out. I am designng a rack card and wish to create a stright line border on the edges of the card. How do I add these straight lines / bor