Application Development and Automation 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: 
Read only

upload infotype 45

manubhutani
Active Contributor
0 Likes
1,286

Hi,

I want to make a program to upload infotype 45.

please let me know how to do that, i want to use hr_infotype_operation FM.

Regards

Manu

Hi,

I want to make a program to upload infotype 45.

please let me know how to do that, i want to use hr_infotype_operation FM.

Regards

Manu

2 REPLIES 2
Read only

Former Member
0 Likes
829

Hello Manu

For infotype 0045 you will need to make to callings of the FM HR_INFOTYPE_OPERATION, because there´s a link between the Loans ( IT 0045 ) and The Loan Payments ( 0078 ).

This is an example of how to call this FM

CLEAR p0045.

p0045-pernr = pernr.

p0045-subty = subty.

p0045-begda = begda.

p0045-endda = endda.

p0045-darbt = darbt.

p0045-dkond = dkond.

p0045-tilbt = tilbt.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '0045'

number = pernr

subtype = subty

record = p0045

operation = create

nocommit = nocommit

IMPORTING

return = return

key = bapikey

EXCEPTIONS

OTHERS = 0.

Do the same with the IT 0078, and do not forget to enqueue the employee before these operations using the FM

BAPI_EMPLOYEE_ENQUEUE and use the FM BAPI_EMPLOYEE_DEQUEUE after the operations.

Hope it helps

Kleber Santos

Read only

0 Likes
829

HI,thanks for the reply.

in infotype 45, there is data of infotyppe 78.

so i cannot call these two infotypes separately,

hope this help u understand my problem

Regards

Manu