Skip to Content

Access consumer proxy configuration / login user name

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 18, 2017 at 12:26 PM

    ...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.
    Add comment
    10|10000 characters needed characters exceeded