cancel
Showing results for 
Search instead for 
Did you mean: 

FM for Hiring: HR_PAD_HIRE_EMPLOYEE

Former Member
0 Kudos
645

Good day,

I need to process a hiring action in background. I found out this FM called HR_PAD_HIRE_EMPLOYEE which I could use. The problem here is that I keep on getting a dump whenever I tried testing it. The exception is CX_HRPA_INVALID_PARAMETER.

This is my first time using this FM and I would really appreciate if you could give me a working sample program. Thank you.

Regards,

Chris

Accepted Solutions (0)

Answers (3)

Answers (3)

soldner
Participant
0 Kudos

Just successfully tested this function module.  You will need to enter all required fields of P0001 and P0002, and the action and position.  It does check if your system has OM integration, and will build the IT0003, IT0302, and add the EE to the position in IT1001 for you.

As Pradeep says, it is easier if the ABAPPER can get the actual error message itab since it has the required fileds and errors.

former_member225631
Active Contributor
0 Kudos

I am not able to see the function module either in 4.7 or ECC 6 version?

Former Member
0 Kudos

Hi ravi sr,

Thanks for the answer. I have investigated and studied the exception error. This was related to a failed process when the FM called class CL_HRPA_INFTY_0001->INSERT. This class uses CL_HRPA_FEATURE=>GET_VALUE to get the SMBOD data for the current P0001 data (the one included in parameter PNNNN_TAB of the HR_PAD_HIRE_EMPLOYEE FM).

I'm not quite sure but is there a required configuration for features before this FM can be used correctly? Also, I need to know the following:

1. What are the REQUIRED infotypes to make this FM work? All I know is IT0000, 0001 and 0002.

2. What fields are needed/required for each infotype?

3. Is there a configuration requirement for this FM to work? Since its using features to map field values.

Hi Anand,

I believe this is not part of the standard release. You need to request this FM from SAP.

Former Member
0 Kudos

Hi,

Right now I am facing same problem , What is the solution to solve the dump? Please revert back anybody faced same problem.

Regards,

Chandran

Former Member
0 Kudos

Hi Chandran,

Could you please Paste Runtime Error Long Text(ST22) of this error for the following headings

1. Short text

2. Error Analysis.

So that we can analyse that.

Pradeep.

Former Member
0 Kudos

Hi Pradeep.

Thanks for your response.

1.Short text

    An exception occurred that was not caught.

2.Error analysis

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 "IF_HRASR00_PAITF_ADAPTER~DO_OPERATIONS" "(METHOD)", 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: Invalid parameter EXCEPTION, value  The occurrence of the exception is closely related to the occurrence of a previous exception "CX_HRPA_INVALID_BUFFER_ACCESS", which was raised in the program "CL_HRPA_MASTERDATA_BUFFER=====CP",  specifically in line 48 of the (include) program  "CL_HRPA_MASTERDATA_BUFFER=====CM00C". The cause of the exception was: Infotype Record for &PSKEY:aStructure& A Does Not Exist

If you want more info please revert back.

Regards,

Chandran

Former Member
0 Kudos

Hi Chandran,

As Analysis says Infotype Record for &PSKEY:aStructure& A Does Not Exist. We cant say exact reason.

My suggestion is sit with your ABAPer and ask him to set Break-Point at

IF_HRASR00_PAITF_ADAPTER~DO_OPERATIONS, Line 256.

While debugging you can find out.

Pradeep.

Former Member
0 Kudos

Check the attributes of the exception CX_HRPA_INVALID_PARAMETER like parameter, textid etc.... If parameters are invalid, then this will lead to dump.