2010 Sep 19 8:11 AM
Hi Experts,
Which function module to be refered for HR Data Upload
HR_MAINTAIN_MASTERDATA
HR_INFOTYPE_OPERATION
Thanks in Advance.
Regards,
IFF
2010 Sep 20 8:12 AM
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.
2010 Sep 19 5:13 PM
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
2010 Sep 20 8:12 AM
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.
2010 Sep 20 8:24 AM
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
2010 Sep 20 8:52 AM
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
2010 Sep 20 9:03 AM
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