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

How to delete HR master data using ABAP

Former Member
0 Likes
1,427

Hi,

Is there a FM or process defined for deleting HR master data?

During our hiring process an employee is created and locked but can then be rejected at a later stage.

I need to remove all data for this employee. Can this be done in code or do I need to get HR to run a report to clear them from the system?

Regards,

Rob

Hi,

Is there a FM or process defined for deleting HR master data?

During our hiring process an employee is created and locked but can then be rejected at a later stage.

I need to remove all data for this employee. Can this be done in code or do I need to get HR to run a report to clear them from the system?

Regards,

Rob

2 REPLIES 2
Read only

former_member188827
Active Contributor
0 Likes
1,054

You can use FM "HR_INFOTYPE_OPERATION" to delete infotype records using "DEL" for deleting. Also check tcode "PU00" to delete the employee . Refer to following link:

http://scn.sap.com/thread/2086955

Regards

Read only

Former Member
0 Likes
1,054

Hi Rob,

If u want to delete the master data of an employee -

PA30 - select infotype - press the delete button or Press (shift+F2) from key board.


Or

If u want to delete the personnel number -  enter T Code PU00  - enter personnel number which u want to delete.

Thanks!