Cx_hrpa_invalid_buffer_access

I've been checking the SAP Notes but so far haven't found a solution to my issue, so I thought I would post it here. We have CE implemented and turned on. Currently during the hiring action, we are having the following problem.
PA40-->New Hire
Type in basic employee data click save
Enter Action (hire, prefilled)
Enter Reason (select reason)
Enter Position/org info/ area subarea eg esg...
Upon saving, we get "do not select subtype" message with GREEN indicator
Click save again, we get a short dump with the following messages
CX_HRPA_INVALID BUFFER ACCESS
CL_HRPA_MASTERDATA_BUFFER=====CP
an exception occurred that was not caught in procedure create virtual IT0001 NEW IF
reason for exception is
Infotype record &PSKEY:a structure &A already exists.
Can any ABAP person out there please tell me what this means and how I can fix it?
Much thanks!!!

Hi Rachelle,
We're having this exact problem in our system when doing hiring actions from HCM Processes & Forms. We have debugged alot and found that it tries to read from "a_buffer_table" with SPRPS (locking indicator) value 'X'. However, in the buffer table, the SPRPS values are blank and it gets nothing back.
We get the same error message as you, and wondered what you did specifically to resolve the issue.
Hope you can take the time to answer my question.
In advance thanks!
Best Regards,
Hans Petter Bjørn

Similar Messages

  • The exception 'CX_HRPA_INVALID_BUFFER_ACCESS' was raised

    hi evryone,
        I am working on Previous employer's Details. When i am going to create a new entry , its throwing this exception and 'pskey record already exists' is coming. But there is no as such record created b4. there is some problem with buffer clearance. I am not getting any clue. Please help me out.
      Thank you in advance.

    Hi Manu
    I checked your thread regarding the error message "cx_hrpa_invalid_buffer_access" while accessing HR_INFOTYPE_OPERATION. I am also facing the same issue, which i am working on for last 2-3 days.
    Could you please shed some light, if you remember how you solved this?
    Did you just used Buffer initialize Function module to rectify this error?
    Your help would be highly appreciated.
    Thanks,
    Harish.

  • HR_INFOTYPE_OPERATION exception error: cx_hrpa_invalid_buffer_access

    I've been checking the SAP Notes but so far haven't found a solution to my issue, so I thought I would post it here. Currently during the hiring action, we are having the following problem in the program.
    CX_HRPA_INVALID BUFFER ACCESS
    CL_HRPA_MASTERDATA_BUFFER=====CP
    an exception occurred that was not caught in procedure create virtual IT0001 NEW IF
    Can any ABAP person out there please tell me what this means and how I can fix it? I could see 3 threads on the same topic but no one mentioned how the issue was resolved, so I thought of opening a new one.
    Thanks,
    Harish.

    In order to resolve the issue please have a look at note 783499 and 1447867
    and execute the 2 mentioned (required) reports RPUFACECPRFN and
    RPUFACEVIEKN.
    Furthermore, please read through those report´s documentation.
    Set CCURE PC_UI is set to 'X in T77S0

  • Issue with HR_Maintain_master data FM

    Hi,
    I am using HR_MAINTAIN_MATERDATA for hiring of an employee. It executes without any error and creates record as well but it does not create record for infotype 0002 and 0006. After this I tried creating 0002 and 6 explicitly using HR_INFOTYPE_OPERATIONS it gives an error that record already exists in PSKEY and then gives a dump..
    Any pointer to resolve is appreciated.
    Regards,
    Deepak

    Error Analysis of log is as follows.
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_HRPA_INVALID_BUFFER_ACCESS', was
      not caught in
    procedure "UPDATE_WITH_UP50R_ADAPTER" "(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:
    Infotype Record for &PSKEY:aStructure& A Already Exists
    TO resolve this any pointer is appreciated.

  • Issue adding records to Infotype 0002

    Hi All,
    I am trying to insert records into Infotype 0002. I am using HR_INFOTYPE_OPERATION to do this. It works fine for all the employees but fot the ones who have Reference Personnel numbers. The system lets me to add the record to those employees through PA30 online or through BDC program with a warning message "No record with the same key for personnel number xxxxxxx",  but if I use the FM HR_INFOTYPE_OPERATION or HR_MAINTAIN_MASTERDATA, it sometimes gives me hard error message " The Social Insurance number already assigned to another employee" in the foreground and when executed in background I get a short dump with exception " CX_HRPA_INVALID_BUFFER_ACCESS".
    I debuged the standard code and the exception occurs in Include UP50RU02 in method IF_HRPA_MASTERDATA_BUFFER~INSERT.
    Short dump:
    The exception 'CX_HRPA_INVALID_BUFFER_ACCESS' was raised, but it was not caught
      anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
      'CL_HRPA_MASTERDATA_BUFFER=====CP' has to be
    terminated.
    Please let me know if I am doing something wrong.
    Thanks,
    Danny.

    Hi Daniel,
    I would not worry about using FM 'HR_INFOTYPE_OPERATION' or 'HR_MAINTAIN_MASTERDATA' for the purpose of inserting PA infotype records for employees. I had developed a generic module last year to insert any PA infotype record which will use the standard PA business logic framework i.e. include all standard checks and validation, calls all Exits/BAdIs before inserting the record as it would when you are saving the infotype record via PA30. I basically created a wrapper FM to simplify the calling of some other standard FMs. Use it if you like (and if it works in your system keeping in mind config is different in every system) but please do handle all the Exceptions after the call (by reading the Message Handler Interface IF_HRPA_MESSAGE_HANDLER) to confirm there was no data inconsistency or other problems at the time of the update. Below is the sample code:
    The generic customer Function Module
    FUNCTION zpa_insert_any_infty_record.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(IS_PNNNN) TYPE  ANY
    *"     REFERENCE(IT_TEXT_TAB) TYPE  HRPAD_TEXT_TAB OPTIONAL
    *"     REFERENCE(IV_NO_AUTH_CHECK) TYPE  BOOLE_D DEFAULT SPACE
    *"     REFERENCE(IV_LOCK) TYPE  SPRPS DEFAULT TRUE
    *"  EXPORTING
    *"     REFERENCE(EIF_MESSAGE_HANDLER) TYPE REF TO
    *"        IF_HRPA_MESSAGE_HANDLER
    *"     REFERENCE(EV_OK) TYPE  BOOLE_D
    *"  EXCEPTIONS
    *"      EX_PERNR_LOCKED
    * FUNCTION...... ZPA_INSERT_ANY_INFTY_RECORD                           *
    * FUNCTION GROUP.ZPA_FG_EMP_LEAVE_BOOKING                              *
    * TITLE......... Insert any PA infotype record for an employee         *
    * AUTHOR........ Sougata Chatterjee                                    *
    * DATE WRITTEN.. 23/08/2010                                            *
    * SAP RELEASE... ECC 6.0                                               *
    * SPECIFICATION. N/A - Reuseable Object                                *
    * =====================================================================*
    * DESCRIPTION... This function is a generic module that will insert    *
    *                a PA infotype record into the employee master data as *
    *                per the import structure IS_PNNNN. This module wil be *
    *                particularly useful when requirement is to create     *
    *                other infotype records for the same employee within a *
    *                User-Exit or a BAdI.                                  *
    * ASSUMPTIONS... Infotype record to be updated is a PA Infotype.       *
    * =====================================================================*
    * MODIFICATION HISTORY                                                 *
    * Date       Userid       Change No & Description                      *
      DATA:
        lif_msg_handler  TYPE REF TO if_hrpa_message_handler,
        lo_msg_handler   TYPE REF TO cl_hrpa_message_list.
    * instantiate the message handler object
      CREATE OBJECT lo_msg_handler.
    * assign a reference to a rereference variable using the CAST operation
      lif_msg_handler ?= lo_msg_handler.
    * insert the infotype record into the employee master data
      PERFORM insert_infotype USING    is_pnnnn
                                       it_text_tab
                                       iv_no_auth_check
                                       iv_lock
                                       lif_msg_handler
                              CHANGING ev_ok.
    * pass back the message handler to the calling program if it was requested
      CHECK eif_message_handler IS REQUESTED.
      eif_message_handler = lif_msg_handler.
    ENDFUNCTION.
    For some reason I couldn't format the subroutine code here in SDN as it is scrambling the whole page but you could use the link here to find the [subroutine code|http://www.mediafire.com/file/9923qui7dm4xqpg/Form%20Insert_Infotype.html] and an [example code|http://www.mediafire.com/file/ihg83agkf0mbc9k/z_calling_program.html] for the program calling this FM including exception handling etc.
    Let me know if the links are not working...I'm happy to email them to you if you want.
    Hope this helps.
    Cheers,
    Sougata.

