Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR_GET_LOAN_BAL_PAID_AMT is not working

0 Kudos

Hello.

I'm trying to use the FM HR_GET_LOAN_BAL_PAID_AMT to get a loan balance but the parameter ENDDA is not working.

The function always return the balance at the present day.

5 REPLIES 5

former_member201275
Active Contributor
0 Kudos

Yes, it seems not to use these parameters!

Have you had a look at Class CL_HRPA_LOAN_COMPUTATIONS? Maybe you can use this instead.

Former Member
0 Kudos

Hi,

This function module HR_GET_LOAN_BAL_PAID_AMT  determines the following values for an loan request.

To get the balance and paid amount of the loan so far current date

  • Paid amount - This is the amount that the employee has paid back to the company aginst the loan request
  • Balance amount - This is the amount that the employee has to pay back to the company aginst the loan request.

Can you explain  exactly, what Loan details you are looking for?

Thanks,

Kiran.

0 Kudos

Hello Kiran.

The idea is to get the balance of a loan to a specific date.

former_member184569
Active Contributor
0 Kudos

Why dont you use HR_READ_INFOTYPE?

You could also use the method in the class CL_HRPA_LOAN_COMPUTATIONS.

Or you could just directly read from table pa0045.

Check this sample code.

http://sapabap-techsupport.blogspot.ae/2010/12/loans-detail-report-in-hr-abap.html

0 Kudos

I check the method GET_SUM_OF_PAYMENTS in the class CL_HRPA_LOAN_COMPUTATIONS, but I don't see any parameter to specified a date