An odd problem when error handling

hi experts
I encountered a very odd problem when trying to show up an error message... and hope someone can help me out.
I defined a standard action in the view, and wrote some lines of code to check the input data in the predefined methodWDDOBEFOREACTIONwhich will call a method from component controller, and that method will call message_mananger->report_t100_message to show up an E type message if any error happened. But the problem is the program does not stop there but go into the action handler(ONACTIONACT_XXX).
I think it should actually stop and show up the message rather than get into the action handler because of the action is standar...
can anyone help?
many tkx

hi,
i went through your code.....the code is fine but as you told that it goes to the exception handler after coming to the message part ...this is because you are using
CALL METHOD LO_MESSAGE_MANAGER->REPORT_T100_MESSAGE
  EXPORTING
    MSGID                     =
    MSGNO                     =
    MSGTY                     =
   P1                        =
   P2                        =
   P3                        =
   P4                        =
   MSG_USER_DATA             =
   IS_PERMANENT              = ABAP_FALSE
   SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CONTROLLER
   VIEW                      =
   SHOW_AS_POPUP             =
   CONTROLLER_PERMANENT_MSG  =
   MSG_INDEX                 =
   CANCEL_NAVIGATION         =
   ENABLE_MESSAGE_NAVIGATION =
  RECEIVING
    MESSAGE_ID                =
this function will simply report that message but will not hold the control to the same screen..
so use
CALL METHOD LO_MESSAGE_MANAGER->REPORT_FATAL_ERROR_MESSAGE......
and tell me whether it solved the problem or not....
@ sarbjeet i think that Raise_T100_error is an obselete function...rite?
thanks and regards,
sahai.s

