Skip to Content
0

ABAP: Delete Infotype record

Dec 28, 2016 at 06:55 AM

278

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

antoine foucault Dec 28, 2016 at 02:37 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Christian Köhler Dec 28, 2016 at 03:11 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded