on 01-24-2011 9:05 AM
Hi Experts,
I need to update Infotype 2002 (Employee Attendance) in travel request approval work flow.
For that I am using set of standard BAPI 's
"BAPI_EMPLOYEE_ENQUEUE"
"HR_INFOTYPE_OPERATION"
"BAPI_EMPLOYEE_DEQUEUE"
But I am getting the error
The exception 'CX_HRPA_INVALID_PARAMETER' 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_RESOLVE_EXCEPTION=====CP' has to be
terminated.
When I am using same code in program, It's working fine without any error.
can anyone suggest me , why this error is in BOR method and how to solve it.
Thanks in advance.
Regards,
Priya
Hi,
check the user parameters of the user which is executing this method, probably WF-BATCH.
In HR modification use parameters like Molga (country code) for displaying correct infotype screens and other things.
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rob,
I am testing the method in SWO1 with my id (HAving SAP ALL Authorization), here also it's showing the same error.
I am using same code in report program, it's working fine.
So, let me know why, the same FM ' HR_INFOTYPE_OPERATION ' is throwing error in BOR method
and working fine in reportprogram.
And how to solve this problem.
Thanks in advance.
Regards,
Priya
Hi Vimal,
I saw the BOR PDRELA_025, this BOR using 'BAPI_BOOK_ATTENDANCE'.
But i need to update the infotype 2002 ( Attendance ). For that I am using 'HR_INFOTYPE_OPERATION'.
this FM throwing error when I am using this is in BOR method (In travel Request Approval WF).
Is there any other way to do the same.
Regards,
Priya
Hi Rob,
I alraedy debugged the method and all parameters are same as in report program.
I also used one work around :
I created 1 subroutine in program and i called that program subroutine from method, it is also throwing the same error.
and when i execute that program independently that executing fine and updatind Infotype 2002 correctly.
Regards,
Priya
Dear Vimal,
I checked Note 1087428.
That note says :
You try to use transaction PA30 to create infotype 0706. In the run up, you did not use transaction PA40 to plan for the relevant personnel number. Therefore, infotype 0710 does not exist.
Upto my understanding, transaction PA40 is for employee action, PA30 for employee master data maintainance and PA20 for employee master data display. so i have to use PA30 transaction for master data maintanance.
For master data maintainance there is group of SAP standard function modules,
BAPI_EMPLOYEE_ENQUEUE
HR_INFOTYPE_OPERATION
BAPI_EMPLOYEE_DEQUEUE
If we use these function modules, they are same as PA30 transaction.
When I used these FMs in my report program, they are working fine as their behaviour.
But when i used these FMs in BOR method in Work Flow, FM 'HR_INFOTYPE_OPERATION' is throwing dump.
I asked this to SAP, they reply that they didn't release FM 'HR_INFOTYPE_OPERATION' for custom programs, so they will provide any support on this problem.
So I did work around for the same : I created one FM and inside FM i m calling BDC. That's working fine.
Thanx to all for help.
Regards,
Priya
Hi Priya
Is your Travel Module is integrated with Time Management. As you said that when i execute the report program its working fine but when i use the call the same program in BOR its giving error. In workflow when you apply for TRIP through TRIP t-code or PR05 for expanse you are using std T-code which would be checking some other validation where as when you execute the report you are fetching the details from simply from table and updating. So you will never successed by this way unless there is connection between PT(Time module) and TV (Travel Module) you cannot update using the std fm.
I will give one more clue to check. Take any user exit of travel management if your using TRIP t-code use that user exit or PR05 use relevent user eixt and call the same FM and try it i hope surely it will give the same error. This is just to check. After usage let me know.
Regards
Vijay
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.