on 06-23-2013 11:58 PM
Hi guys,
I have a requirement to transfer the employee to an existing position and also change this destination position attributes, I mean Job relationship, Cost Center and other infotypes such as P1050.
I start the process with SAP_PA due to the fact the user should select the affected employee first. Then in the form the user picks the destination position and change its attributes.
I set up SAP_PD to save the position attributes and SAP_PA to run a transfer action and assigned the destination position to field I0001_PLANS of infotype 0001.
When I execute the process and click on Check button get the dump below.
Category ABAP Programming Error
Runtime Errors UNCAUGHT_EXCEPTION
Except. CX_HRPA_INVALID_PARAMETER
ABAP Program CL_HRASR00_PAITF_ADAPTER======CP
Application Component PA-AS
Date and Time 23.06.2013 03:11:23
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_VIOLATED_ASSERTION", which was raised in the
program "CL_HRPA_OM_INTEGRATION========CP",
specifically in line 214 of the (include) program
"CL_HRPA_OM_INTEGRATION========CCIMP".
The cause of the exception was:
"UNCAUGHT_EXCEPTION" "CX_HRPA_INVALID_PARAMETER"
"CL_HRPA_RESOLVE_EXCEPTION=====CP" or "CL_HRPA_RESOLVE_EXCEPTION=====CM00
"RESOLVE"
*------------------------------------------------------------------------------------------------------------------------------------------- *
if we have a look at the exact point of the dump we can get a description of SAP.
* If we can not remap we would like to just re-raise the
* exception like below like "RAISE EXCEPTION exception.".
* Unfortunately the kernel will then forget about the
* original source position.
* So this is the fallback strategy. Calling this method
* is only allowed if the exception can be resolved. Since
* this is not the case we indicate a parameter violation.
RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
EXPORTING
previous = exception
parameter = 'EXCEPTION'.
I realized that some people succeed using SAP_PD and SAP_PA in the same form scenario, could you please help me on this issue or give some directions??
thanks in advance.
Hi,
you can resolve this issue by using custom generic service before and after calling the SAP_PA service. ( i.e. add a new method to class CL_HRPA_OM_INTEGRATION to set the parameter A_is_integration_active = X or A_is_integration_active = space this has to be controlled from process, then you will be sure that there is no impact to any process.
Regards,
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.