Runtime error in activation BADI (CX_HRPA_INVALID_PARAMETER)

In activation BADI i get a runtime error using 'HR_INFOTYPE_OPERATION'
An exception occurred that is explained in detail below.                       
The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not 
  caught in                                                                     
procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING     
  clause.                                                                       
Since the caller of the procedure could not have anticipated that the          
exception would occur, the current program is terminated.                      
The reason for the exception is:                                               
Ongeldige parameter EXCEPTION waarde                                                                               
The occurrence of the exception is closely related to the occurrence of        
a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the  
  program "CL_HRPA_MASTERDATA_FACTORY====CP",                                   
specifically in line 6 of the (include) program                                
  "CL_HRPA_MASTERDATA_FACTORY====CM004".                                        
The cause of the exception was:                                                                               
Niet aan voorwaarde voldaan                                                    
  DATA: personaldatakey   TYPE bapipakey.
  DATA: return            TYPE bapireturn1.
  DATA: l_p0025           TYPE p0025.
  DATA: l_citem           TYPE t71adm09-citem.
  DATA: l_resultaat(2)    TYPE n.
l_p0025-pernr = p0759-pernr.
Begindatum is begindatum binnengekomen IT0759 record - 1 jaar
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
      EXPORTING
        date      = p0759-begda
        days      = 0
        months    = 0
        signum    = '-'
        years     = 1
      IMPORTING
        calc_date = l_p0025-begda.
Einddatum is 31 december van het jaar binnegkomen IT0759
    CONCATENATE: p0759-endda(04) '1231'  INTO l_p0025-endda.
    l_p0025-infty = '0025'.
    IF p0759-cpamt >= 100.
*GENERATE ERROR
    ELSE.
      l_resultaat = p0759-cpamt.
     IF l_resultaat < 10.
       CONCATENATE '0' l_resultaat INTO l_p0025-krt01.
     ELSE.
     l_p0025-krt01 = l_resultaat.
     ENDIF.
write data
      CLEAR: return, personaldatakey.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '0025'
          number        = l_p0025-pernr
          validityend   = l_p0025-endda
          validitybegin = l_p0025-begda
          record        = l_p0025
          operation     = 'INS'
          nocommit      = ''
          tclas         = 'A'
        IMPORTING
          return        = return
          key           = personaldatakey
        EXCEPTIONS
          OTHERS        = 0.
      IF NOT return-number IS INITIAL.
GENERATE ERROR
      ELSE.
        is_ok = 'X'.
        process_standard = 'X'.
      ENDIF.

Hello Richard
The exception is raised in method SET_FRAMEWORK of class CL_HRPA_MASTERDATA_FACTORY. Perhaps the SAP note mentioned in the coding (on ECC 6.0) may be useful:
METHOD set_framework.
  IF a_is_initialized = true.
*   This indicates some complex problem which often can be easily
*   fixed. For details see NOTE 493984 (2003).
    RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.  " line 6
  ELSE.
    CALL METHOD delayed_constructor
      EXPORTING
        read_infotype     = read_infotype
        masterdata_buffer = masterdata_buffer
        additional_buffer = additional_buffer
        legacy_mode       = legacy_mode.
  ENDIF.
ENDMETHOD.
Regards
  Uwe

