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

ABAP: Delete Infotype record

Former Member
0 Likes
1,770

Dear Abap Experts,

How can I delete infotype records using bapi. I have seen many links but no success.

https://archive.sap.com/discussions/thread/3171819

Can you help?

Thanks,

Aneel

Dear Abap Experts,

How can I delete infotype records using bapi. I have seen many links but no success.

https://archive.sap.com/discussions/thread/3171819

Can you help?

Thanks,

Aneel

2 REPLIES 2
Read only

antoine_foucault
Active Contributor
0 Likes
1,163

Hi Aneel:

Could you be more specific to your issue using screenshot of your actual issue in your code? Could you also give more information to understand what you want to achieve beyond just "deleting an IT record".

FM HR_INFOTYPE_OPERATION is a very good option to perform an operation such as delete but sometime either a wrong parameters or business rules makes impossible to run successfully the desired action. For instance deleting IT0003 is not possible, deleting a payroll relevant record beyond the maximum period allowed by the control record is also not possible... Thus deleting operation implies the you specify the full key of the infotype. The full key of the infotype as per dictionary structure PSKEY.

In your current setup if you import the WA_RETURN parameters, what does it holds after your failed operation?

Best,

Antoine

Read only

raffi1
Participant
0 Likes
1,163

Hi Aneel,

for mass deleting infotype records in non production systems you can use report RPUREOPN. But this report checks the restrictions mentioned by Antoine, too.

best regards

Christian