on 2010 Oct 26 4:53 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not able to see the function module either in 4.7 or ECC 6 version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
Check the attributes of the exception CX_HRPA_INVALID_PARAMETER like parameter, textid etc.... If parameters are invalid, then this will lead to dump.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.