cancel
Showing results for 
Search instead for 
Did you mean: 

Program or function module for manage user in the DOE

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

rohith_deraje
Employee
Employee
0 Kudos

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

Former Member
0 Kudos

Valid users from DOE(Particual system) only can be assigned to devices.

We cannot manage users without DOE I guess

sivasatyaprasad_yerra
Active Contributor
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

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

AnanthNatarajan
Advisor
Advisor
0 Kudos

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.