Miro custom error doesn't dissapear BTE 1120

We are using BTE 1120 to check some conditions and issue an error message.
The message is in the form
message text-er1 type 'E'.
The message does appear on the message tab under the MIRO TX, and it does prevent saving and accounting.
The problem we have is that after correcting the problem it does not dissapear, which we think is logical since it's a custom message and we didn't include any logic to treat it.
So, what is the way to go from here?
1) change the way the error is introduced so that it's treated normally
2) use some FM to manually erase the error
3) any other way?
Thanks for reading and thinking about this.

We checked the BADIs but they didn't expose all the data we needed. After some code reviewing of past projects involving badis, we implemented in BTE 1120 the same type of messaging.
We used the include for the message class
INCLUDE mm_messages_mac.
and then posted the messages from the BTE using the macro
mmpur_message
It worked like a charm.

Similar Messages

  • Raising Error in Process BTE 1120? is it safe?

    Dear all Experts,
    Iam using Process BTE - 00001120, to validate many things. It gets triggered in almost every FI document just beofre saving the document.  My Question is, is it safe to raise Error Message in this BTE as it gets triggered just before saving? If you can guide me to any FAQ's on BTE, it will be helpful.
    Note : Please answer the question if you have worked on the said BTE and if you have knowledge on it.
    Thanks & Regards,
    Faheem.

    Hi Nabeehatmadan,
    Thanks for the quick reply.Firstly I have not worked extensively on FI VALIDATIONS & SUBSTITUTIONS.As far as my knowledge and understanding , FI Validations & Substitutions are provided by SAP & we dont need to register Access Key for the same. But please check the Page 2 of the note 842318, which states :
    If you create a substitution, for example "Financial accounting - document
    line item", only certain fields are authorized for the substitution. This
    is because it may lead to problems with the documents or inconsistencies
    between different applications.
    It is possible to release more fields for substitution. However, this can
    be critical, as serious problems can occur as a result.
    This is why you should regard the following change as a modification (Note
    170183).
    And as I said that I have to raise error messages based on my checks and I have to use User Exits for the same to get my checks done as my checks includes conversions of WBS/Project compared with assignment etc etc , which cannot be done directly. Now check Page no 4 of the same note which states we cannot issue Messages :
    3. What must I take into account when implementing the user exit?
    No dialog boxes, warning messages, information or error messages must be
    issued in an exit, and a "COMMIT WORK" must not be rejected. This would,
    for example, interrupt the batch processing or cause problems with the
    documents to be posted. If you find a serious error in the field contents
    in the exit, send a termination message (A or X), which will ensure that
    the transaction is terminated.
    Please guide me if iam wrong ?
    Please let me know if we can issue error messages in BTE 1120?
    Thanks & Regards,
    Faheem.

  • BSEG-ZUONR can't change by BTE 1120

    Hi, gurus,
            I want to change the field BSEG-ZUONR with the DN number,  I use BTE 1120  to implement it, but it doesn't work. I refer https://www.sdn.sap.com/irj/sdn/nw-development?rid=/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7  and follow it step to step, but the demo aslo doesn't change the field. Is there any customizing issue I need to revised?
    Thanks advance

    Hi,
    I wouldn't have used BTE for that, but rather substitution program RGGBS000.
    You need to make a Z_ copy of that program, affect it (GCX2 and OBBH), do some customizing steps (SM30 on VWTYGB01)in order to open the fields for substitution.
    Then create your own subroutines in ZRGGBS000 and set them in customizing (GGB1 for Financial Accounting).
    NB: read carefully F1 helps provided, since amonst the 3 substitutions (document header, line item and complete document), 'Complete document' has now some severe restrictions.
    Regards,
    N H

  • 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
      

  • Custom error message in mapping-Alert

    We are using XSLT mapping and We are raising custom error message based upon some conditions i.e if vendor number is invalid or blank.If it doesn't meet the requirement,mapping will fail and it will throw error message as" IDoc XXXXXXXXX is having invalid vendor number".
    My question is,we would like to send this custom error message to email receipients through RWB-AFW.
    How do we capture this custom error message is alert category or alert rule?

    SOLVED!!!!
    UDF call to RFC-FM by passing payload dato in t it

  • Capturing custom error message from alert category

    We are using XSLT mapping and We are raising custom error message based upon some conditions i.e if vendor number is invalid or blank.If it doesn't meet the requirement,mapping will fail and it will throw error message as" IDoc XXXXXXXXX is having invalid vendor number".
    My question is,we would like to send this custom error message to email receipients through RWB-AFW.
    How do we capture this custom error message is alert category or alert rule?

    You can not unless u use BPM.
    VJ

  • Custom ErrorDocument doesn't display correctly

    I have created a custom ErrorDocument 401 to use in
    .htaccess. After the user cancels out of the login screen in
    Firefox or Opera, they are redirected to the authreqd.html file for
    the custom error message. However, when that page is diplayed in
    Firefox or Opera, none of the background images load. The Alt text,
    when available, is shown instead. Why would the images not load for
    this file when they work correctly for all other links.
    Interestingly, when you type in the URL and go directly to that
    page, it does display correctly.
    P.S. Safari doesn't load the custom error page at all. An
    incorrect username/password returns the login screen repeatedly,
    and cancelling returns you to the page you were previously on.
    Here is the custom error
    file

    There are tonnes of possibilities and many websites with suggestions. I tried all sorts of these option (clear cache, clear cookies, anti-virus changes, page style options etc) with no success until eventually I accidentally changed my character encoding autodetect (firefox 6) from "off" to "universal" and everything is fine.

  • Customizing Error Message in Jsp app.?

    Hi,
    In my small application created by JDev10g wizard, I would like to customize errors received from database on dml operations before showing on jsp page. How/Where could I capture the error?
    Please advise.
    Thanks

    I have the same functionality with the automatic commit in the Datahandler onEvent (update/delete and create). I ran into the same "OnEvent" problem. I think the problem is the result of having the "<jbo:Row>" tag inside of a try/catch block. From my experiments, I was able to determine that the errors almost always related to some sort of row handling. They always happened after the code within the try/catch block failed. I found that it would work fine with just the commit inside the try catch block. As soon as I tried to catch an error in the "<jbo:Row>" tag everything went screwy. This is no good considering that I have custom errors that are thrown when you try to create/update an attribute (before commiting!).
    So far, I have been able to work around this somewhat. I don't get any errors if I create a Row object programitically without the Oracle convenience tags. I tested this with the OnEvent(Delete) function because it is the easiest to replicate. Here is the code that I have that works for me:
    <jbo:OnEvent name="delete">
    <% // get the row from the parameter jboRowKey which is created automatically when you have addRowKey=true on your URL/Form event tag (default behaviour)
    Row rowDelete = ds.getRowFromKey(params.getParameter("jboRowKey")); %>
    <% try { %>
    // call the remove() method of the entity you can overide this method if you want (I have). To do this, check the relevant box from the entity's java tab.
    rowDelete.remove();
    // commit this action right away
    ds.getApplicationModule().getTransaction().commit();
    } catch (JboException ex) { %>
    // Catching those JboExceptions we created in the EntityImpl.java file
    <h3 class="error">Error</h3>
    <%=ex%>
    <% // since it failed, rollback the transaction. Since I am commiting everything this will only rollback the delete command. I call it just in case the framework doesn't do this somewhere else! :)
    ds.getApplicationModule().getTransaction().rollback();
    } %>
    </jbo:OnEvent>
    I haven't been able to repeat this for the update or create OnEvents because they are much more complicated. Let me know if something like this works for you! Also let me know if you find a way to do this for create/update without being far too complicated.
    If you are interested to find out what the <jbo:Row> tag does (to replicate it's behaviour perhaps?) you can find the code. It should be located in this file:
    C:\<jdevDir>\BC4J\src\bc4jhtmlsrc.zip
    If you open it you will find RowTag.java (or something) and that is what JDeveloper runs when you use the Row tag.
    Hope this helps a bit!
    ~Rob Lundeen

  • 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 Pages (404 & 500) not invoked (JSF 1.2 & Websphere 6.0.1)

    Hopefully this is very obvious to some of the experts here. I'm trying to have my custom error pages (404 & 500) displayed, but in stead I get the normal system output text (ugly). The web.xml has been configured to apply the FacesServlet to all pages ending with "jspx". What I now get is the following: Whenever a page ending with .jspx cannot be found, the custom 404 page is IGNORED, however, when I don't use .jspx, but .jsp for example, IT WORKS. Below is my web.xml. I have already tried to make the error pages plain html, and also moved them to the root directory, no luck.
    Oh yes, running on RAD 6.0.1, Faces 1.2.
    Please if someone could guide me here...
    ########## SNIP ##########
    <servlet id="Servlet_1212573625706">
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>
    javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>-1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>JS Resource Servlet</servlet-name>
    <url-pattern>/.ibmjsfres/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    <error-page>
    <error-code>500</error-code>
    <location>/includes/errorPages/error500.jspx</location>
    </error-page>
    <error-page>
    <error-code>404</error-code>
    <location>/includes/errorPages/error404.jspx</location>
    </error-page>
    ########## SNIP ##########

    I recognize this as an appserver bug (yeah, it's Websphere).
    Websphere (and the older versions of Apache Tomcat where it is actually based on) doesn't expect the error-page to be a dynamic servlet-served page, but as a static page. It roughly handles as follows: get the error-page location from web.xml, test its existence on the disk file system, if positive then go ahead, but if negative then display default error screen.
    The file with .jspx extension does not physically exist on the disk file system. A workaround for which I remember it worked in WAS 5.x is to create physically that file (empty content is allowed) on the disk file system. So create a blank file with jspx extension at the same location.

  • Application can't use mutiple custom error files?

    I have problems getting custom error files to work in a stand-alone application.
    For different components of my program, I have different custom error files:
      Micro4-errors.txt
      Isabel-errors.txt
      Triggering-errors.txt
    Running in the Labview ADE everything works fine.  But in the .EXE i get undefined errors for some of the error conditions.   It seems that only one of custom error file is being used, and the rest is ignored...
    Does that sound familiar to someone?
    Running Labview 8.5 on Windows XP.

    I know what wrong now. Seems that the files are at the wrong location.    According to http://digital.ni.com/public.nsf/allkb/6077DBEDA4F9FEE3862571F600449501  they should only be in either errors\ or user.lib\errors\.
    Funny thing....   When I place them in errors\ it still doesn't work.   In the user.lib\errors\ directory, it does work.    So it seems that the documentation & application builder don't agree on that.   

  • Custom error page.........please help me

    Hi guys,
    i'm working on a jsf application and i've decided to use a custom error page.
    What i want is displaying the stacktrace of the application level' exceptions like nullpointer,mysql exceptions etc....in a custom error page.
    I've followed an example at the end of core java server faces book but it's doesn' work!!
    Please help me,these are my steps...
    i've defined in my web.xml
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
      <error-page>
      <error-code>500</error-code>
      <location>/errorDisplay.jsp</location>
    </error-page>i've errorDisplay.jsp
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <html>
    <f:subview id="dummy">
    <head>
      <title><h:outputText value="Problema nell'applicazione"/></title>
    </head>
    <body>
    <h:form>
    <p><h:outputText value="Un errore � stato riscontrato"/></p>
    <p><h:outputText value="Ecco lo stacktrace"/></p>
    <h:inputTextarea value="#{errorBean.stackTrace}"
    rows="40" cols="80" readonly="true"/>
    </h:form>
    </body>
    </f:subview>
    </html>and this is my managed bean ErrorBean.java
    package giu;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.sql.SQLException;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.servlet.ServletException;
    public class ErrorBean {
         public String getStackTrace() {
              FacesContext context = FacesContext.getCurrentInstance();
              Map request = context.getExternalContext().getRequestMap();
              Throwable ex = (Throwable) request.get("javax.servlet.error.exception");
              StringWriter sw = new StringWriter();
              PrintWriter pw = new PrintWriter(sw);
              fillStackTrace(ex, pw);
              return sw.toString();
         private static void fillStackTrace(Throwable t, PrintWriter w) {
              if (t == null)
                   return;
              t.printStackTrace(w);
              if (t instanceof ServletException) {
                   Throwable cause = ((ServletException) t).getRootCause();
                   if (cause != null) {
                        w.println("Root cause:");
                        fillStackTrace(cause, w);
              } else if (t instanceof SQLException) {
                   Throwable cause = ((SQLException) t).getNextException();
                   if (cause != null) {
                        w.println("Next exception:");
                        fillStackTrace(cause, w);
              } else {
                   Throwable cause = t.getCause();
                   if (cause != null) {
                        w.println("Cause:");
                        fillStackTrace(cause, w);
    }I cause mysql exceptions in my application,but i see the standard stack trace,not my jsp page with stack trace..
    i think my error is in web.xml in which 500 is only a type of error....i've to adding mysql exceptions????
    How can i do it?
    Please help me

    I have the above solution working in my environment. the only difference is that i have an additional declaration in the deployment descriptor...
    <error-page>
         <exception-type>java.lang.Exception</exception-type>
         <location>/faces/errorDisplay.jsp</location>
    </error-page>

  • Custom error message in SAP application log

    Is there a way to add a custom error message to the SAP application log without passing the message variables MSGV1, MSGV2, MSGV3, MSGV4 and the Message class and number. 
    We want to pass a custom message from the BAPIRET2-MESSAGE without giving it a Message class and number.  The reason for this is that  we are using class based exceptions instead of the traditional message class with errors.  When we catch the class based exception, we take the error text of the exception and put in in the BAPIRET2-message and set the BAPIRET2-TYPE as 'E'.  Now we want to add this to the SAP application log.
    The call to 'BAL_LOG_MSG_ADD' takes a structure BAL_S_MSG which is just like BAPIRET2.  However this function builds the entry to the application log use the message variables MSGV1, MSGV2, MSGV3, MSGV4.  There is no provision to pass in the BAPIRET2 message.
    Add message to application log
      CALL FUNCTION 'BAL_LOG_MSG_ADD'
        EXPORTING
         i_log_handle              = app_log_handle
         i_s_msg                   = log_message
    Thanks,
    Jay

    Hi Jay,
    Did you see <b>BAL_LOG_EXCEPTION_ADD</b>?
    This FM is represented by the structure <b>BAL_S_EXC</b>. This can have various versions as described below:
    <b>Data of BAL_S_EXC Structure  /     Use</b>
    <b>EXCEPTION</b>  /                              Exception class from which an exception text 
                                                       is added to the log. This field must be filled.
    <b>MSGTY</b>  /                                     Message type (MSGTY) of a T100 message.
                                                       This field must also be filled for exceptions.
    <b>PROBCLASS,
    DETLEVEL,
    ALSORT, TIME_STMP</b>  /                Message or exception attributes, such as
                                                        problem class (PROBCLASS, for
                                                        example, "very important"), level of detail
                                                        (DETLEVEL, from 1 to 9), sort criterion
                                                        (ALSORT, unrestricted) and timestamp
                                                        (TIME_STMP). These fields can be displayed
                                                        in the log (except TIME_STMP).
    <b>MSG_COUNT</b>   /                            This attribute is not used for exceptions.
    Follow the link below for more details:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d6/5d7f38f52f923ae10000009b38f8cf/frameset.htm">SAP Help DOc</a>
    Hope this helps.
    Thanks
    Sanjeev

  • How can we define custom error page in protal application

    How can we define custom error page in protal application, like we define "jsp Error page " in JSPs

    Hi,
    Check these:
    Customization of Portal Runtime Errors and portal standard error codes
    http://help.sap.com/saphelp_nw04/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm
    Regards,
    Praveen Gudapati

  • ICI - How to display custom error messages in SAP CRM

    Hello,
    we are working on a custom Contact Center which interfaces with SAP CRM Version 7 with Enhancement Package over ICI.
    The basic call functions like accepting, hanging up, holding and retrieving are fully implemented and are working already.
    Our goal is to display error messages in the CRM so that clients know there is something wrong, for example why he can't be log in successfully (e.g. the telephony server isn't reachable).
    We already found the ICI Documentation file which provides us the CRM SOAP error codes and tried to send SOAP Fault messages, but never got
    them to screen.
    Please find an attached example screenshot what we mean exactly, reproduced by trying to make a call with CRM user while BCM CDT isn't
    running in the background.
    Regarding to this topic we've the following questions:
    - Is it possible to display custom error messages on the CRM or is this functionality limited to SAP?
    - Could you provide us some further information on how to use this feature exactly (implementation details?) and how the SOAP XML should look like to get it work?
    Thank you in advance!
    Best regards
    René Holy

    NewUser7 wrote:
    Please correct me if I am wrong
    I need to create an entity adapter and attach an error handler with the adapter? or can i handle that in the event handler itself. I coulnt find any api for handling errorsYou can do it both ways but since we are talking about event handler now, then in 9.x you need to extend com.thortech.xl.client.events.tcBaseEvent class for creating a event handler. In tcBaseEvent class there are various flavors of handleError method. So use that as per my note earlier and you should be good.
    HTH

Maybe you are looking for

  • Annoying Error code on My verizon

    I keep getting this error code  MDN Error. Code: 11 On the My verizon app. ALl I want to do is check my data usage so I can see if I can lower my data plan. This website is a mess too.  I been trying to register and having all kinds of problems. If I

  • Plot in Mathematica

    hello, I was thinking of a way to run a Mathematica code from labview. The code is a simple ListPlot or Plot3d in mathematica.  Right now , I can open a mathematica notebook via LV ( using System Exec.vi ) and then have to insert the file path ( as s

  • Error in PSA Request deletion

    Hey all, how are you! I have a little glitch in my Processchain and since I can not seem to find an answer myself I was wondering if any of you might give me some feedback In a processchain I created, I wanted to delete the PSA-table contents and I a

  • Selections in PS Touch for phone

    Selections in PS Touch for phone Making a selection Select the Rectangular Marquee tool. Drag a rectangle onto the image. The moving border indicates a selection. When moving a selection, you are moving the selection area, not selected pixels. To mov

  • Download CC 2014 Applications Without Using Creative Cloud?

    I have the new Creative Cloud and associated apps (2014) installed on my MacPro at work, but I want to install the new associated apps on my iMac at home. I asked for a link to download the previous versions files to an external hard drive recently (