on 2017 May 18 8:36 AM
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
...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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.