cancel
Showing results for 
Search instead for 
Did you mean: 

Access consumer proxy configuration / login user name

jan_dahl
Explorer
0 Kudos
446

Dear experts,

as it turned out, my WS consumer is trying to use a service with the batch user (which is not known by the foreign system). My idea is to use the user from consumer proxy settings. That would be handy because it's different in every environment.

So my question is:

How can I read out the user name from the consumer proxy configuration?

...searched already a bunch of SRT_* tables but no luck

Accepted Solutions (1)

Accepted Solutions (1)

jan_dahl
Explorer
0 Kudos

...found it my self:

NEW cl_srt_ws_admin_search_utils( )->get_list_of_configured_proxies(
  EXPORTING
    i_tab_object_name = VALUE #( ( sign = 'I' option = 'CP' low = '<PROXYCLASS_NAME_V>*' ) )
  IMPORTING
    e_tab_objects = DATA(lt_conf_proxies)
               ).
ls_input_params-arg2-user_id = lt_conf_proxies[ 1 ]-lp_user_name.

Answers (0)