cancel
Showing results for 
Search instead for 
Did you mean: 

Error in BOR Method

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186746
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

vimalv
Active Participant
0 Kudos

Hi Priya,

You could may be look at BOR PDRELA_025(Attendance) and workflow PE_APPROVE03 to get some idea on how your requirement can be handled.

Many thanks,

Vimal

Former Member
0 Kudos

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

former_member186746
Active Contributor
0 Kudos

Hi,

Will it work if you execute the method in SWO1?

If not then, debug the method to see if you're passing the same data to the FM.

Kind regards, Rob Dielemans

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Priya,

Inside the method, Just call your report program using Submit keyword.

You can pass the data's from your method to program using Memory ID's - Se the memory ID from business object and get it using Get memory ID.

Thanks,

Viji.

Former Member
0 Kudos

Hi,

I tried the same, it's throwing the same error.

Regards,

Priya

Former Member
0 Kudos

Hi,

Can you check the Data type of parameter's that are passed to the BAPI function module. In the business object you may passed the parameters with the different data type.

Also, Debug the FM HR_INFOTYPE_OPERATION and try to find the issue.

Thanks.

vimalv
Active Participant
0 Kudos

Priya, could you please check SAP Note 1087428.

Former Member
0 Kudos

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

vijy_mukunthan
Active Contributor
0 Kudos

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