The Scenario
My current project had a scenario wherein, in a particular screen we would need to display all the users with a particular role, say ProductionSupervisor, in a drop-down list so a value can be selected for user input. This can be very easily achieved using the SystemInfo service thus :
server:///XMII/Illuminator?Service=SystemInfo&Mode=UserList&Group=ProductionSupervisor&content-Type=text/xml
Here the filter Group=<RoleName> can be used to filter users with a particular role. The resultant XML can be parsed and displayed as a drop down list of relevant users.
When we tested this in development with our user-ids, this worked fine, however once we deployed it in production the drop down list was not populated at all for the users. We could immediately figure out that this was an authorization issue as all the developers in the team had the SAP_XMII_Administrator role assigned to them and the users in production had only the SAP_XMII_User role assigned. While attaching the administrator role for the users in production would have been a quick fix, it was definitely not the optimal solution as the client was not too comfortable with all the users having administrator rights over the production instance of SAP MII.
The Solution
Having faced similar issues before we knew the solution to the same. Enter, a little known and used SAP Netweaver UME feature : Actions. There are 207 Netweaver actions that let you have fine grained access to the various services, screens and functionality of SAP MII. You can attach an action to either a Role or a User for the relevant authorization needed and in our case we decided to attach the XMII_SystemInfoService action to the ProductionConfirmation role attached to the users in production.
The way to do this is thus :
Footnote
There is a comprehensive list of SAP MII Actions in the help document as well : http://help.sap.com/saphelp_mii122sp03/helpdata/en/4c/9768bdc14d60c3e10000000a15822d/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.