Hi,
Here is the problem: we would like to use ESS but we also need to notify local administrator of the master data changes in the SAP system when the employee changes his/her data.
Thus, we use HR Master Data event (transaction SWEHRx) so as to detect and react to employee changes.
The problem that arises is that some changes are in fact raised multiples times (deletion followed by 2 creations). This is logical since the system forces the employee to create a new record which means - possibly - deliminting the old record.
All would be OK if one could have access to the whole lot of operations that are being done on the Master Data and not being given record one at a time... 😕
This is indeed what FM 'HR_EVENT_CREATE' is doing: breaking up into elementary master data operations. The problem is that the adapter class CL_HRPA_PERNR_INFTY_XSS (which contains all the logic I have described hereabove) has only private attributes with no GET method at all. I intended to address it (as it is a global variable of the program SAPLHRXSS_PER_MAC) from my 'Z_xxx' function module where I deal with the event.
Well, in ordinary times, I am a big fan of encapsulating and everything... but in the meantime, I would very much like having the 'macro' state of the object. In my case, it would be the current record the employee is dealing with (attribute CURRENT_RECORD of the adapter).
Is there a workaround you know to circumvent these restriction?
Thanks in advance for your help.
Best regards,
Guillaume