11-25-2007 6:20 AM
HI Experts,
What are the Advantages of 'HR_INFOTYPE_OPERATION' Function Module In ABAP-HR rather than BDC Both methods?
Thanks in Advance.
Naveen
11-25-2007 7:19 AM
Hi
The function module 'HR_INFOTYPE_OPERATION' can be used to update,insert,modify,delete and change in the same function module.
Codings are also very simple there by calling this FM in case of conversion program.
Performance is also good when compared to session method.
Speedy performance in conversion programming.
The sample codings is given.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0009'
NUMBER = EMPLOYEENUMBER
SUBTYPE = SUBTYPE
OBJECTID = OBJECTID
LOCKINDICATOR = LOCKINDICATOR
VALIDITYEND = VALIDITYEND
VALIDITYBEGIN = VALIDITYBEGIN
RECORDNUMBER = RECORDNUMBER
RECORD = P0009
<b>OPERATION = CHANGE </b>
NOCOMMIT = NOCOMMIT
There by changing the operation field into "INSS","MOD","DEL" alone we can do conversion program easily.
Then if no commit ='X' then it does't get updated in database so that it will be easy for us to check whther the fields get updated properly in database.
If no commit = ' ' then the possible fields get updated in database.
Thanks,
Sakthi.
*Rewards if usefull*