Hi, experts.
How to understand who sent an odata request in dpc mine service?
I’ve found only this, and i don’t think it’s good to write like this.
how to do it correctly?
begin of ty_s_parameter,
name type string,
value type ref to data,
end of ty_s_parameter .
data:
ty_t_parameter type hashed table of ty_s_parameter with unique key name,
ls_param type ty_s_parameter.
data : mine_obj type ref to /IWBEP/IF_MGW_CORE_SRV_RUNTIME=>TY_S_MGW_REQUEST_CONTEXT.
FIELD-SYMBOLS: <fs_value> TYPE any.
mo_context->GET_PARAMETERS( IMPORTING ET_PARAMETER = ty_t_parameter ).
read table ty_t_parameter into ls_param WITH TABLE KEY name = ‘request_user’.
ASSIGN ls_param-value->* TO <fs_value>.