Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to read ParameterID from different(!!) user

Former Member
0 Likes
1,453

Hi folks,

does anyhow know whether it's possible to read a Parameter ID from a different user?

For example: We have a Parameter ID 'GROUP' which is set according to the SAP-User!

So what I want to do is reading this Parameter ID for User XY, something like

GET PARAMETER ID 'GROUP' FIELD l_group USER 'SUSAN'

Possible??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,367

No you can not do that.

SET PARAMETER ID stores the value in SAP memory and this memory space will be different for different user, so you can not do that.

5 REPLIES 5
Read only

Former Member
0 Likes
1,368

No you can not do that.

SET PARAMETER ID stores the value in SAP memory and this memory space will be different for different user, so you can not do that.

Read only

JozsefSzikszai
Active Contributor
0 Likes
1,367

hi Daniel,

yes, it is possible, Parameter IDs are stored in table USR05 for all users, you have to select the value according to the user/Parameter ID combination, then you can go with the SET ... command.

hope this helps

ec

Read only

0 Likes
1,367

Hi Eric,

I think USR05 only holds the default values at logon time, maintainable via System->user profile->own data.

If a value is changed during a user session via SET PARAMETER, it cannot be obtained from a different user context, as far as I know. Correct me if wrong.

Cheers

Thomas

Read only

0 Likes
1,367

yes, that's true. In USR05 there are only the default values (maintained in the user master data). If the parameter IDs is changed during runtime with SET command, that is not saved back to table USR05.

Read only

Former Member
0 Likes
1,367

you can use the Shared memory concept. export the data using with one user.

data: werks type werks_d.
DATA: wa TYPE indx.

werks = '1000'.

EXPORT werks FROM werks
TO SHARED MEMORY indx(xy)
FROM wa
CLIENT sy-mandt
ID 'MID'.

import the data using another user .

the declaration should be exactly same.

data: werks type werks_d.
DATA: wa TYPE indx.

IMPORT werks TO werks
FROM SHARED MEMORY indx(xy)
TO wa
CLIENT sy-mandt
ID 'MID'.