2024 May 10 8:32 PM - edited 2024 May 10 8:34 PM
Hello,
We are using UI Adaptation to hide certain fields in a standard Fiori app. What we would like to do is hide a few fields in a smart table object. As seen in the screenshot below, we have created a 'Custom' variant for the Roles table by hiding certain fields. But when the app loads with this new UI variant, the user is still able to select the 'Standard' variant for the Roles table and see All the fields, even those that were hidden in the Custom variant. How do we prevent the user from selecting the Standard variant such that only the Custom variant is selectable/displayed?
I'm pretty sure this must be a common requirement - hiding fields in tables/line items?
Regards,
Saurabh
Request clarification before answering.
Hello,
In SAP S/4HANA Cloud, you can achieve this requirement by using the Manage Variants functionality. Here's how to prevent the user from selecting the Standard variant and display only the Custom variant for the Roles table:
1. Navigate to the app where the smart table object is located.
2. Click on the 'Variant Management' button on the toolbar of the smart table. This will open the Manage Variants dialog.
3. In the Manage Variants dialog, select the Custom variant that you have created for the Roles table.
4. Click on the 'Set as Default' button to set the Custom variant as the default variant for the smart table.
5. Next, click on the 'Authorization' tab in the Manage Variants dialog. Here, you can restrict the access to the Standard variant for specific roles or users. You can remove the authorization for the Standard variant for all users or specific roles.
6. Once you have set the Custom variant as the default and removed the authorization for the Standard variant, click on 'Save' to apply the changes.
this way you can prevent the user from selecting the Standard variant and display only the Custom variant for the Roles table in the Fiori app. This will ensure that the fields hidden in the Custom variant will not be accessible to the user.
BR
Harish Mangtani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harish,
Thanks for the details. Can you provide a source for this info? I don't see the authorizations tab in the manage variants dialog.
I see that there's a role-based assignment for custom views/variants in the UI adaptation mode but nothing for the standard variant. Additionally, even if we were to hide a column through variant management and set that variant as default, the user can still use the table settings to add the column back, which defeats the purpose of creating a variant in UI adaptation completely. In short, I should be able to hide a column in a smart table using UI adaptation and the user should not be able to add it back in any way. Otherwise, what's the point of UI adaptation?
Regards,
Saurabh
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.