How do i get data when displaying error message in BDC

hi,
I have generated one internal table for displaying error message using BDCMSGCOLL, i want the the error to display according to the field name,
Hw can i get it...
ex: <Material name> Error message as name already created or unit doesnt exit...
Pls reply,
Regards,
Divi.

Hi Divya,
Try the below
CALL TRANSACTION 'MM01'
                    USING bdcdata
                    MODE   'N'
                    MESSAGES INTO MSGTAB.
IF SY-SUBRC NE 0.
move itab-matnr to jtab-matnr.
append jtab.
PERFORM CHECK.
ENDIF.
FORM CHECK.
LOOP AT MSGTAB where msgtyp = 'E'.
read table jtab index sy-index.
write:/ jtab-matnr.
CALL FUNCTION 'MESSAGE_PREPARE'
  EXPORTING
    LANGUAGE                     = sy-langu
    MSG_ID                       = MSGTAB-MSGID
    MSG_NO                       = MSGTAB-MSGNR
   MSG_VAR1                     = MSGTAB-MSGV1(50)
   MSG_VAR2                     = MSGTAB-MSGV2(50)
   MSG_VAR3                     = MSGTAB-MSGV3(50)
   MSG_VAR4                     = MSGTAB-MSGV4(50)
   IMPORTING
   MSG_TEXT                     = L_MSG
EXCEPTIONS
   FUNCTION_NOT_COMPLETED       = 1
   MESSAGE_NOT_FOUND            = 2
   OTHERS                       = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE:   L_MSG.
ENDLOOP.
ENDFORM.
- Satish

