How to eliminate error messages that some functions produce?

?

Hi,
In order for the error messages not to appear, you can comment them out. Please look at the example below:
CALL FUNCTION 'HRCA_PLANT_GET_COMPANYCODE'
           EXPORTING
                plant                 = wa_equz2-iwerk
           IMPORTING
                companycode           = lv_bukrs
           EXCEPTIONS
                no_company_code_found = 1
                plant_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.
Or you can just leave them out.
Hope this helps...
P.S. Please award points for useful answers.

Similar Messages

  • How to save error message that arises during invocation

    Hi,
    If any error raises in between the process, how can i save the error status into db adapter field. For example, I will receive a input from db adapter and I will send this input to a webservice which invokes further activities , my question is if any issue comes in between the process, i want to store that error message in to db adapter field ( for example error field) can you guys throw some light, I mean step by step process.
    Thanks,

    Hi,
    Use a CatchAll and populate the relavant field in the actions of the CatchAll.

  • How to capture error message from standard function module

    Dear friends
    when i  execute standard function module in finance , i am getting error message , pls check the below screen shot,
    how to capture the below error message so that i have display in my webdynpro component
    Thanks
    Vijaya

    Hello Vijaya,
    Incase of BAPI's they have a return table parameter T_RETURN. Just read that return table to get the error message.
    Incase of normal function modules, there will be exceptions raised for the message used inside the function module. Just read the sy-subrc after the FM and based on the sy-subrc value find the respective exception raised.
    May be you can try like this, whenever the message is raised it will be stored in the system variable.
    CALL FM.
    check for the system variables.
    sy-msgid = Message ID of the latest message raised.
    sy-msgno = message number of the latest message raised.
    sy-msgty = message type of the latest message raised.
    sy-msgv1 = variable1 of the latest message raised.
    sy-msgv2 = variable2 of the latest message raised.
    sy-msgv3 = variable3 of the latest message raised.
    sy-msgv4 = variable4 of the latest message raised.
    Regards,
    TP

  • How to display error message with some variable

    Hi
    I want to display errror message along with material number which is thr in d LOOP .
    Basically i want some variable to display along with error message .
    Can anybody suggest me how can i go about it?
    Edited by: sonal musale on Apr 14, 2009 12:06 PM

    Hi,
    In the message class, suppose  you use 001 for invalid material message.
    So keep it like:-
    Invalid Material : &1
    in the message class for 001.
    Now in loop use as:-
    loop at itab into wa.
      "perform validations
      "if validation fails for current material
      MESSAGE e001 WITH wa-matnr.
    endloop.
    Similary you can use more variables:-
    Invalid Material : &1 &2 &3
      MESSAGE e001 WITH <variable1> <variable2> <variable3>.
    Hope this helps you.
    Regards,
    Tarun

  • Strange syntax error message with some functions!

    Hello!
    I have a strange trouble with some functions in Numbers.
    For example when I try an IF function directly copied and pasted from Numbers documentation I get an error from Numbers that “the formula contains a syntax error.
    *The function looks like this:*
    *=IF(E6>=0, “Nonnegative”,”Negative”)*
    *The value in cell E6 is 25.*
    Anyone have a clue about why?

    Hello
    If you enter my iDisk
    <http://idisk.mac.com/koenigyvan-Public?view=web>
    You will be able to download:
    suriWork:for_Numbers:pour_modifierNumbers.zip
    Which gives the ability to change the Numbers behavior (same thing for Pages and Keynote).
    Applying it you will get an "Insert functions" tool matching your local settings.
    It will insert functions using the semi-colon as parameters delimiter.
    Yvan KOENIG (from FRANCE samedi 24 mai 2008 15:38:41)

  • I receive an error message that some of the application components are missing when trying to open Photoshop CC 64-bit

    Hi,
    I'm using Windows 8.1 and I can see photoshop CC 64 bit. But when I'm launching it, it throws an error "Some of the application components are missing from the Application directory, Please reinstall the application". I've reinstalled twice but getting the same error. Whereas the 32 bit application works fine. Any help?

    Branching this to a new discussion.
    Govinda_s13 are you still receiving the error messages referenced above?

  • How to correct error message that connection to server failed

    I have an iPhone5S and iPad.  When attempting to retrieve emails, I am getting a message that says
    Connection to server failed.

    Hello Gregg,
    It may help to remove the affected account, then readd it.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Tap the affected email account.
    Tap Delete Account.
    Add your account again.
    If you're still having issues retrieving e-mail, the article linked below details a number of additional troubleshooting steps that can help.
    Get help with Mail on iPhone, iPad, and iPod touch
    https://support.apple.com/en-us/TS3899
    Cheers,
    Allen

  • How to eliminate error message after downloading Adobe reader ver. XI for mac?

    How to prevent an error when downloading Adobe Reader ver. XI for Mac?

    Without further data, I would suggest that you try downloading the offline Reader installer from
    http://get.adobe.com/reader/enterprise/

  • After installing firefox version 31 I keep getting error messages that firefox cannot find some servers. How can this be fixed?

    I use Ebates. Now when I go to Ebates and choose a store, then the transfer to store website comes up and then an error message that firefox cannot find the listed server. I keep getting that message alot.
    On the frontier homepage there is an error message that firefox cannot find the ad server for yahoo.
    I was having problems with firefox so I did a reset firefox and then installed the new version 31.
    Seems it might be draggy or slow/sluggish. I like using Ebates. I contacted them and they said they were not having any issues at the moment. I contacted my antivirus provider and they said they could not detect anything either. Would a system restore get me back to the older version?

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How can I solve this error message? Some of your photos, including the photo "IMG_0374.jpg", were not copied to the iPad "(my name's) iPad" because they cannot be displayed on your iPad.

    how can I solve this error message? "Some of your photos, including the photo “IMG_0374.jpg”, were not copied to the iPad “(my name’s) iPad” because they cannot be displayed on your iPad."
    There were 273 photos in the event syncing from my Mac, but only the last 103 made it to the ipad. Most of the photos were taken by an iphone. I would appreciate any thoughts or insights - thanks.

    Adrian-
    That error message suggests the photo is somehow corrupt.
    Do you have the Apple Camera Connection Kit?  You can set up a USB thumb drive with MS-DOS FAT-32 format and copy your photos to it into a folder named DCIM.  Assuming they have an 8 character plus suffix name, the iPad will recognize them and give you the option of transferring them via the Kit's USB adapter.
    Once they are transferred, you can find out if there is a problem with any.
    Fred

  • I am trying to edit my website using the copy and paste function and am getting an error message that says my browser will not allow this function.. what do I do? thanks!

    I am trying to do a simple copy and paste function while editing my website and I am getting an error message that says that my browser will not allow this function.. how can I override this?
    thanks
    Doug Snyder

    You need to set Copy'n'Paste security policies for that domain in Firefox.
    AllowClipboard Helper will help you do that. <br />
    https://addons.mozilla.org/en-US/firefox/addon/allowclipboard-helper/

  • How to define error message for function based index violation?

    Hi,
    I am generating Forms 6i from Designer 6i. I have a function based index to enforce case insensitive name uniqueness. With check constraints I can specify constraint violation error messages that will be displayed in Forms at runtime if needed. How can I do this with function based index constraints?
    Regards,
    Tamas

    OK, problem sorted.
    You need to create a check constraint with the same name as the new index, but don't enable it.

  • When I plug in my hdmi lightening connector I get an error message that states the firmware has to download and the hardware cannot be used until the download is complete. How do I fix this problem?

    When I plug my hdmi lightening converter into my iphone5 I get an error message that states " downloading accessory firmware. Your accessory will not function until download completes.  How can I fix this?

    Don't know what changed today but it downloaded and installed on the shuffle. So far so good.

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • I just purchased survivor season 11 to watch on my iphone4. I synced the first 4 episodes and I get an error message that episode 2 can not be played in my iphone4? How do I get it to play on my iPhone 4?

    I just purchased survivor season 11 to watch on my iphone4. I synced the first 4 episodes and I get an error message that episode 2 can not be played in my iphone4? How do I get it to play on my iPhone 4?

    In order to use ''nxm://'' links, Nexus Mod Manager must be installed and associated with the ''nxm'' protocol.
    * http://www.nexusmods.com/skyrim/mods/modmanager/
    In case of problems with this third-party program, please refer to its support forum:
    * http://forums.nexusmods.com/index.php?/forum/1413-nmm-code-development-chat

Maybe you are looking for

  • WS proxy for a WSDL that contains free-form xml

    Hi there, I have a problem with a web service that I am using. It is the notify interface of the WS Notification specification. It contains an operation Notify that has an xsd:any element in its core. <!-- ========== Message Types for NotificationCon

  • Poor performance of WD Abap/ Adobe

    Dear sirs, I would like to know if anybody of you have experienced very poor performance of WD ABAP with Adobe interactive form. Our client has paid for a 2-3 pages interactive form in WDA and is complaining about very poor performace. As a result no

  • Language installation override

    hi, i just downloaded safari for windows xp on a computer that runs the os in japanese, i want to install safari to run in english, how should i proceed? thanks mauz

  • 4gig Nano won't respond to... anything, really.

    My GF's 4 gig Nano did something interesting today. She'd been having some problems with it (having to hard-reset to start it at all, anytime it fell asleep), and today the battery was low, apparently the volume fluctuated a bit, then the screen slow

  • How much free space is needed to update an iPhone to iOS 6 using WiFi?

    I have an iPhone 4 and want to know how much free space is necessary to update to iOS 6 using WiFi (not through a computer). I updated another iPhone with a MacBook Pro and it stated that I needed 2.5 GB of free space. My son has the other iPhone and