Want to output Error message in BDC recording(PA30)

Hi all,
Currently iam working on upload program,whic is done by BDC recording with transaction PA30.while loading the data to different infotypes,iam checking one condition
in particular infotype,after that i need to give the error message(Type E) and i data should not get uploaded for that infotype,and it has to go to next infotype.i want to log this error also,how can i do this?

The ERROR message will stop the processing of the program,  the message will need to be either an I(information) or a W(warning) message into for the program to continue processing.
Log the message by writing it to an internal table.
IF SOME_CONDITION = 'X'.
MESSAGE W001(00) with 'Hey, here is a message'.
itab-pernr = p_pernr.
itab-msgid = '00'.
itab-msgno = '001'.
append itab.
ENDIF.
CALL TRANSACTION 'PA30'........
Regards,
Rich HEilman

Similar Messages

  • Disk utility 'input/output error' message?

    I am "creating an image" of a DVD using disk utility (prior to making a copy on a blank DVD disk).   Why am I now rec'ing an 'input/output error' message?   I have already copied several other DVDs from the same author (with her permission, they are not copywrited.) w/o a problem.
    What's going on?  original damaged? an incorrect step on my part?  some sort of space problem?  ( I have tons of room on my iMac.)
    Thanks for your help.

    Take a look at Cinematize 2, I've used it with iMovie 06 and iDVD 08. It has several modes of converting the data. One mode is called "lossless".
    For the job you're doing you may prefer to use iMovie 06 instead of iMovie 08 (I would).
    iMovie 06 and iDVD 08 is a terrific combination.
    Your workflow would go something like this.
    Use Cinematize 2 to create a Quicktime file from the DVD.
    http://www.miraizon.com/products/products.html
    Important that file into iMovie 06.
    From iMovie 06, share to iDVD 08 (assuming you want a DVD).

  • Leopard Disk Utility and Input/Output error messages.

    This post is describing a problem I had and how I managed to fix it. When I was researching the Input/Output error message I was getting a couple of people had mentioned this fix on the apple discussion boards, so I thought I would add my fix to support them. (Isn't google fab!) I've no idea if this is the right place for this so please bear with me.
    Okay a bit of background:- over christmas we treated ourselves to leopard and as my laptop is now three years old I decided to do a complete reformat and installation. I used my 60GB iPod as an external harddrive and backed everything up. Installed Leopard no probs and was a very happy bunny.
    The problem:- I then wanted to remove everything off my iPod. So I thought "I know I'll use Disk Utility".... I tried it with the 'default' setting and got an Input/Output error message straight away (irrespective of whether I did it as an extended journal or not.) When I tried it with the Zero Out option (can't remember exactly what it's called) it came up with the Input/Output error message right at the very end. Argh! iTunes and Finder no longer recognised it, but Disk Utility did.
    My research:- After using google I saw some guys on here talking about formatting proper external harddrives using leopards disk utility and they were getting the same messages as me. It turns out it is a fault with Leopards Disk Utility. So I did what the guys recommended.
    The solution:- (Thank god I had tiger!) I put in my tiger installation disk, clicked 'install tiger' and restarted the laptop. I clicked my my language, but then rather than going through the actual installation process I went to the top menu bars and chose Disk Utility (using tiger's disk one rather than my laptop's leopard one.) And erased the iPod there. Now when I quit the installation and opened my laptop up properly it worked, both iTunes and finder could see it!!! (I just had to restore my ipod in itunes - and now I'm happily transferring all my music back!)
    I hope this helps someone in the same position as me!

    I took it to work to use my Windows PC to try and format the drive, but got the same problem. I figured either the drive (it's a 2.5" that used to be inside my AlBook) or the external housing it lives is was faulty. Only way I could test without spending more money is by putting the 2.5" drive inside my powerbook, and booting the (Ti) powerbook from a bootable firewire ipod. I successfully booted from the ipod, and had the same problem with the now internal drive: only visible in disk utility, any attempt to erase fails. Also, I plugged the small 10 GB drive that WAS in the TiBook (but which I removed to put the other, problematic drive in) into the external housing, and it connected to other machines just fine.
    Turns out the problem is the hard drive itself.
    So now my question becomes: If disk utility can see the hard disk when it is connected (I have it back in the external enclosure now), but gives "input/output error" messages when I try to erase/format it, is there any way I can salvage this drive? It's an 80 GB drive, and I was looking forward to making it my internal TiBook drive (replacing the old 10 GB drive that's in there now).

  • Customizing error message of duplicate record

    HI All,
    I need to customize an error message of duplicate record inserting in a field of unique-constraint. I want to show the message in an alert. How can i do this?
    Arif

    Hi,
    you can use ON-MESSAGE trigger and check the error code then display your custom error message
    Regards,

  • While creating po i want to display 'ERROR MESSAGE'

    Hi
    experts
    In tcode ME21N .
    when we created PO under COMPANY CODE  if vendor is not in company code  PO is craeted .
    eg
    comapny code 1000 .
    vendor = rajesh .
    if comapny code 2000 and vendor 'RAJESH' is not in comany code then
    when we save 'i want to diplay ERROR MESSAGE '(WHILE SAVING PO).''VENDOR IS NOT IN COPMANY CODE'
    PLZ HELP ME OUT.
    THANKS
    AJAY.

    hi
    i used badi but if the vendor  between  1000 or 2000 then po wiil be save but it gives error whille saving po.
    error"enter proper vendor".
    I also used *FUNCTION EXIT_SAPMM06E_012. same problem is comming.
    .*method IF_EX_ME_PROCESS_PO_CUST~CHECK.
    BREAK:MIL_ABAP.
    data it_items type purchase_order_items.
    data wa_item type purchase_order_item.
    data wa_data type mepoitem.
    data it_data type table of mepoitem.
    data wa_header type mepoheader.
    DATA: IT_DATA1 TYPE TABLE OF MEPOHEADER.
    CLEAR wa_header.
    call method im_header->get_data
    receiving
    re_data = WA_HEADER.
    IF NOT wa_HEADER-LIFNR EQ '1000' or not wa_HEADER-LIFNR EQ '2000'.
    MESSAGE e000(zmm01) WITH 'Enter Poper Vendor'.
    ENDIF.
    endmethod.
    THANKS
    AJAY.

  • Am getting PCM output error message when trying to play a video from iPad2 on my TV

    The movie was purchased on iTunes store.  I connected the iPad2 through the adapter via HDMI straight to the TV and I have a Bose Lifestyle system for surround 5.1 sound.  After a few minutes and every few minutes after that the movie would blur and blackout then it would come back.  Eventually I got a PCM OUTPUT error message onscreen.  How do I resolve this problem?

    I have been able to open a few items in iTunes, but have not been able to play even those videos from my Apple TV. I can airplay them from the computer, but cannot access them directly from Apple TV. This is a bit frustrating.

  • Output Error Message in Flash 8

    Hi All,
    I'm building a form in Flash 8 that includes check boxes.
    When I add the check boxes and test the movie I get the following
    output error message:
    **Warning** The linkage identifier 'CheckBox' was already
    assigned to the symbol 'Assets/UIComponents/CheckBox', and cannot
    be assigned to the symbol 'CheckBox', since linkage identifiers
    must be unique.
    For the life of me I can't get rid of this. Anyone know what
    the heck is going on?
    Thanks,
    Scott

    It appears that the OP has created a MovieClip symbol and
    named it CheckBox, then has chosen to export for actionscript. The
    CheckBox component needs to have that identifier to function
    correctly. So the OP needs either, change the linkage ID on the
    symbol named "CheckBox", or take the linkage ID off
    completely.

  • Output error messages

    How does one do to output error messages without having to invoke RAISE_APPLICATION_ERROR? I'm trying to avoid chaining of exceptions handled by OTHERS.
    EDIT: I'm aware of DBMS_OUTPUT.PUT_LINE, though I am looking for a function that produces the same sort of output that RAISE_APPLICATION_ERROR does but without raising an exception.
    Message was edited by:
    0v3rloader

    There isn't a way. An exception is not just an output message it changes the execution path of the code.
    Stored procedures do not have very good IO capabilities as they are stored in the database and do not run directly from a terminal or screen.
    Catching unexpected exceptions using when others, even if followed by a raise, is very poor practice IMHO, whose only excuse is error logging but I think even that is better handled by the client.

  • Understanding Output Error Messages

    I don't understand the "heirarchy" of Flash Output Error Messages.
    For example:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at bBrand_Gallery()
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
        at flash.display::DisplayObjectContainer/removeChild()
        at bBrand_Gallery/startShow()
        at bBrand_Gallery/onComplete()
    This error shows when I preview a SWF that calls en external swf. All the code listed in the Error Codes is contained in the external swf. In the TypeError -- where do I look for the problem code? bBrand_Gallery is a class description for the externally called swf. The externally called swf runs fine by itself. All functions in the package are declared as public functions. I know that the null object reference means that it's looking for the property of an object that is not yet instantiated. How do I find that object? Would it most likely be a variable that is not delacred publicly?
    I believe the ArgumentError has to do with the fact that the DisplayObject in question is not "created" by the function startShow which includes the removeChild statement. How do I resolve that issue??
    Is there a reference as to the best way to interpret these error messages?? I'm so confused!?!?!!?
    Thanks,
    Mike

    Ned Murphy wrote:
    The messages remain something in the way of being difficult to interpret, but sometimes you can get a little better information when you set the option to Permit Debugging in the Flash Publish Settings.  Your 1009 error would end up presenting you with a line number just after the frame number to help you narrow down the problem...
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at bBrand_Gallery() frame1:19
    That's telling you line 19 holds the problemed code.  Error messages normally report in a manner of increasing distance from the problemed code.  So you can normally stop looking after the first localization...
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
        at flash.display::DisplayObjectContainer/removeChild()
    In the case of this error, you need to focus on what it tells you... there is a removeChild attempt being made for something that is not a child of the container object targeted... and if you follow on, it looks like it is being attempted in a function named startShow, which may have been executed via another function named onComplete
    Ned -- thanks for the feedback.
    I enabled Debugging and published again -- the error code remains the same, with no number or frame info.
    AFA the ArgumentError -- I suspect it's not showing as a child since the errors are preventing the entire swf from loading and running. The child is never created. I need to find the first error, and then the second should disappear.
    I guess the next step is to comment out sections of code and see what elinminates the error and then go from there. . .
    If you have any other suggestions I'm game. Thanks for explaining the sequence of the messages -- I suspected that was the case, but your confirmation helps.
    ETA: Found it.
    There was a reference to the stage width in positioning the preloader, which is a TextField. The external SWF couldn't reference the stage dimensions. I replaced the stage reference with hard dimensions, and the errors are gone.
    Thanks again for your help, Ned. . .
    Message was edited by: mjperry1951

  • I keep getting an error message saying, "cannot record" when trying to record over a slide in my presentation. No idea why. Any suggestions? Thanks

    I keep getting an error message saying, "cannot record" when trying to record over a slide in my presentation. No idea why. Any suggestions?
    Thanks

    email ituens at expresslane.apple.com and they will help you for nothing

  • Passing BAPI  Error Messages to BDC  Session.

    Hi,
    Can any one drive the idea how to convert rather passing BAPI error messages into BDC session.
    regards.

    Naveen,
    I am sure you already have the logic of "If the call transaction is errored out you create a BDC session for the same data".
    Now, when your BAPI fails, irrespective of the error, you need to build the BDCDATA table and pass the data to the session. So, I don't you really need to know the errors and pass them to the BDC Session.
    Check the RETURN table of the BAPI, if it has got E / A / X error types then you can build the BDCDATA table and create the session.
    Regards.
    Ravi
    Note : Please mark the helpful answers and close the thread if the issue is resolved.

  • How to Handle pop up error message in BDC

    Hi Friends,
    Right now I am working with CA12 transaction.
    In this transaction for each group I need to update the details of the operations( lablour and overhead value).
    after updating the details, When I click on save I get a error pop up message saying 'Task contains the Erros, do you still want to save', if I click on the group it will be saved.
    When I am doing the same thing through recoring( SHDB ). I do no get the same pop up Which I got through transaction(CA12).
    but still user wants to save the details. user do want to be displayed as error.
    How to get the pop up?, so that I can click save eventhough it contains errors.
    Is it possible in BDC?
    Regards,
    Xavier.P

    Hi!
    Yes, it's though, however you might try to create the BDC recording with an another way.
    For example, don't click on the save button, but press the leave button (green left arrow). The transaction will give you a popup with the options: save yes, no, cancel. Hopefully this popup can be recorded with SHDB.
    Regards
    Tamá

  • Capturing warning message in BDC recording

    Hi all,
    I want to capture a warning message that is getting popped during BDC recording. When BDC is ran in background, it is stopping at that point and further processing is stopped with the display of this warning message.
    Can anybody help me in capturing this warning message?
    Thanksm
    Archana

    Hi Avinash,
    I am trying to change the profit center using this BDC. So, when i change it, this warning is displayed and it goes inside one more window and coreects the new profit center added in the previous window. So, this warning message is necessary to be displayed. But my problem is that because of this message my BDC is also not proceeding further.
    Hi Bhavesh,
    The warning message is getting displayed as a pop-up. I am not getting any information about the screen number. I know the prgram for that but no the screen number. And can you please tell me what that piece of code does? So that i can try it out in my BDC.
    Thanks,
    Archana

  • Freight Setup, Stock = Yes. Error Message: No matching records found 'G/L A

    Dear Experts,
    I want to distribute the Freight Charge into Item Cost at Goods Receipt PO, so i setup the Freight under Administration > Setup > General > Freight
    Revenue Account and Expense Account are entered properly.
    Distribution Method = Row Total
    Drawing Method = Total
    Stock = Yes
    When i Add the Goods Receipt PO, error message prompt: No matching records found 'G/L Accounts' (OACT) (ODBC-2028).
    If i change Stock = No, then the Goods Receipt PO can be added successfully.
    I am using SAP 8.8 Patch 14. Can you please advise where did i configure wrongly?
    Thanks.
    Regards,
    Lay Chin

    Dear all,
    Found the answer accidentally, add the Freight Charge in AP Invoice instead of Goods Receipt PO. Then it works.
    Thanks.
    Regards,
    Lay Chin

  • How can I put all output error message into a String Variable ??

    Dear Sir:
    I have following code, When I run it and I press overflow radio button, It outputs following message:
    Caught RuntimeException: java.lang.NullPointerException
    java.lang.NullPointerException
         at ExceptionHandling.ExceptTest.actionPerformed(ExceptTest.java:72)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)Caught RuntimeException: java.lang.NullPointerException
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)I hope to catch all these error message into a String Variable such as StrErrorMsg, then I can use System.out.println(StrErrorMsg) to print it out or store somewhere, not only display at runtime,
    How can I do this??
    Thanks a lot,
    See code below.
    import java.awt.Frame;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.FileInputStream;
    import javax.swing.ButtonGroup;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    public class ExceptTest extends JFrame implements ActionListener {
        private double[] a;
      private JRadioButton divideByZeroButton;
      private JRadioButton badCastButton;
      private JRadioButton arrayBoundsButton;
      private JRadioButton nullPointerButton;
      private JRadioButton negSqrtButton;
      private JRadioButton overflowButton;
      private JRadioButton noSuchFileButton;
      private JRadioButton throwUnknownButton;
      public ExceptTest() {
        JPanel p = new JPanel();
        ButtonGroup g = new ButtonGroup();
        p.setLayout(new GridLayout(8, 1));
        divideByZeroButton = addRadioButton("Divide by zero", g, p);
        badCastButton = addRadioButton("Bad cast", g, p);
        arrayBoundsButton = addRadioButton("Array bounds", g, p);
        nullPointerButton = addRadioButton("Null pointer", g, p);
        negSqrtButton = addRadioButton("sqrt(-1)", g, p);
        overflowButton = addRadioButton("Overflow", g, p);
        noSuchFileButton = addRadioButton("No such file", g, p);
        throwUnknownButton = addRadioButton("Throw unknown", g, p);
        getContentPane().add(p);
      private JRadioButton addRadioButton(String s, ButtonGroup g, JPanel p) {
        JRadioButton button = new JRadioButton(s, false);
        button.addActionListener(this);
        g.add(button);
        p.add(button);
        return button;
      public void actionPerformed(ActionEvent evt) {
        try {
          Object source = evt.getSource();
          if (source == divideByZeroButton) {
            a[1] = a[1] / a[1] - a[1];
          } else if (source == badCastButton) {
            Frame f = (Frame) evt.getSource();
          } else if (source == arrayBoundsButton) {
            a[1] = a[10];
          } else if (source == nullPointerButton) {
            Frame f = null;
            f.setSize(200, 200);
          } else if (source == negSqrtButton) {
            a[1] = Math.sqrt(-1);
          } else if (source == overflowButton) {
            a[1] = 1000 * 1000 * 1000 * 1000;
            int n = (int) a[1];
          } else if (source == noSuchFileButton) {
            FileInputStream is = new FileInputStream("Java Source and Support");
          } else if (source == throwUnknownButton) {
            throw new UnknownError();
        } catch (RuntimeException e) {
          System.out.println("Caught RuntimeException: " + e);
          e.printStackTrace();
          System.out.println("Caught RuntimeException: " + e);
        } catch (Exception e) {
          System.out.println("Caught Exception: " + e);
      public static void main(String[] args) {
        JFrame frame = new ExceptTest();
        frame.setSize(150, 200);
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.show();
    }

    yes, I update as follows,
    but not looks good.
    import java.io.*;
    public class UncaughtLogger implements Thread.UncaughtExceptionHandler {
        private File file;
        private static String errorMessage;
        public UncaughtLogger(File file) {
            this.file = file;
            //Thread.setDefaultUncaughtExceptionHandler(this);
        public UncaughtLogger(String str) {
            this.errorMessage = str;
            Thread.setDefaultUncaughtExceptionHandler(this);
        //@Override()
        public void uncaughtException(Thread t, Throwable e){
            try {
                log(e);
            } catch (Throwable throwable) {
                System.err.println("error in logging:");
                throwable.printStackTrace();
        private void log(Throwable e) throws IOException {
            PrintWriter out = new PrintWriter(new FileWriter(file, true));
            try {
                e.printStackTrace(out);
            } finally {
                out.close();
        private static UncaughtLogger logger = new UncaughtLogger(new File("C:/temp/log.txt"));
        private static UncaughtLogger logger2 = new UncaughtLogger(errorMessage);
        public static void main(String[] args) {
                String s1 = "Hello World!";
                s1 = null;
                String s2 = s1.getClass().getName();
                System.out.println(s1);
                System.out.println(s2);
                System.out.println("errorMessage =" + errorMessage);
    }

Maybe you are looking for