Skip to Content
0

Access consumer proxy configuration / login user name

May 18, 2017 at 07:36 AM

56

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Jan Dahl May 18, 2017 at 12:26 PM
0

...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.
Share
10 |10000 characters needed characters left characters exceeded