Similar Messages

  • Getting Runtime Error while Activating Characteristics in BW sandbox system

    Hi, i m getting  runtime error while activating Characteristics. Error as All InfoObjects Already Saved(locked)
    Short Text
    SQL error 1691 occurred when accessing program "GP4H8Z73D1WOGH7XBIZ54N5GXEG "
       Runtime Errors         DBIF_REPO_SQL_ERROR
    even if creating a new Characteristics same error is comming.
    Key Figures are getting created successfully but problems is comming only with Characteristics. Please Help...
    Edited by: kush kumar on Mar 23, 2010 11:56 AM

    Hi,
    Follow bellow steps:
    a) Once check the Lock entries by useing SM13.
    Goto SM13--> Select your object lock entries --> Select delete.
    b). Acitvate the Infoobject.
    Regards.

  • Runtime error while activating LO Datasource in Source System

    Hi Gurus,
    I have followed the below steps to activate the SD related LO extractor in ECC
    1. RSA5 --> Select all the 2LIS_11,12&13 data source and activate
    2. LBWE --> Choose the 2LIS_11,12&13 data source and activate.
    Upon execution of the second step , the system return me the following runtime error
    Runtime Errors         DDIC_TYPE_INCONSISTENCY
    Date and Time          07.07.2011 10:14:29
    Short text
         Inconsistency in the Dictionary for the structure "MCQALSB".
    What happened?
         Error in the SAP kernel.
         The current ABAP "SAPLMCEX" program had to be terminated because the
         ABAP processor detected an internal system error.
    Error analysis
         There is an internal system error.
         eliminated with ABAP/4.
    Trigger Location of Runtime Error
         Program                                 SAPLMCEX
         Include                                 LMCEX$04
         Row                                     26
    With this error i cant proceed to activate any of the LO data source
    Please help
    Thanks in advance

    The table MCQALSB need to be activated in SE11 and LBWE works fine

  • ABAP Runtime error while activating Update rules.

    Hi Gurus,
    Actually we are in NW 2004's SP9.
    While activating the update rules of cube "0PY_PPC01" it is going to ABAP runtime error. It is giving the key words like "MESSAGE_TYPE_X"
    "%_T005K2" or "INSTANTIATE". And i apply NOTEs also i am unable to fix it.
    Can any one give  correct NOTE number that can fix it or any suggestions.
    Thanks in advance.
    Thanks
    Raju.k

    Hi Sven,
    Now we are also in SP11, But the thing is all the other UR are working fine Except
    this UR. Even there is no perticular NOTE number for this.
    Thanks
    Raju.k

  • Runtime Error when activating Comp Records

    When trying to activate IT 0759 records in Comp to update Basic Pay, some employees received a Runtime Error. It states, "The exception CX_HRPA_VIOLATED_POSTCONDITION was raised, but it was not caught anywhere along the call hierarchy."
    It says it was not caught in 'HR_ECM_INSERT_INFOTYPE' function.
    Has anyone else seen this problem? It didn't happen for all employees.
    Thanks!

    Hi guys,
    Another reason for locked SPO's is:
    The terrible attribute-change-run (ACR). When you try to activate  a locked SPO, you only get a message like this:
    Runtime Lock: Activity ACTIVATE_SPO, Object DATATARGET ZZZ
    Unable to lock the semantically partitioned object
    Error when activating Semantically Partitioned Object ZZZ
    NO DTP request is running, so you can take all the day trying to find the error.
    So  in my case, there was an incomplete ACR (cancelled with error - red).
    It's like a curse. It is not easy to find the relation between ACR an SPO activation process (SAP error message is not useful to identify the reason)
    Finally, keep in mind:
    Check any DTP request running or cancelled that affect your SPO model and
    Check if you have an ACR (running or cancelled). This can lock your SPO object
    regards!

  • Runtime Error while activating data into dso

    hello all,
    i get a runtime error if i try to activate the loaded data in a dso object. A part of the error message is shown here:
    "SAPLRSBATCH"
    "RSBATCH_START_PROCESS"
    285     call function 'TH_SERVER_LIST'               
    286       tables                                     
    287         list           = l_t_server              
    288       exceptions                                 
    289         no_server_list = 1                       
    290         others         = 2.                      
    291     read table l_t_server with key               
    292          host = sy-host.                         
    293     if sy-subrc = 0.                             
    294       l_s_rsbatchheader-server = l_t_server-name.
    295       refresh l_t_server.                        
    296     else.                                        
    >>>>       message x000.                              
    298     endif.                                       
    I found the function 'TH_SERVER_LIST' gives as result
    name = LAPTOP3_NSP_00
    host = laptop3
    As you see, the host is written in lower case!
    If i work with a testprogram to show me the sy-host value, i get it in upper case letters: LAPTOP3.
    Could it be a problem?
    I read another message here with advice for sap note xyz. But i cant apply SP08 like it is explained there. The current system is working with SP05. Later SPs are not available for me!
    I also cant apply the corrections manually because the developer key 29671482393151224771 is invalid for any user except BCUSER in transaction SE80 client 000! If i try to change or create a program/function in TA SE37 or SE38 i always get the message "invalid developer key".
    Pls tell me where can i change the value for the function TH_SERVER_LIST and how can i create my own functions and programs in NW04s?
    thanks you much
    Frank

    Hi Ron,
    thanks, this note describes what i have to do. But it doesnt help!
    How can i go to SP7 if i cant download it? Message "Für den angemeldeten User nicht sichtbar" appears always.
    How can i follow the instructions to correct the function modules if i dont have an developer key on the NSP system?
    I'm not in any ramp-up program. Just found the free sneak preview of NW2004s here in SDN, downloaded it and get the problems while using. So i ask what can i do?
    Thanks
    Frank

  • Error while activating badi - ME_PROCESS_PO_CUST

    hi,
    i have written the code in the process_header and process_item separately and when i try to activate the class, it is giving warning msg
    In type group MMCNT
    'In unicode programs the '-' character cannot appear in names as it does here in the name "MMCNT_EKKO-BEDAT", "MMCNT_EKKO-WKRUS",  "MMCNT_EKKO-KDATE".
    i activated it, and the class gets activated, but when i try to activate the badi, it is giving error message "Implementation class contains errors".
    How to rectify the error and check whether my badi works or not?
    plz help me.
    thanks.
    Sakthi sri.

    In class interface, properties tab, i removed the check mark of unicode checks active and now i can activate the badi.

  • Runtime Error in BW, in RSA1 transaction

    Hello Boss,
    Iam getting runtime error while activating the info object in RSA1 transaction.
      I got OSS notes also from our basis consultant, plz give suggestion how to rectify this one.
      Even while executing the program iam getting runtime error.
      In this OSS notes they mentioned while u activating DSO u get this runtime error & solutions r given. iam not activating any DSO, activating info object. plz give ur suggestion.

    Hi,
            check in ST22 what exactly is message.. Ask basis to check server space and bg process.
    Abhi

  • Runtime error "DATA_INCONS_IN_EXIT_MANAGEM" while executing a BADI

    Hi Experts,
    I am trying to use a BADI in my report Program.
    But it is throwing a runtime error "DATA_INCONS_IN_EXIT_MANAGEM".
    I debugged the program and found that the call to the GET_INSTANCE method of Class CL_EXITHANDLER is raising this error.
    It is because the instance parameter is Initial.
    Can you please let me know, what is the mistake i am doing.
    My report code is as follows:
    *& Report  Z_GKR_BADI_01
    REPORT  z_gkr_badi_01.
    CLASS cl_exithandler DEFINITION LOAD.
    DATA: l_badi_instance TYPE REF TO zif_ex_gkr_matnrdata,                 "BADI Interface
          mara LIKE mara.
    PARAMETERS: p_matnr LIKE mara-matnr OBLIGATORY.
    START-OF-SELECTION.
      CALL METHOD cl_exithandler=>get_instance
        EXPORTING
          exit_name              = 'ZGKR_MATNRDATA'                                                                   "BADI Definition Name
          null_instance_accepted = 'X'
        CHANGING
          instance               = l_badi_instance.
      CALL METHOD l_badi_instance->get_materials
        EXPORTING
          matnr = p_matnr
        IMPORTING
          mara  = mara.
      WRITE: /5 mara-matnr,
                mara-matkl,
                mara-meins.
    Cheers
    Gaurav Raghav

    Hi lakshmi,
    I am new to BADI and i am doing a tutorial.
    The Complete Code is given with at the thread starting.
    In the Interface method i am retreiving Material details from the table MARA based on MATNR.
    The code is as follows:
    *& Report  Z_GKR_BADI_01
    REPORT  z_gkr_badi_01.
    CLASS cl_exithandler DEFINITION LOAD.
    DATA: l_badi_instance TYPE REF TO zif_ex_gkr_matnrdata,
          mara LIKE mara.
    PARAMETERS: p_matnr LIKE mara-matnr OBLIGATORY.
    START-OF-SELECTION.
      CALL METHOD cl_exithandler=>get_instance
        EXPORTING
          exit_name              = 'ZGKR_MATNRDATA'
          null_instance_accepted = 'X'
        CHANGING
          instance               = l_badi_instance.
      CALL METHOD l_badi_instance->get_materials
        EXPORTING
          matnr = p_matnr
        IMPORTING
          mara  = mara.
      WRITE: /5 mara-matnr,
                mara-matkl,
                mara-meins.
    Interface Method Implementaion in BADI
    METHOD zif_ex_gkr_matnrdata~get_materials.
      IF NOT matnr IS INITIAL.
        SELECT SINGLE *
          FROM mara
          INTO mara
          WHERE matnr = matnr.
      ENDIF.
    ENDMETHOD.
    I checked and i didn't find the entry in the table mentioned by you.
    But isnt the entry supposed to come automatically once i define the BADI.
    The BADI Definition name is ZGKR_MATNRDATA.
    Please help me regarding the same.

  • A C-runtime error occured (bad allocation) from xmlViewService

    Hi There,
    I have a .NET code which calls OBI webservice xmlViewService. I observed xmlViewService.executeXMLQuery works fine when there are records between 0 - 80000, but when records go beyond 80000-100000 it fails & returns an exception "A C-runtime error occured (bad allocation)".
    I tried gradually increasing the maxRowsPerPage from 10 to 100000 but in vain.
    Below is the code am using:
    sawSessionService = new SAWSessionService(obieeWebServiceUrl);
    sawSessionService.Timeout = obieeTimeout;
    XmlViewService xmlViewService = new XmlViewService(obieeWebServiceUrl);
    xmlViewService.Timeout = obieeTimeout;
    SAWSessionParameters sawSessionParms = CreateSawSessionParameters();
    AuthResult logonResult = sawSessionService.logonex(obieeUserId, obieePassword, sawSessionParms);
    sessionID = logonResult.sessionID;
    ReportRef reportRef = new ReportRef();
    reportRef.reportPath = request.ReportPath;
    XMLQueryExecutionOptions xmlQueryOptions = new XMLQueryExecutionOptions();
    xmlQueryOptions.async = false;
    xmlQueryOptions.refresh = false;
    xmlQueryOptions.maxRowsPerPage = 100000; //10;
    xmlQueryOptions.presentationInfo = true;
    xmlQueryOptions.type = "";
    ReportParams reportParams = new ReportParams();
    QueryResults queryResults = new QueryResults();
    queryResults = xmlViewService.executeXMLQuery(reportRef, XMLQueryOutputFormat.SAWRowsetSchemaAndData, xmlQueryOptions, reportParams, sessionID);
    Please help me solving the issue. Highly Appreciate any help.
    Thanks - harry
    Edited by: 887426 on Sep 26, 2011 12:45 AM

    Hi Harry,
    We face this issue, when the criteria returns lot of data. Is the issue resolved for you now? If yes, can you share your solution.
    Thanks,
    madhu

  • User gets Active X Runtime error 429 while running 10.1.3.4.1 Build 130

    Hello all,
    I have a user running BI Publisher Desktop 10.1.3.4.1 Build 130 as an addon in Word 2010. He has had multiple issues with this program in the past, one of which even forced us to reinstall his machine to resolve. He is on a clean build of Windows XP with all Microsoft updates applied for the OS and Office.
    Initially he called because he was getting a "The macro cannot be found or has been disabled because of your macro security settings" error, even though all of his macros were enabled. I found a post on the forums here telling me to run C:\Documents and Settings>del /S /A:H /A:-H *.EXD which resolved the issue. This is the post: Re: Need Help Iam getting error when i try to open my RTF file
    After doing this he went into Word 2010, clicked on add-ons, data, and load xml. He has a few files he loads up, and eventually gets a Active X Runtime error 429. I can see .net is trying to load in the background when the error is presented.
    I found another post here that sent me out to this site: http://obipro.blogspot.com/2012/06/setting-up-obiee-publisher.html On this site, error 429 is listed. The recommended fix is to "remove and reinstall dotnetfiles using setup.exe located at <C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\DotNetInstallFiles>" I found the setup.exe located in this path and ran it. .net isn't uninstalled by running this, but XMLPReportingTools4WordSetup asks if it would like to be repaired or uninstalled. I tried both, and reinstalled it. Same error. I tried uninstalling .net 3.5 and reinstalling it, same error.
    Does anyone know how to fix Active X Runtime error 429?

    Man Christian!
    1000 Thanks for your tip. I run into same issue on W2K3 with 10.1.3.4 MLR#4 (so far last MR allowed for AIA apps).
    I had the orabepl.ear file of the size as was mentioned earlier: 2.530.260 in the bpel\system and other one on the j2ee\ocj4_soa\applications folder.
    Copying did not help.
    I had to perform following steps from the <MLR#4>/custom/scripts/post.bat file which takes the file from the bpel\system,
    ADDS some another .jars in it and ONLY THEN move it to the j2ee\...\applications folder:
    copy %ORACLE_HOME%\bpel\system\j2ee\orabpel.ear %ORACLE_HOME%\bpel\system\services\lib\orabpel.ear
    copy %ORACLE_HOME%\bpel\system\j2ee\ejb\oc4j_ejb_services.jar %ORACLE_HOME%\bpel\system\services\lib\ejb_services.jar
    copy %ORACLE_HOME%\bpel\system\j2ee\ejb\ejb_ob_engine_oc4j.jar %ORACLE_HOME%\bpel\system\services\lib\ejb_ob_engine.jar
    cd %ORACLE_HOME%\bpel\system\services\lib
    %ORACLE_HOME%\jdk\bin\jar -uvf orabpel.ear ejb_services.jar ejb_ob_engine.jar
    After doing manually these steps the orabpel.ear in j2ee\...\applications has got the size: 2.798.840 which was bigger as right after patch application.
    Then I deleted the orabpel folder from the j2ee\...\aplication-deployments
    started the j2ee containe (it was named: oc4_soa ) and the BPEL Console started live well as before in 10.1.3.3
    As I did verify from other files The rest of steps from the post.bat file seems did well, only this part was not executed.
    With Best Regards,
    Alexey

  • VB Error  - Runtime error '49' Bad DLL  calling convention

    Hi Experts,
    When User is running report he is getting error VB Error  - Runtime error '49' Bad DLL  calling convention .
    Can you please suggest how to resolve this issue?
    User has already tried uninstalling SAP GUI and installing again.
    Thanks & Regards
    Deepak Chavan.

    Hi Deepak,
    this doesnt appear to be an SAP error.
    I did a Google search on the error & got lots of hits, including:
    http://www.bigresource.com/VB-WindowFromPoint-Bad-DLL-calling-convention-run-time-error-49--G1wKaVeqwY.html
    Its a Microsoft Visual Basic programming error code.
    Rgds,
    Colum

  • Saw: C-runtime error occured (bad allocation)

    We are running into an issue with the Prod Web Server, wherein it is suddenly stops once in a while and does not restart unless we reboot. We seem to have two issues going on
    1) What brings down the server in the first place?
    From the logs it looks like 3 of th last 4 times it failed, it was due to the Drifted Accounts report. The specific error is below. It seems that somehow this report is triggering the saw server to fail (no impact on the analytics server).
    Type: Error
    Severity: 25
    Time: Wed Oct 29 09:54:49 2008
    File: project/webcube/cubecache.cpp Line: 249
    Properties: RptPath-/shared/IRIT/45 - Service/Report #8 - Accounts Summary Report;DashPath-/shared/IR Core Service Dashboard/_portal/IR Core Service 1. Summary Reports;DashPagePath-/shared/IR Core Service Dashboard/_portal/IR Core Service 1. Summary Reports/Drifted Accounts;SID-vff5to3ductfhfrtgvc2oi8vtq;ThreadID-3428;HttpCommand-Dashboard;RSP-d:dashboard~p:u673vcdbvpa7b12p~r:anokhgbsd4jnr317;RemoteIP-10.201.0.48;User-Administrator;HttpArgs-_scid='*YuesJlTN7Y'
    Location:
    saw.cube.cache.processCube
    saw.views.pivottable.displayer
    saw.views.dashboard
    saw.subsystem.portal
    saw.httpserver.request
    saw.rpc.server.responder
    saw.rpc.server
    saw.rpc.server.handleConnection
    saw.rpc.server.dispatch
    saw.threadPool
    saw.threads
    A C-runtime error occured (bad allocation)
    2) What prevents the service from restarting unless the server is rebooted.
    If we try to restart the saw service we see the foll error message
    Type: Error
    Severity: 42
    Time: Mon Oct 20 10:02:16 2008
    File: project/webcomm/socket.cpp Line: 338
    Properties: ThreadID-5800
    Location:
    saw.rpc.server.initialize
    saw.sawserver
    saw.sawserver.initializesawserver
    saw.threads
    Port 9710 is in use on the local system. [Socket:512]
    Any experience with or insight into this error is appreciated.
    Thanks,
    TL

    Have you tried patch 7140673 - OBI PRESENTATION SERVER CRASH IN PIVOT TABLE

  • Error while activating the Implementation class of a BADI ?

    Hello,
    I am trying to activate a BADIi but its implementation class(ZCL_IM_DSD_ADD_CUST_IN_DNL) is not getting activated and giving the following object error on activation.
    CPUB     ZCL_IM_DSD_ADD_CUST_IN_DNL
    and it says that  "INCLUDE report "ZCL_IM_DSD_ADD_CUST_IN_DNL====CL" not found , where "DSD_ADD_CUST_IN_DNL" is the Impl. name of the definition "/DSD/ME_BAPI"  implementing the interface "/DSD/IF_EX_ME_BAPI".
    what am i missing here. Big time help will be extremely appreciated ..
    Thanks a ton.

    Hi,
    I had a quick qn,
    Normally, the implementation name should start with Z. Can you create using the name 'DSD_ADD_CUST_IN_DNL' ? or are you using any access key (SSCR)?
    For the infm, I have just tried to create one Z  implementation in my system and it works fine. Could you please delete the current implementation and try it once again ?
    Regards,
    Selva K.

  • PR Creation in CN22 - Runtime Error u201CSAPSQL_ARRAY_INSERT_DUPRECu201D

    We, are on ECC6.0 since December 2007.
    We have implemented all core modules including PS.
    In our business, purchase requisitions get generated in 3 ways.
    1) Manual generation of PR using Transaction Code ME51n
    2) Network PR using transaction code CN22
    3) MRP PR.
    Last month we have activated version management functionality for purchase requisition. After version management activation, we have noticed a very peculiar problem which is explained below.
    Problem Description:
    Step 1 - Certain number of materials (say u2018nu2019) are attached to a particular network (using t_code CN22) & system has generated a PR with u2018nu2019 number of line items. This activity is done before activation version management.
    Step 2 u2013 After activating version management, if a new material is attached to the same network, ideally system should add a line item in the existing PR. But, in our case, system is generating a Runtime Errors u201CSAPSQL_ARRAY_INSERT_DUPRECu201D. (Document is attached for your study)
    Our Analysis:
    1) When we try to attach a new material to network (say item No. 30), entry of item no. 30 for this particular PR already exists in table u2018EREVu2019 even when the material attachment is not saved.
    2) To avoid this error we have applied SAP Note No. 0001370641, 1382900, 1381754, 1388921.1309689, but still the error is appearing in CN22 while adding material code for PR creation in already created networks.
    Requesting you to suggest a solution.

    Hi,
    If you are using some badi or exit, check the process by de activating the same.
    If same results are coming, then check OSS notes applicability in your case. (e.g. 148828, 193580 etc)
    Other wise take help from OSS message, since this problem mainly occures due to program error.
    Regards,
    Manoj

Maybe you are looking for