on 07-23-2010 10:13 AM
Hello,
in the DOE i can manage users of a device under Administration->Device Administration->User(s)->Manage Users.
This works fine but now I'm searching for a program or a function module which can add or delete users from a device without using the DOE.
Is there a way to manage users of a device without the DOE?
Best regards.
Lars
Hi,
You can aslo assign user/users to devices, if you are using reciever generation DO for creating devices.. You can have a field of length "CHAR12" at the child node(Level2) of RECGEN DO and map it to "USER" field of RMM.(Group-CATEGORY).
In such cases, adding user in the backend and triggering delta load will add a new user to device.
Since USER is a multivalued attribute, you can add multiple users to a device.
If you want to assign list of users to multiple devices then you can use Device profile.
Add users under Device Profile-->Device Attributes -->Manage Device Attributes.
RMM-Mobile, Type- CATEGORY , Cust Grp-CATEGORY, Attr Name-USER
Regards
Rohith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to assign / unassign the users to device programatically:
Use the following steps to assign the users to the device.
Pre-requistes are:
a. Should know the device id.
b. Should know the login name of the user.
1. Use CL_RECEIVER_STORE_FACTORY=>GET_RECEIVER_STORE method to get the RMM object.
Parameters should be RMM = 'EB5C714339AA644CE10000000A15539D'
RMM_NAME = 'RMM_NAME'.
2. Set the user attributes:
DATA: attributes TYPE smmw_av_pair_t,
attribute TYPE smmw_av_pair_st.
clear attribute.
attribute-name = 'USER'. "Don't change this attribute
attribute-operator = 'EQ'.
attribute-value = <user login name>. "Replace this the user login name.
APPEND attribute TO attributes.
clear attribute.
3. Set the user values to the device.
rec_store is the object retrieved from step 1.
rec_store->set_device_attribute_value(
EXPORTING
attributes = attributes
id = device_id " Your device id.
commit_flag = 'X'
override_read_only = 'X'
EXCEPTIONS
set_device_attribute_failed = 1
OTHERS = 2
).
-
Use the following steps to unassign the users to the device.
1. Use CL_RECEIVER_STORE_FACTORY=>GET_RECEIVER_STORE method to get the RMM object.
Parameters should be RMM = 'EB5C714339AA644CE10000000A15539D'
RMM_NAME = 'RMM_NAME'.
2. Set the user attributes:
DATA: attributes TYPE smmw_av_pair_t,
attribute TYPE smmw_av_pair_st.
clear attribute.
attribute-name = 'USER'. "Don't change this attribute
attribute-operator = 'EQ'.
attribute-value = <user login name>. "Replace this the user login name.
APPEND attribute TO attributes.
clear attribute.
3. Set the user values to the device.
rec_store is the object retrieved from step 1.
CALL METHOD rec_store->DELETE_MULTI_VAL_ATTR_VALUE
EXPORTING
ATTRIBUTES = attributes
RECEIVER_ID = device_id.
Regards,
Siva.
Hi everyone,
thank you very much for all your good and really fast answers.
The last answer from Siva was exactly the solution I was searching for!
Anything works fine and now I can add and delete users programatically to devices!!! GREAT!
Special thanks to you.
Best regards,
Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lars,
As far as i understand, there is no Program or a FM to manage users of a device without the DOE.
Regards,
Ananth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.