cancel
Showing results for 
Search instead for 
Did you mean: 

Why FM HR_ECM_DELETE_INFOTYPE does not work?

danish_makhdum
Explorer
0 Kudos
162

Hi folks,

Greetings!

I recently tried this FM 'HR_ECM_DELETE_INFOTYPE' for the purpose of deleting an infotype record.

From the description in the FM attributes, that is accurately what its meant for.

However, when I executed the FM, it was a swift run, with no error messages, SY-SUBRC = 0, IS_OK = X and no abnormalities at all.

But to my surprise, the record was not deleted!! I tried this with multiple PERNRs and multiple standard and custom infotypes. But this did not work for any of them.

Am I missing something here? Appreciate your guidance.

ulrich_mhrke
Explorer
You must at least call the function module HR_ECM_FLUSH_INFOTYPE.

Accepted Solutions (1)

Accepted Solutions (1)

danish_makhdum
Explorer
0 Kudos

Thank you @ulrich_mhrke .

That worked perfectly fine!

Ans: call the function module HR_ECM_FLUSH_INFOTYPE after FM HR_ECM_DELETE_INFOTYPE.

Answers (1)

Answers (1)

danish_makhdum
Explorer
0 Kudos

Kudos my friend! That worked like magic! 🙂

Thank you so much!