2016 Dec 28 6:55 AM
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
2016 Dec 28 2: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?
Best,
Antoine
2016 Dec 28 3: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
Christian
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |