cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the business account who triggers event inside the event handler

eugene_517
Product and Topic Expert
Product and Topic Expert
0 Kudos
201

Hi experts,

We implemented an event. In the event handler class, the sy-uname is a system account. At the runtime, we want to know the exact business user account who triggers the event, is there any approach? Thanks.

According to my debug, in the handler class, we can get the event creator by getting the parameter value of '_EVT_CREATOR'. But the return value is not the real business user. It's like a combination of 'US'(or some other value' + 'business user'. For example, it may returns 'USXXXX'. But I have no idea what 'US' means, and what could be the value. For example, it could be more than 2 characters.

event_container->get(
EXPORTING
name = '_EVT_CREATOR'
IMPORTING
value = lv_event_creator
* unit = data(lv_unit)
* returncode =
).

Accepted Solutions (0)

Answers (0)