Similar Messages

  • When starting Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message.

    When starting up Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message?
    The error message is: what happened: Type Error: Components. classes ['@mozilla.org/extensions/manager;1'] is undefined.
    It appears all the time already from the beginning after installing Firefox 4.

    Thanks a lot. The Ask toolbar created this problem. Another problem is: When searching on the web via Google, normally it is possible to type a few letters and then look what appears and then click on the wanted word(s). A number of word(s) ineed do appear, however it is not possible to select any of them as ws possible as mentioned in olders versions.

  • How to validate VO result and display error message?

    Hi,
    I have created 2 pages:
    Page 1: User to enter employee number and click 'Go' button to search (redirect to Page 2)
    Page 2: To display employee details
    In situation where employee is suspended, employee detail will be display as blank in Page 2.
    At the same time, we would like to display error message which inform user to refer to HR Department for this scenario.
    Need guidance on how to perform the validation and display error message.
    Thanks and Regards,
    Shiau Chin

    Hi Shiau,
    In this case instead of redirecting to next page, throw an exception on the same page.
    If you want redirect it to next page then while redirecting it to next page pass some info that can indicate that employee is suspended, get this value in Process request if it has value then throw exception else query details.
    Regards,
    Reetesh Sharma

  • How do I get rid of the error message "There was an error connecting to the server “Office AirPort Extreme” ?

    How do I get rid of the error message "There was an error connecting to the server “Office AirPort Extreme” ?  This message shows up 3 times when I boot my iMac.

    I do have a USB hard drive hooked up to the Airport.  I've never created an AppleScript for it.  Should I disconnect the USB drive and see if I still get the error message?
    Thanks for your reply!

  • I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I've just seen this message for the first time and it's showing on 10 devices.
    What I really love about Apple Configurator is the copious amount of context driven help offered to you.
    "Unable to send ClearPasscode command to device.
    The device was disconnected.
    Check the USB connection to the device."

  • How do i get rid of hp error message 400 off of my home page?

     I have a compaq presarrio computer and a hp photosmart6510 printer. When I pull up my home page I get a message from hp saying that service is unavailable error message 400. Iam still able to surf the net and use the printer, but I can't get rid of the error message. Does anyone have any ideas? inormally use aol as a homepage. I have tryed to reset it but it is a no go.

    Can you manually "google" to the homepage?  If so, then the homepage is OK, just re-save the homepage as your default page in Internet Options by selecting "use current".
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • Fields in tcode gets disabled when an error message is displayed

    Hi,
    I am throwing an error message in tcode VA01 with the help of a BADI...When this message is displayed all the fields in the tcode are disabled, and we cannot make any entry...Pls some one suggest how to enable the fields....it's urgent...
    Thanks
    Edited by: suresh kumar nandhagopal on Apr 1, 2008 7:32 AM

    Hi,
    Instead of error message make it as warning message the use LEAVE SCREEN command.
    Award Points If Useful

  • NsAppShell:Event Window:firefox.exe-Application Error message when shutting down Firefox, how do I get rid of this error message?

    I click to exit Firefox and the above error message & below this error message it says the following:
    The instruction at 0x776fe144 referenced memory at 0xfffffffff. The memory could not be read. Click on OK to terminate the program.
    The only change I have made recently was to upgrade to the current Firefox version 30.0, the above message showed up after the upgrade.

    Your System Details
    Installed Plug-ins
    Shockwave Flash 14.0 r0
    Shockwave Flash 12.0 r0
    Shockwave Flash 11.9 r900
    Having more than one version of a program may cause issues.

  • For a call screen when displaying error message screen become disable

    Hi,
    For a call screen when i am giving a error message all the other fields are getting disabled and by enter also they are not getting enabled.
    can you please suggest how to get this in enable mode with the error message.
    the error message is given if we are trying to save the duplicate record.
    Please suggest <removed by moderator>.
    BR,
    Rajesh
    Edited by: Thomas Zloch on Nov 18, 2010 4:18 PM - priority normalized

    Try:
    message 'blabla' type 'S' DISPLAY LIKE 'E'.
    Edit.
    But you should validate the key fields before even pressing the SAVE button. Use CHAIN..ENDCHAIN for the key fields.

  • How do I get solve these AMDS error messages ?

    I'm trying to update the music to my phone (4s) but itunes and/or my laptop isn't recognizing my phone. i followed the support steps but i get this error message "the apple mobile device service on local computer started and then stopped. some services stop automatically if they are not in use by other services or programs." how do i get fix this?

    Not sure what you are asking. I use yahoo for my email address. My cell phone can get the messages. They are marked 'read'. Later when I want to download emails to Thunderbird, it does not, because messages are mark read, and Thunderbird only downloads 'new' messages, aka already read.

  • I am constantly receiving an error message that says "Could not find a PPPoE Server." My wireless internet connection seems to working fine, I'm not having any issues. How do I get rid of this error message?

    A few weeks ago my computer had lost the connection to the wireless internet. I set it up again and was able to connect to the internet, however since then I've been receiving an error message "Could not find a PPPoE Server." I went back into Preferences and unchecked the PPPoE server option but the error message still pops up.
    Any idea how to fix it?

    In the Network pane of System Prefences, do you have duplicate services on the left column? When you "set it up again", you might have duplicated a service and both (the good working one and the previous that lost connection) might be trying to connect at the same time.

  • How do I get rid of an error message that comes up on opening the Photoshop Elements 8 Organizer?

    When I double-click on the Adobe Photoshop Elements 8 desktop icon,
    an error messsage appears. The title line says:
    OWL ORPHANAGE: PhotoshopElementsEditor.exe - System Error
    Then the message ;
    The program can't start because CoreFoundation.dll is missing from your computer.  Try reinstalling the program to fix this problem.
    I did deactivate, uninstall, and reinstall the program. Still got this message.
    When I click OK the error message flickers, then reappears. I click again, same thing. 3rd click, the message disappears and the Organizer opens.
    I can get Elements 8 to open, but why this message first, and is there a way to either download the missing file or just get rid of the message?
    I did do a computer search and there is no CoreFoundation.dll on my computer.

    Hi, John
    I downloaded the most recent QuickTime as you suggested, Restarted my computer, but the message is still coming up when I go to the Editor.

  • How do you get rid of an error message

    I tried sending an email thru Imap and it didn't go thru
    No I get this constant error message about email n ot sent
    I deleted email from the outbox, but the error message won't go away.
    How do you get rid of it?
    Thanks
    Alan
    Post relates to: Pre p100eww (Sprint)

    I also have this problem, with an email I mistakenly attempted to send through my RoadRunner account (which doesn't allow sending if you're not using them as your ISP).
    I've deleted the email from my out box, but I keep getting the notices, even after a reset.
    Tapping on the error message brings up the Outbox, with no messages. :-(   Tapping on the header brings up the message "Login credentials rejected. Update your password." Tapping on that message brings up the "Edit Road Runner" scene.

  • I searched on "ev handl" and found three questions on the problem I am having. I didn't see an answer. I am using windows 7 with the latest firefox update. How do I get rid of the error message?

    when opening windows in Fire Fox, I am getting a Java Script Application message. "Exc in ev handl: Type Error: oSAPlg.oRoot.log is not a function"
    I have Windows 7

    Your message is a little bit different but very similar to other message and it includes "SA" in the message, so I'm suggesting...
    Best solution appears to be to uninstall Site Advisor from system and then to reinstall again from www.siteadvisor.com as noted in https://community.mcafee.com/message/203466
    Also refer to http://kb.mozillazine.org/Problematic_extensions relating to McAfee Site Advisor 3.4.0 for more specific instructions.

  • How do I get past the 'runtime error' message?

    I'm getting pretty ****** ff at this program, i'm losing faith in itunes. All I want to do is open iTunes, is that too much to ask??? How d I open my iTunes witho this 'runtime error' message??????

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

Maybe you are looking for

  • Table error - Context Path Cannot Be Resolved (Last Node Is Empty)

    Hi All, I am dynamically building up a context node called PoList which is used to hold the contents of a table. My BAPI is called and a routine transfers the contents of the BAPI context node across into the POList context node. This is rendered cor

  • Triggering main window of the second page

    Hi Experts, I have two pages. Second Page will only get trigger at certain condition. I am triggering the Second page through Command. My issue is my second Page is triggering but the main window of the second page is not getting triggered. It should

  • Select option date format

    Hi abap gurus, i  have select option for date. when i select that option it will take date format (DD/MM/YYYY) but i want (MM/DD/YYYY) how can i chage this. Thanks,. Jack

  • I movie for the ipad. Add music to a certain part

    how do I add music to just end of my movie

  • Aprz Shell

    Well, ever since I switched to Linux, I've been interested in os development. An important part of the operating system is the shell. So recently, I decided to write my own shell, which I hope I can make featureful and robust enough to use in place o