Adding HR-Infotypes in User-Exit when saving one Infotype
I try to add an infotype 0019 when saving infotyp 2001 in PA30.
I decided to use user-exit EXIT_SAPFP50M_002, becaus I have to do some logic before adding 0019.
First try was to use HR_MAINTAIN_MASTERDATA but this function seems to use the same dialog-modules than PA30 does. After saving 0019 and coming back to 2001 dialog the screen is destroyed and program stops with an error.
Next try was to use RH_INSERT_INFTY, but this works only with PD-Infotypes. (says BEGDA < ENDDA)
I don't really want to insert Data direkt with SQL-command, because I need to get it replicated via ALE later.
The User exit gets triggered during the PAI/PBO for all PA infotypes.. you might fall into an endless loop if you try to save another infotype within this exit. Have you tried the option of Dynamic Actions? (V_T588Z)