Maybe you are looking for

  • USB Live! Sound Blaster 24bit with poppi

    Hi. A month or two ago I purchased my usb connected Li've! Sound Blaster 24bit from CompUSA. It has worked fine with my logitech 5. speakers. Yesterday, I bought a 60gig Maxtor harddri've from compusa, also USB. Since I installed that, my sound has b

  • Idoc types and message types we use in IS-Retail

    hi gurus,              can anyone tell me what are the idoc types and their message types that we use in SAP IS-Retail . Thanks in advance regards gopal

  • RSAU_SELECT_EVENTS

    Hi all, I need some help on how to go about the below requirement. I need to run report RSAU_SELECT_EVENTS as a batch job by creating the variants and have to create a new report which convert the spools available after executing RSAU_SELECT_EVENTS i

  • D7460 Photosmart cuts off borders on 4x6 paper in tray

    Photosmart D7460 with 4x6 paper tray.  Windows Vista.  Printing from the Microsoft Photo Gallery. Have tried phone support and live chat to no avail.  This printer comes with a 4x6 paper tray and when I print to it, all photos are cut off at the bord

  • Subcontracting PO u0096 BOM and component setup

    Currently a finished good is setup to receive at a DC from a Vendor as follows; We procure all of the components. The finished good is setup in making Vendor plant 0006 and the DC. Components of the finished good are setup in Vendor 0006 and receivin