on 11-26-2010 9:11 AM
Dear all,
We have a scenario where some user have the authorisation to see prices in shopping carts and other dont have to know the prices.
Is there a possibility to restrict the authorisations/ rôles that some uses don't see any price in the shopping - process?
We could hide all price-fields in every page, but I think this is not a good solution for this issue...
Thank you.
Best regards,
Thomas
thanks for your help,
We simply hide theses collums for everyone...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What is your SRM version? If it is SRM 7.0, please check IMG. You can set dynamic customer method for field visibility.
SRM -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Configure Field Control
Regards,
Masa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes -you have to implement a custom meta data class and method.. you can use sy-uname to get the current user id and call the FM 'BAPI_USER_GET_DETAIL' to get the roles that are assigned to user id.. the table "Activitygroup" of the FM will have the roles of the user.
if the user id is true to display the value then change attribute.. to create a meta data use Superclass as '/SAPSRM/CL_PDO_DYN_MDF_IT' and create your own method and declare the below parameters of the method..
IS_ITEM Importing Type BBP_PDS_SC_ITEM_D
IV_OBJECT_TYPE Importing Type BBP_BUS_OBJECT_TYPE
IV_FIELD_NAME Importing Type NAME_KOMP
IS_HEADER Importing Type BBP_PDS_SC_HEADER_D
IS_ADD_DATA Importing Type /SAPSRM/S_PDO_META_FLD_ADD_DAT
CS_METADATA Changing Type /SAPSRM/S_PDO_FIELD_METADATA
Please let us know if you need more information..
Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.