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

Which Function Module To be Prefered for HR Upload

Former Member
0 Likes
1,048

Hi Experts,

Which function module to be refered for HR Data Upload

HR_MAINTAIN_MASTERDATA

HR_INFOTYPE_OPERATION

Thanks in Advance.

Regards,

IFF

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
962

check [this|http://shafiq.us/sap/index.php?option=com_content&view=article&id=59:hrmaintainmasterdata-and-hrinfotypeoperation-update-performance&catid=45:hr-abap-tips-and-differences&Itemid=64] out, Use 'HR_PSBUFFER_INITIALIZE' to overcome buffering issues.

Hi Experts,

Which function module to be refered for HR Data Upload

HR_MAINTAIN_MASTERDATA

HR_INFOTYPE_OPERATION

Thanks in Advance.

Regards,

IFF

5 REPLIES 5
Read only

Former Member
0 Likes
962

Hi There,

HR_MAINTAIN_MASTERDATA This function module is used to maintain master data for employees and applicants.

HR_INFOTYPE_OPERATION This function module is used to maintain employees and applicants data.

Based on your requirement you can use them.

I hope I answered your queston.

Kind Regards,

Ashok

Read only

Former Member
0 Likes
963

check [this|http://shafiq.us/sap/index.php?option=com_content&view=article&id=59:hrmaintainmasterdata-and-hrinfotypeoperation-update-performance&catid=45:hr-abap-tips-and-differences&Itemid=64] out, Use 'HR_PSBUFFER_INITIALIZE' to overcome buffering issues.

Read only

MarcinPciak
Active Contributor
0 Likes
962

Actually the first is the subfunction of the second one. It allows to process multiple entries at once while the latter can process only one record. The first one also requires from developer providing correct data (you must provide all the fields and values yourself in form of a table content - one record for one field + value) while the second takes action based on content of record parameter and key fields.

It is actually up to you which one you choose. I am using HR_MAINTAIN_MASTERDATA and works fine, but it leaves more responsibility on you.

Regards

Marcin

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
962

Hello Marcin,

Any specific reason why you use HR_MAINTAIN_MASTERDATA directly ? Anyways i feel these FMs are outdated. What do you say ?

@OP:

If you debug HR_INFOTYPE_OPERATION internally it calls HR_MAINTAIN_MASTERDATA. So if you ask which FM to use between these two i would say it's a matter of personal choice

Marcin has mentioned the difference between these two in terms of "responsibility" so up to you to choose the one.

BR,

Suhas

Read only

0 Likes
962

Hi Suhas,

As you mentioned, maybe this is just a matter of personal preference, or maybe I like generic programing so much that can't stand straightforward use of HR_INFOTYPE_OPERATION . Of course I am kidding here, but the reason I gave (of multiple records maitenance at once) convince me to use HR_MAINTAIN_MASTERDATA in cases where the "batch" upload is required, while for single record maintenace the the first one should be prefered.

Regards

Marcin