Standard Error message

Hi,
I have a Internal table from which i need to update to a DB table. while Inserting or modfying record to DB table,I need to capture the standard error message. For ex.. PErsonnel number is Locked.
And i need to dispaly all these error message list in a report.
My Q is, How to get the standard error message.
Thanks,
Kanal.

Hi,
  call function 'HR_INFOTYPE_OPERATION'
    exporting
      infty          = '0416'
      number        = p0416-pernr
      subtype       = p0416-subty
      objectid      = p0416-objps
      lockindicator = p0416-sprps
      validityend   = p0416-endda
      validitybegin = p0416-begda
      recordnumber  = p0416-seqnr
      record        = p0416
      operation     = 'EDQ'
      nocommit      = nocommit
    importing
      return        = error_message
      key           = pakey.

Similar Messages

  • How to delete standard error message

    Hello,
    We have a requirement to create new charge credit instance ( BO FOPXD_TAXRPENT ). When an instance of New charge credit is created , an instance of the DO FOPXF_EXER is created which in turn creates an instance of DO Coding block item.
    When this instance of coding block is created the BO creates an error message "G/L account missing ". (Message class: /ISCB/CB_CHECK Mesage number:004)
    The call to the DO Coding block is made by the determination class CL_FOP_D_TAXRPENT_CRE_EXRCEXPL of BO FOPXD_TAXRPENT after this error message is added to the message handler the control returns to the above mentioned class.
    As per our requirement, we need to delete this error message from the message handler in the BO FOPXD_TAXRPENT in class CL_FOP_D_TAXRPENT_CRE_EXRCEXPL.
    Please suggest possible ways to access the error message and delete the same from the message handler in this class.
    Thanks,
    Subhankari

    Dear Subhankari,
    I would suggest the following options.
    1. Either you create a overwrite exit for the method in which error message is processed. Write only the code which is required for you in overwrite exit. or
    2. Create Implicit enhancement to clear the ET_MESSAGES internal table or
    Check any of the above options whichever is convenient to you.
    Thanks,
    Bharath.K

  • Standard Error Messages in Custom Change Password Screen

    Hi All,
    I've developed a custom change password screen in Web Dynpro. I want to use the standard messages that appear in the portal logon screen. I looked in the portal logon par and got the umelogonbase.jar and found in my eclipse dir the com.sap.security.core.jar wich this last one depends. I put then in an externallib and wrapped them in a JEE lib. Declared dependency from my WD DC to the JEE lib and added the library reference in the WD DC.
    I have the following code:
    try {
         IUserAccount userAcc = UMFactory.getUserAccountFactory().getUserAccountByLogonId(wdContext.currentInfoElement().getLogon());
         userAcc.setPassword(wdContext.currentInfoElement().getOldPassword(), wdContext.currentInfoElement().getNewPassword());
    } catch (UMException e) {
         e.printStackTrace();
         error = true;
         LogonMessageBean bean = new LogonMessageBean(WDClientUser.getLoggedInClientUser().getLocale());
         String msg = bean.print(new Message(e.getMessage()));
         wdComponentAPI.getMessageManager().reportWarning(msg);
    But when I try to execute my app I get the following exception:
       java.lang.VerifyError: (class: com/cafedecolombia/ols/um/ChangePassword, method: test signature: ()V) Incompatible object argument for function call
        at com.cafedecolombia.ols.um.wdp.InternalChangePassword.(InternalChangePassword.java:109)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        ... 28 more
    Does anyone has successfully done this? Is there any other dependencies? Is there an EASIER way to do this? Is there any initialization needed?
    Any help will be highly appreciated.
    Regards,
    Andrés Acero

    Ok so here is how I solved it.
    I found this very interesting article called "SAP Authentication Guideline" and there the author mentions that the messages are defined in class SecuritPolicy of the core security jar. So with that in mind this is how my code finally worked out:
    try {
         IUserAccount userAcc = UMFactory.getUserAccountFactory().getUserAccountByLogonId(wdContext.currentInfoElement().getLogon());
         IUserAccount mutableUserAcc = UMFactory.getUserAccountFactory().getMutableUserAccount(userAcc.getUniqueID());
         mutableUserAcc.setPassword(wdContext.currentInfoElement().getOldPassword(), wdContext.currentInfoElement().getNewPassword());
         mutableUserAcc.commit();
    } catch (UMException e) {
         e.printStackTrace();
         error = true;
         ISecurityPolicy policy = SecurityPolicyFactory.getInstance().getSecurityPolicy();
         wdComponentAPI.getMessageManager().reportWarning(policy.getLocalizedMessage(WDClientUser.getLoggedInClientUser().getLocale(), e));
    Here is a link to the article on SDN:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/599ab890-0201-0010-12a1-b988e3a09735
    If you have any comments please do.
    Cheers,

  • Need to change the standard error message when no data found in a window

    Hi All,
    We have a button in our screen, on clicking we show a window with details from a view for the selected record in the screen using master-detail relationship.
    But, if i dont have any data to display, it is giving standard message,
    " FRM-40350 Query caused no records to be retrieved " in a seperate window,
    And if i click on Ok then the window is opening up with no records/data.
    My Requirement is to
    1. I need to show a custom message(some user friendly mesg) instead of standard mesg
    2. And the window should not open at all.
    I tried putting with :system.message_level=5 to suppress the standard mesg. But how we can achieve other two requirements.
    And this should happen at block level only not at form level.
    Please suggest me in this.
    Thanks
    Pavan

    Hi,
    No, I have just put my original code.
    This is what i have tried based on our suggestion.
       BEGIN
              IF event = 'WHEN-BUTTON-PRESSED'
                   --AND cnt <> 0
              THEN  
              GO_BLOCK('XXSCP_GBL_CUST_PEG_V');
          EXECUTE_QUERY;
          l_chr_so := :xxscp_gbl_cust_peg_v.sales_order_number;
          fnd_message.DEBUG('SO:'||l_chr_so);                                                                    
          :parameter.p_excep_detail:='FALSE';
              IF l_chr_so IS NOT NULL
                   THEN
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_CON');
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_STK');
              app_window.set_window_position('XXSCP_GBL_CUST_PEGGING_WIN',
                                             'CASCADE',
                                             'XXSCP_GBL_EXCEP_DETAILS_WIN');     
          fnd_message.DEBUG('xx');                                                                    
          END IF;                                        
          ELSE
              NULL;
              END IF;
        EXCEPTION
             WHEN OTHERS
             THEN
             NULL;
       END;I can see, its not going to IF conditon, stil the window pops up.
    Thanks
    Pavan

  • Mapping values from the payload in the standard error message in PI 7.31

    Hi,
    I am working on files that are very large and when such a file fails with some error ,it becomes very difficult to track exactly for which record it is failing.
    For example if the file has 6000 records and the problem is at 641st record,it takes a lot of time to identify which is the 641st record even with Notepad++.
    One of the ways this can be taken care is if we can add any unique value from the record say "employee id" and add it in the error  that we receive in the alert message.
    Please let me know if any one has handled a similar situation or implemented any other solution to reduce delays in error analysis.

    Hi Indrajit,
    Thanks for your response.
    We have a dual stack installation but we have developed the Interface using only java stack.
    In this case if we use SALERT_CREATE and define container variables in ALRTCATDEF,will it work?
    Also the source xsd for all the Interfaces is same ,so we were thinking when a message fails at say Record[50],then we can take the 50th employee id and display it in the alert.
    Do you have an idea if this is possible?
    Nitin

  • Customize standard portal error message

    Hi,
    How to customize below sap standard error message with meaningful user defined message.
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException
    Appreciate your quick help.
    Thank you,
    dev

    Hi Dev,
    In order to customize the error message, you'll have to catch the exception in your WD component.
    Please use Try Catch Block and there within the catch block you can specify your custom error message. 
    BR,
    Anurag

  • Error Message in a view

    Hi ,
    I have a view, where I add entries using table maintenance generator. I have certain checks to be performed, those checks I have done in a subroutine which gets called in the event '01' before saving.
    Now if I get some error messages, the error message displays in the task bar, and I come out of the maintenance screen. I need the error message to appear in the same screen, where in the user can edit the entered values.
    I tried with message 'text' type 'e' display like 's'. still it doesn't work.
    Please help

    HI friend,
    Just check whether the error is due to the custom error message or standard error message.
    If its standard then you have done any mistake which has makes the view to exit. If its custom message then it should change after you have changed the message.
    If custom message , Just try activating it completely and check again. Goto SE80 and activate the function group and see is it showing any error.
    Thanks,
    Sri Hari.

  • Cannot display custom error message in CRM_MKTLIST_BADI

    We did implement the following BADI BADI Name: CRM_MKTLIST_BADI
    Interface: IF_EX_CRM_MKTLIST_BADI Method: MAP_AND_CONVERT_DATA
    This enhancement is for suport the extension field for create new BP in
    external list management (transaction CRMD_MKTLIST). The BP creation
    process work properly but we cannot display our custom error message,
    only SAP standard error message is shown. We did try using the export
    parameter ET_MKTLIST_E but it does not work as expected, custom message
    still cannot display.
    How we can be show the custome error message ?
    Thanks in advance.
    Supreeya K.

    Hello Supreeya,
    have you tried to post this question in the SAP CRM: Webclient UI - Framework forum?
    Regards
    Gregor

  • Error message in loupe view

    I'm using Lightroom 1.3.1 in Windows XP. Sometimes when I'm looking at pictures in a library using loupe view, instead of seeing an image I see a grey rectangle where the image should be. At the top of the rectangle there is an error message that says "There was an error working with the photo." At the lower left hand corner of the rectangle there is a message written upside down in red letters that says "Error - A2of Memory - B". Once this problem happens I can no longer display images that were previously displayed normally. If I restart Lightroom it goes back to normal. I think this problem is more likely to happen if I am moving through the images rapidly, not giving Lightroom enough time to finish each preview. Is there some way to avoid this, besides going through the images very slowly?

    HI friend,
    Just check whether the error is due to the custom error message or standard error message.
    If its standard then you have done any mistake which has makes the view to exit. If its custom message then it should change after you have changed the message.
    If custom message , Just try activating it completely and check again. Goto SE80 and activate the function group and see is it showing any error.
    Thanks,
    Sri Hari.

  • Error message when saving .fm file

    I just upgraded my FrameMaker program to 7.2.
    When I try to save my work, the following message appears on-screen:
    An internal error occurred while writing imported graphics in this document.  The file has been saved, but has lost some image data.  Please report this error to Adobe Technical Support.
    My file has NOT been saved, none of the changes I've made have been saved.  I cannot save this file under a different name, either.  And the automated files that are generated by the program as &quot;back-up&quot; files are useless.
    HELP!!!

    Upgraded to 7.2..... Good that you didn't rush into it. ;-  )
    Anyway, that's the standard error message when a file contains objects imported using an OLE link AND you are running XP SP3.
    SP3 implemented security fixes that essentially broke OLE within Frame (and a number of other applications).
    So if your document(s) contain OLE links, you're likely to have to convert them to imported-by-reference graphics if they're graphic files or do some other type of conversion if they're tables or PPT slides.
    Art

  • Error message when cutting and pasting in a document

    Hi,
    When I attempt pasting something from one layer to another in an AI document I am receiving the following standard error message:
    You are attempting to paste or drag into one or more layers that are locked or hidden. Do you want to unlock and show all appropriate layers?
    Here's the problem--I don't have any layers locked or any layers hidden. I've tried adding new layers and pasting into those, but no go. This problem just started a few minutes ago--till then everything was fine. I've tried re starting AI and re starting my Mac. Nothing.
    Anyone have a fix?
    Thanks,

    Yes.
    I see now that I can paste into the layer I am copying from, but not into any other layer. If I lock my source layer, I can't paste at all.

  • Display error message from SLG1 on shopping cart screen

    I have implemented a 'BBP_CATALOG_TRANSFER' badi. I am adding all the custom error messages in ET_SC_MESSAGES export parameter of this badi. As a result of this, all the custom error messages added in the above parameter, gets logged in the application log SLG1 automatically and I can see those custom messages in SLG1. Now how to display this message from SLG1 on the shopping cart screen on the top where you normally see standard error messages in red.
    Can anyone please help me on this?
    Thanks,
    Krupa

    Hi
    Which SRM version are you using ?
    I have not tried this... but I think this is not possible to display error messages
    using BBP_CATALOG_TRANSFER BADI.
    <u>Try to code your logic in using BBP_DOC_CHECK_BADI for filter type - BUS2121 (shopping cart). You need to add your custom message in ET_MESSAGES [] table.</u>
    <b>For sample coding, refer to the link below -></b>
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/bbp_doc_check_badi-CheckPurchasingDocument&
    <b>Hope this will definitely help.</b>
    Do let me know.
    Regards
    - Atul

  • Error message:  PLSQL_OBJECT_SOURCE does not exist

    I developed an application on a Vista machine (not sure if that matters) and then transferred it using Data Pump Export (expdp) and Data Pump Import (impdp) to another machine (running Windows XP). The application works fine. However, when I try to compile one of my procedures I get the error:
    "RA-20102 Application Collection PLSQL_OBJECT_SOURCE does not exist."
    Does anyone know what this means or how to fix it?
    Thanks!

    I don't know what PLSQL_OBJECT_SOURCE is. It is nothing that I created.
    I am doing the compile using the standard Apex compiler. That is, I go to the Procedure using Object Browser and just click the compile button.
    I am not able to share my code, but I don't think it would help anyway. I thought this was some type of standard error message or something. I don't know what PLSQL_OBJECT_SOURCE is, but I assumed from the message that it is something that is supposed to come with Oracle App Express but somehow might be missing or damaged on that machine. I just don't know.

  • ICF standard error language

    Hello Everyone,
    When ICF is generating standard error message (e.g. ABAP WebDynpro app fails to be opened within a timeout), it uses German language for all languages other then English. All the languages in question have been defined in SMLT, supplemented by EN and had their lang packages imported. Can somebody please help to understand how to localize the ICF standard error messages to use at least EN language while showing them. (for English language error messages displayed correctly in English)
    SAPGui localization for these languages work fine so that makes me feel language packages are imported properly. As for ICF localization issue, I would be ok if English error message would be displayed for such languages.
    Ideally a solution should not include manual translation (e.g. via SE63/ SE61)
    Regards,
    Mike

    Hi Antonio
    Try using locales. Check the following document,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/58a7e390-0201-0010-abb1-8eec7eb7a2ec
    Sameer

  • Issue on deleting error message in WebUI

    Hi Experts,
    I have deleted one standard error message in DO_PREPARE_OUTPUT  with some condition in header level but I am having below issues.
    Issue one :
    Now error is not showing in webui  at header overview screen but  allocated space for that error message is showing in output screen with white space.
    Please help me how to remove that space.
    Issue two:
    When I open Item overview screen, again that message is showing in Item overview screen.
    I am using the below code to delete the message and its successfully deleting the message but when I switch to other screen its again showing.
    Please help me how to delete it completely on one go.
    Code:
    zcl_crm_ic_tools=>delete_message( iv_number = '419' iv_id = 'CRM_PRODUCT_I' ).
    Method: delete_message
    ls_message-number = iv_number.
    ls_message-id     = iv_id.
    ls_message-type   = iv_type.
    APPEND ls_message TO zcl_static_reference=>gt_delete_msg.
    endmethod.
    Appreciate your help.
    Kind Regards,
    Shaik

    Hi Shaik,
    Refer to the following links
    How to remove Std. CRM Messages
    Delete UI Messages
    You can also use COLLECT_MESSAGES with Delete Flag of  CL_BSP_WD_MESSAGE_SERVICE class.
    Thanks,
    Chirag.

Maybe you are looking for

  • Printer Sharing with Leopard

    Hi, I just got a new iMac 24" with Leopard, and I'm really excited about it, but Printer Sharing is having a major problem! I don't know if this is a problem with the printer or the computer, but it is really getting on my nerves. For example, I am p

  • PS opens files but fails to display them

    hi there! ive already done some searching but did not find anyone else having my problem. im using vista x64 and PS CS4 (updated). the problem occurs on both 32bit and 64bit versions. when i open an image with PS (does not matter which type or which

  • HT2305 applesyncnotifier.exe - entry point not found

    the procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll

  • I can't import any files from itunes... the click and drag isn't working...

    I've tried clicking and dragging my mp3 from the desktop, from the finder, and straight from itunes, but i can't get it to be in garageband... at all... I feel like i'm doing the same thing i was doing even just earlier today, but it isn't working an

  • Error running SIP code

    Hi I am using Websphere Studio Device Developer 5.6.1 with Nokia SDK for J2ME 4.0. I am trying to run the SIP examples (SendMessage, ReceiveMessage MIDlets) distributed with the JSR180 RI. These run successfully on the emulator distributed with JSR18