Skip to Content

ABAP: Delete Infotype record

Dear Abap Experts,

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

Can you help?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 28, 2016 at 02:37 PM

    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?



    Add comment
    10|10000 characters needed characters exceeded

  • Dec 28, 2016 at 03:11 PM

    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


    Add comment
    10|10000 characters needed characters exceeded