2008 Apr 25 8:31 PM
Hi Experts,
Can any one please help me with BAPI or FM or Call Transaction code to delete record in IT2003.
Thank you.
2008 Apr 25 9:22 PM
Thanks for the quick reply.
Do I have to use 'BAPI_EMPLOYEE_ENQUEUE',
'BAPI_TRANSACTION_COMMIT'
'BAPI_EMPLOYEE_DEQUEUE'
for the function module 'HR_INFOTYPE_OPERATION'
why do I have to use them. what do they do. Can I do this with out using them.
Hi Experts,
Can any one please help me with BAPI or FM or Call Transaction code to delete record in IT2003.
Thank you.
2008 Apr 25 8:40 PM
Hi Irfan,
You can use the FM "HR_INFOTYPE_OPERATION", using "DEL" on the parameter "OPERATION".
I hope this helps you.
Regards.
2008 Apr 25 9:22 PM
Thanks for the quick reply.
Do I have to use 'BAPI_EMPLOYEE_ENQUEUE',
'BAPI_TRANSACTION_COMMIT'
'BAPI_EMPLOYEE_DEQUEUE'
for the function module 'HR_INFOTYPE_OPERATION'
why do I have to use them. what do they do. Can I do this with out using them.
2008 Apr 26 3:36 PM
The FM 'BAPI_EMPLOYEE_ENQUEUE' is used to lock the PERNR that you will change, it also returns an error if the PERNR is being edited by another user. Using it you make sure that there is nobody else changing the same PERNR at the same time.
The FM 'BAPI_EMPLOYEE_DEQUEUE' unlock the PERNR after to change it.
Yes, you have to used them, the FM 'HR_INFOTYPE_OPERATION' returns an error if you try to update a PERNR without lock it before, also you have to unlock after to change it so another users can also make changes on it.
You don't need to use the 'BAPI_TRANSACTION_COMMIT' because the FM 'HR_INFOTYPE_OPERATION' already does a commit unless you set the parameter "NOCOMMIT".
Best regards.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |