Configuring Mobile User Attributes

The User Attributes tab in the Mobile Application Configuration page of the ConfigPanel allows you to maintain multiple values for a selected attribute.

Context

There are three core configuration steps to implement mobile user attributes:
  1. Create the user attribute using the ConfigPanel

  2. Define and activate the new user attribute through the Admin Portal

  3. Define how to consume the data in the OMDO through the ConfigPanel

Procedure

  1. Create the user attribute using the ConfigPanel:
    1. From the home page of the ConfigPanel, navigate to Start of the navigation pathMobile Application Settings Next navigation step Mobile Application ConfigurationEnd of the navigation path and select the User Attributes tab.
    2. Click the Change button. Create your user attribute using the following fields. See the screenshot for an example:

      ConfigPanel - Mobile Application Information - User Attributes tab - Create new user attribute

      • <Attribute Name> and <Description>

      • In the <Reference Structure Name> field, create or use an existing reference structure such as PLANT or WORK CENTER.

      • The <Reference Field Name> is optional. Maintain if you’re referring to a single field from the structure.

      • Create a <ValueSet Provider Class> to populate possible values for your new user attribute. Use handler /SMERP/CL_MM_USRATTR_VALUESET as a reference. Subclass from the base class /SMFND/CL_CORE_USRATTR_VS_BASE.

    3. Click Save to save your changes.
  2. Define and activate the new user attribute through the Admin Portal:
    1. Access the Admin Panel from the SAP GUI using transaction code /n/SYCLO/ADMIN.
    2. From the main page of the Admin Portal, navigate to Start of the navigation pathAdministration Next navigation step User ManagementEnd of the navigation path and select the User Attributes tab in the Mobile User Detail section of the screen.
    3. Select your desired mobile application from the dropdown. Search for available users connected to your selected application.
    4. Click the User Attributes tab. Then click the Change button.
    5. Click the Add button. Add the values created in Step 1. Repeat this step for all values you created. See the following screenshot for an example.

  3. Define how to consume the data in the OMDO through the ConfigPanel:
    1. From the main page of the ConfigPanel, navigate to Start of the navigation pathOData Mobile Data Configuration Next navigation step Data Filter tabEnd of the navigation path.
    2. Select the OMDO filter to which you're adding the new user attribute from the user attributes defined in the Mobile Application Configuration page in the ConfigPanel.
    3. Choose your filter from the Defined Filters list. Click Change.
    4. Assign your user attribute to the OMDO filter using a dynamic rule. The value is evaluated at runtime based on the runtime mobile user attribute of the user.
    5. Select Mobile User Attribute as the <Filter Rule Type>. See the following screenshot as an example.