Similar Messages

  • Problem in error handling in SAX Parser

    My application takes xml message as input.
    If a error was found while validating, an <Errors> <Error></Error></Errors> element is included in the orginal message and send back to the user.
    While validation xml message I found an interesting problem.
    Created a false entry for the root element attribute.
    Traced method invocation.
    First the call back error method is invoked,then the start element(stored the attributes inside the starElement to a instance variable).When i tried to print the attribute .As the error method got invoked first
    if showed "null".
    But when i created the same case with the child elements attributes
    even though invoking of the methods happens in the same sequence
    attributes got assigned and can print the attibutes values.
    xml is schema vaidated .Is there any restriction that root element should not contain attributes.Can any one explain how the call back methods are invoked .
    Regards
    Dheeraj
    // import statements here
    public class OperationHandler extends DefaultHandler {
         private static Logger logger = Logger.getLogger(OperationHandler.class.getName());
         private Attributes attributes;
         private StringBuffer dataStore;
    public OperationHandler() {
    dataStore = new StringBuffer(100);
         * Receive notification of the end of an document.
         public void startDocument() {
              logger.debug("OperationHandler: startDocument");
         * Receive notification of the beginning of the element.
         public void startElement(String uri, String lName,
                                            String qName, Attributes attributes) {
              logger.debug("OperationHandler: startElement" + lName);
              dataStore.setLength(0);
         * Receive notification of the end of an element.
         public void endElement(String uri, String lName, String qName) {
              logger.debug("OperationHandler: endElement");
              // bussiness specific code
         * Receive notification of the end of an document.
         public void endDocument() {
              logger.debug("OperationHandler: endDocument");
         public void error(SAXParseException saxe) {
              logger.debug("OperationHandler : error");
              System.out.println("CurrentElement"+currentElement +" "+"Attributes" + attributes);
                   if(attributes != null) {
                        for(int i=0; i < attributes.getLength(); i++) {
                             System.out.println(saxe.getColumnNumber());
                             System.out.println(saxe.getLineNumber());
                             System.out.println(saxe.getMessage());
         public void fatalError(SAXParseException saxe) throws SAXException {
              logger.debug("Fatal error while parsing message");
              logger.error("Error " + saxe.getMessage() );
         public void warning(SAXParseException saxe) throws SAXException {
              logger.warn("Warning " + saxe.getMessage() );
         * Receive notification of character data inside an element.
         public void characters(char[] charData,int start, int length) {
              String strData = new String(charData, start, length);
              if(strData != null) {
                   strData.trim();
                   dataStore.append(strData);
    }

    Hi Muruganand,
    Is the data load failing while loading data or while activating?
    if the data load is failing at activation, thers is nothing you can do except editing the records in PSA and then update them.
    As far as i have seen, the data load to DSO fails in Activation and not while loading. this is the reason why the records are not collected in error stack
    unlike if it is a cube, the data load fails while loading collecting the recods in error stack.
    hope this helps,
    Thanks and Regards,
    Srinath.

  • Powershell 4.0: Problem with error handling inside Eventhandlers - Powershell has stopped working

    Hallo!
    Please see the attached sample code. This code simply show a small WPF-Dialog.
    Test 1 (showing the problem)
    Simply run the program. You will see Powershell crashing "Powershell has stopped working".
    The cause of this is the devision by 0 inside the Eventhandler.
    We would normally expect, that the exception should be handled by the trap.
    Test 2 (showing normal operation)
    Simply remove the comment in line 28 ($i=1/0).
    This activates an exception outside the Eventhandler. Now the Trap will be executed normally.
    --> The exception can be handled by the Powershell Devloper.
    Can anybody help? Why does the Error management via Trap not work inside Eventhandlers?
    Thanks for some assistance and ideas!
    Regards
    Heike
    cls
    Set-StrictMode -Version 4.0
    $ErrorActionPreference = "stop"
    Add-Type -Assemblyname PresentationFramework
    # -- Eventhandler - will be fired during form load -----------------------------------------------------
    $FormLoaded = {
    Write-Host "EventHandler is running..."
    # Problem:
    # All exceptions will crash Powershell.
    # We would normally expect that the Global Trap will be executed!
    # This problem occurs inside of Eventhandlers only!
    # TEST 1 --> Create an Exception (Division by 0) --> Powershell crashes: "Powershell_ISE has stopped working"
    $i=1/0
    # -- End of Eventhandler----------------------------------------------------------------------------------
    # -- Start of Demo-Programm ------------------------------------
    Write-Host "Start Demo"
    # -- TEST 2 ---
    # Write-Host "Test 2: Testing Global Trap"
    # Create an Exception (Division by 0) --> Powershell does not crash --> Global Trap will be executed --> OK
    # $i=1/0
    # XAML-Code for WPF-Dialog
    [xml]$xaml = @"
    <Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Test - " Height="370" Width="657" ResizeMode="NoResize" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" >
    <Grid Margin="0,0,0,-4">
    <Label Name="CustomerName" Content="Hello World" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" Width="596"/>
    </Grid>
    </Window>
    $Form1=[Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader $xaml)) # Load form
    Write-Host "Register Event"
    $Form1.Add_Loaded($FormLoaded)
    Write-Host "Starting ShowDialog"
    $Form1.ShowDialog() > $null
    Write-Host "End of program"
    # Global Trap - all exceptions should be handled here
    trap{
    Write-host "Global Trap is running..."
    Write-host "End of trap - program will be stopped"

    It works fine if you don't try to execute the code while loading and if you use a better exception handling method.
    Add-Type -Assemblyname PresentationFramework
    [xml]$xaml=@'
    <Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Test - " Height="370" Width="657" ResizeMode="NoResize" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" >
    <Grid Margin="0,0,0,-4">
    <Label Name="CustomerName" Content="Hello World" HorizontalAlignment="Left" Margin="10,2,0,0" VerticalAlignment="Top" Width="596"/>
    </Grid>
    </Window>
    $Form1=[Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader $xaml)) # Load form
    $Form1.Add_Loaded({
    Write-Host "EventHandler is running..."
    Try{
    $i=1/0
    Catch{
    Write-Host "$_"
    $Form1.ShowDialog()
    ¯\_(ツ)_/¯

  • Problem when error message in exit Save document prepare(MV50AFZ1) on PGI

    Hi,
    I am using USER_EXIT_DOCUMENT_PREPARE for throwing  error message during PGI. The error triggers properly, But after that if I press enter button, The program ends with an ABEND error 'Risk of posting several mat.documents for one delivery->long text'.
    If anyone come across with this please help me.
    Thanks in Adv.
    Regards
    Nishad

    Hi,
    I am not clearing any tables , there is a check where any BOL lading is entered or not, if not entered then throw the error message. I think when i debugged, in standard code they is a flag check
    if wa_zaehl > 0  and        "WA-Zaehler noch Null?
         fcode(4) <> 'SIC1' and  "und FCODE nicht 'Sichern'!!!
         fcode(4) <> 'LT06'.     "und FCODE nicht 'LT06'
        message a621.            "wenn nein, Abbruch!!!
      endif.
    in include MV50AF0F_FCODE_BEARBEITEN  causes problem, This flag is set after successful creation of voucher.
    I am not sure how can this be tackled.
    Thanks for your reply.
    Nishad

  • Problem while Error Handling thru BAPI_PO_CREATE1

    Hi,
    currently im facing problem while generating error thru BAPI_PO_CREATE1
    im calling bapi two times thru loop iteration,
    as my data is faulty , so for 1st iteration im getting 3 error in it_return structure.
    now in 2nd iteration im getting (3+3)
    repeted error which is geenarated earlier(old 3 err) +(new 3 err).
    im refreshing all internal table,work areas and variables, still im getting same problem,
    please provide ur kind suggestion on this.
    refresh : <all it>
    clear  : <all wa>
    Loop at it into wa.
    refresh : it_return.
    CALL FUNCTION 'BAPI_PO_CREATE1'
    Tables = IT_RETURN
    endloop.
    Regards
    Vivek Khobragade

    hi,
    I found that Im getting duplicates error because of  passing
    BAPIMEPOITEM - PREQ_NO (Purchase Requisition Number)
    BAPIMEPOITEM - PREQ_ITEM (Item Number of Purchase Requisition)
    . if I dont pass these then I wont get duplicates error.
    but as functional told its mandatory to update it?
    please have eye on it?
    regards
    Vivek

  • Odd problem when opening a file and displaying it in a gui

    When I load up my program, it displays the contents of the array as JLabels in a frame. Just say the file contained the following characters
    ###$$###
    When executing the program for the first time, the output is correct and will obviously look like this
    ###$$###
    However, when closing the instance of the program and loading it up again, the output will be
    ###$$###
    OOOOOOOO
    Where the O's are those square characters you get. (char) 12312 to be exact. Any idea why? I am using Dr. Java

    Nevermind. I got it fixed. Wasn't closing the frame properly. I apologize.

  • Odd problem when adding audio from Viewer

    When I load an audio clip into the Viewer, for some reason, in the Timeline there's no indication--on the far left of the TL--that audio tracks are available. Usually, there's 2 little thingamabobs that appear beside the track and you can move them to adjust which tracks will receive the audio clip. Now they don't appear. What up? Did I accidentally hit something on the keys? I can still set in/out on the clip in Viewer and drag it to the track I want, but I'd like to know the answer.

    Right-click on the track indicators and choose RESET PANEL.
    Shane

  • CF8 Webservice error handling

    As my title tells you, I have a problem regarding error
    handling in webservices.
    I've set up an application.cfc where I've implemented
    generalised error handling.
    Whenever a coldfusion error occurs, this is the place the
    error would be caught and properly handled.
    I.E.: Don't give the whole stacktrace and the raw coldfusion
    error message.
    The problem is that, in the case of a SOAP request, the whole
    onError method seems to be discarded.
    It won't invoke this method. I've tested this using a
    <cflog in the onError method.
    Sometimes even, when the schema is incorrect it generates an
    AXIS exception.
    But there's no real way in coldfusion to catch or even handle
    this exception.
    Does anyone else know about a way to do this in coldfusion?
    How can I catch those exceptions on my server and properly
    handle them before returning the SOAP fault envelope?

    We are implementing synchronus web services(proxy to web services) to sync master data with the external systems
    In the above scenario it will be better to intimate the error details to the source system, i.e. option 2.....this will ensure that the source system application (developers/ monitors) are aware that something has gone wrong while processing data in the target.
    Option 2. Send the the fault message(system error) to the source let the source system fail the message by not handling
    the error, so that you get the alert with the stsndard alert configuration
    Ultimately it is the business requirement which needs to be followed.....how does the business want to handle it....is the error required at the source
    Regards,
    Abhishek.

  • Error handling for RGB values

    Hi
    I am having problems doing error handling for RGB values. I have a Java applet with 3 JTextFields whose values are parsed as int variables and stored as ints. If a value is entered that is not a value between 0 and 255 is entered, the appropriate field/s should be set to an empty string.
    The problem I am having is that I am using try/catch block to try to parse as an int but then it breaks out of execution completely.
    I hope this makes sense and that someone can help.
    Thanks!

    this is because your code is probably inside one giant try catch block, what you need to do is have small ones in places where you do the parsing.
    post code and i can show you how to modify it

  • LV7.1 Strange behavior with Automatic Error Handling occuring when it shouldn't [LV 7.1 Pro on WinXP for Tablet PC's]

    [LV 7.1 Pro on WinXP for Tablet PC's]
    I recently let a rather large LV app of mine run in the development environment while I was out for a couple of days. Upon returning I found that the app had hung for ~22 hours waiting for an answer to an Automatic Error Handling (AEH) dialog proclaiming an Error 7 in New File without any indication of the VI hierarchy that called New File.  I set about ensuring that AEH dialogs would not pop up and have not been able to discover how I could have possibly received one in the first place.
    Subsequent investigation revealed:
    Neither AEH option in Options>Block Diagrams were checked.
    Network problems had occurred around the time that the app had hung.  All file paths are network paths when running in the development environment, so the cause of the error was most likely valid, even if the AEH dialog appearance wasn't.
    My app has only one instance where the New File primitive is used by me. That subVI and all others above it in the hierarchy DO NOT have the AEH property enabled.  The error out cluster of New File in my subvi is wired.
    My app has three instances where New File is called from a vi.lib vi (Open/Create/Replace File.vi, Open Config Data.vi, and Prompt Web Browser Path.vi), none of which have the AEH property enabled.  Nor does any of their calling VI's.  All three instances also have their error out cluster wired.
    A utility to examine the AEH property of all VI's (with all top level and dynamic VI's loaded) in memory reported that only 1 of 308 vi's ( RGT Does File Exists.vi from the Report Generation Toolkit) had that property true.  That vi has no subVI's other than the File/Directory Info primitive and no calling VI's in common with any of the vi's that call New File, except a top level VI.
    As long as 'Enable automatic error handling dialogs' remains unselected in options>block diagram, I am unable to get an AEH dialog for either the New File or File/Directory Info primitives in a test VI with AEH property enabled and their error out clusters unwired no matter what invalid path I pass to the functions.  As soon as the options>block diagram>Enable AEH dialogs' is selected, both primitives fire AEH dialogs with no error out wired and don't when wired. i.e. works as advertised.
    In other words I can find no reason why I should have gotten the problem AEH dialog...
    I cannot afford for this app to hang because of a network problem, other portions of the app that were running concurrently correctly handled the error and, had the AEH dialog not appeared, the app would have made corrections or shutdown in an orderly fashion.
    Any ideas?

    Very good.
    Write Characters to File.vi>Open/Create/Replace File.vi>New File
    New File throws the error.  Open/Create/Replace strips the hierarchy from the source of the error.  Write Characters passes it to the General Error Handler.  I never looked above O/C/R file in the hierarchy except for enable automatic error handling property.  The tip-off should have been to realize that O/C/R file was stripping the hierarchy from the error and look above that. 
    The real irony is that Write Characters was being used to log error cluster data to an error log file...
    Save as... Copy without updating... the OEM 'Write Characters to File' is gone from this app.
    Thanx (a bunch)

  • ColdFusion.Ajax.submitForm error handler problem with AppleWebKit-based browsers

    All-
    When using an AppleWebKit-based browser (i.e. Safari or
    Chrome), the
    message argument of the Coldfusion.Ajax.submitForm error
    handler always contains the string "OK", regardless of what error
    was cfthrown by my CFM form handler.
    Recall that the signature for the error handler is this:
    MyFormErrorHandler = function( code, message )
    In other browsers (i.e. IE or Firefox), the
    message argument of the error handler properly contains the
    message that was cfthrown by my form handler.
    Can anyone offer any guidance for this problem? Thanks in
    advance for your help.
    -Josh

    I was testing on IE8, Windows7 Starter.  I don't have IE6 available to test on.  Can test on IE7 a bit later on, but I have to fart-arse around with a VM to get it ready, so I'll do that after work.
    I tested multiple submits both via clicking between the tabs within one main "request" as well as multiple entire requests (like via refreshing the whole browser window).  I had no problems.
    I think you're being quite optimistic ot expect AJAX stuff to work reliably on IE6.  IE6 crashes.  That's what it's most famous for doing.  One needs to expect crashes if one pushes it (push it anywhere than out the window, that is).  And your client company's IT dept should be lined up against a wall and shot for still running it.  That's professionally negligent IMO.  But... you probably don't need to be told that.
    Adam

  • EVDRE error "encountered problem when retrieving data from webserver"

    Hi,
    in a EVDRE we always get the error "encountered problem when retrieving data from webserver"
    When analysing this further we noticed this is always generated when a base member is selected in the CV and the expansion on the row for this dimension is has one of the following expansion settings:
    DEP
    ALL
    NOEXPAND
    if we select SELF, the error disappears again and the EVDRE works fine again ... is this normal behavior?
    there is no problem with application nor dimension.
    D
    solved it

    Note that the keyword "ALL" does not include the member itself. This may cause some confusion, but as Harish implies, when you select a base member it finds no matches if your memberset is "ALL".
    If you want to design a report to handle the user moving back and forth between base and non-base members in their CV, you either need to include SELF,ALL or SELF,DEP, or something similar....
    OR you need to get a little fancier, and use EVPRO to look and see if the CV member is base -- evpro(app,member,"CALC") -- and then use some conditional logic in Excel to choose the correct expansion options. If Calc=N, use Self, otherwise use SELF,DEP or whatever you choose. This can be a bit tricky if you then want the user to be able to drill down in the report (especially if you want the workbook option to insert add'l rows on the expansion, rather than replace), but it's all possible.

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • Firefox crashes when I try to attach a file. Seems related to second problem, receive error messages when opening a pdf in adobe (which I've reinstalled twice)

    Crash report:
    bp-74bcae4f-7091-4121-a809-5d0a12140616 is the crash report.
    I have a Toshiba.
    When I open my email (gmail, school email) and try to attach a file, firefox immediately crashes and gives me two error messages. first one is a WerFault, i think. I don't know if that's relevant.
    Apart from these crashes in Firefox, I am also having the same problem when trying to view or open a pdf in adobe reader, or even open adobe reader itself. It won't try to open, I just receive the error messages. I've uninstalled and reinstalled it two times now. I did this thing suggested online where you go into the control panel and look at all your plugins. Then, "repair" adobe reader - pretty sure it's just a button that says repair. that didn't do anything, of course I also could have done something wrong.
    I realize this could be a problem unrelated to Firefox, but I'm doing what I can before I take my laptop in.
    Please save me.

    Ok two things based on the crash report and the steps you took right before the crash:
    # Try to disable scrolling acceleration and restart Firefox. Does it continue to crash?
    # Try Safe Mode and do the same task as above with email and the pdf [[Troubleshoot Firefox issues using Safe Mode]]
    # Also pdf.js may be helpful to read pdfs in the meantime. You can change the default reader in the Preferences/Options > Application menu of Firefox.
    # Try to clear out the downloads folder and update flash to version 14 (that should do it)
    IF it crashes again please also provide the new crash signatures and we can take a look :-) Sorry for the crashing :-(

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

Maybe you are looking for

  • Solaris 7 to 8 Upgrade with Oracle 8.1.5 (opinions and issues to note)

    Hi all, Think the subject says it all.. I have a Solaris 7 server running on Sparc E250 with Oracle8.1.5 on it. It shows that it s a 64bit system when booting up and it uses normal Solaris filesystem setup (no RAID on it) . If I were to upgrade it to

  • Acrobat X Stopped Converting to PDF's Correctly

    Hello, I have Acrobat Pro X ver 10.1.4, IE8, XpPro Svc Pack 3 and Flash 11.6.602.171 I've been using Acrobat Pro X to convert Word docs to PDF's for a long time.  Suddenly, last week, when I either convert a Word doc to PDF from within Word or open A

  • Outlook for Mac 2011

    I just migrated one macbook Pro to another both using OS X 10.8.5.   When I try to open Outlook I get an error message that says "This identity cannot be opened with this version of Outlook". It worked and still works fine in the original machine and

  • HP Officejet Pro 8600 Plus Freezes

    My 8600 Plus printer continually goes to sleep and can't be woken except by unplugging. The on/off button just pulses.

  • Mixing 23.97 fps with 29.97fps

          I'm going to be doing some video with my gopro at "30" fps.  I imagine it's actually 29.97 but am unsure about that. The docs don't go into detail. I also have a small video camera that will zoom in for some details. It shoots at 60i or 60p.  I