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

delete record in IT2003

Former Member
0 Likes
799

Hi Experts,

Can any one please help me with BAPI or FM or Call Transaction code to delete record in IT2003.

Thank you.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
719

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.

3 REPLIES 3
Read only

Former Member
0 Likes
719

Hi Irfan,

You can use the FM "HR_INFOTYPE_OPERATION", using "DEL" on the parameter "OPERATION".

I hope this helps you.

Regards.

Read only

Former Member
0 Likes
720

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.

Read only

0 Likes
719

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.