cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart without visible price

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks for your help,

We simply hide theses collums for everyone...

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Masa,

Thank you for this info. Yes we are in 7.0...

I'm not sure how it works this Field Control. How can we influence the fields by a rôle? Have we to write a methode?

Thank you,

Thomas

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you very much. This is working.

How can I find the SuperClass for other fields?

Thank you very much.

Best regards,

Thomas Frick

Former Member
0 Kudos

Hi,

Can you please explain what do you mean Other Fields? you can use the same structure for custom fields for Basic data frame..

Saravanan

Former Member
0 Kudos

On the same Shopping Cart we have also a total value of all items, and on the document flow of the items we have also prices and valiues.

Actually only the product-prices on the items are hidden.

I can't find theses fields in the SuperClass....

Thanks,

Thomas

Former Member
0 Kudos

Hi,

You can use /SAPSRM/IF_MDF_ITM_DYN_CONTROL interface which has iv_field_name as a import parameter.. how this would help to reslove your issue..

Saravanan

Former Member
0 Kudos

Hi Saravanan,

Thank you for your help.

What can we do if the field, we want to hide, is not in the structure (Fields on the "Related Documents" tab of the Shopping Cart)? Is there a possibility to add theses fields?

Thank you very much.

Best regards,

Thomas