Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Catalog items visible to everyone, purchaseable only for some users

Hello everybody

Me again trying to find a solution to the following problem:

We need to have some items in our catalog that are visible for every user but only purchaseable via shopping cart / SRM for some authorized users. I couldn't find any possibility in the customizing. So my attempt would be to add an additional attribute in CCM where I can put some kind of flag and then to construct an authorization check based on that flag and on a authorization profile. In case the authorization check fails, the catalog item may not be put in the shopping cart. Preferabily the shopping cart icon should be disabled for such items.

Did somebody out there already think about something similar or already implemented something like that?

It would also be a good basis for offering a publicly viewable, browseable catalog for "window shopping", because I also didn't find a way until now to publish the catalog as a standalone web application without shopping cart functionality.

What do you out there think about it?

Kind regards,

Renaud

Former Member
replied

Hi Renaud,

Can you try to populate the complete message by yourself, in ls_message-message, with something like:

move wa_catalog_content-cust_field5 to LV_MESSAGE_V1.

move wa_et_sc_item_data-ordered_prod to LV_MESSAGE_V2.

CALL FUNCTION 'RPY_MESSAGE_COMPOSE'

EXPORTING

LANGUAGE = SY-LANGU

MESSAGE_ID = 'ZXXX'

MESSAGE_NUMBER = '000'

MESSAGE_VAR1 = LV_MESSAGE_V1

MESSAGE_VAR2 = LV_MESSAGE_V2

MESSAGE_VAR3 = LV_MESSAGE_V3

MESSAGE_VAR4 = LV_mESSAGE_V4

IMPORTING

MESSAGE_TEXT = ls_message-message

EXCEPTIONS

MESSAGE_NOT_FOUND = 1

OTHERS = 2.

ls_message-type = 'E'.

ls_message-id = 'ZXXX'.

ls_message-number = '000'.

ls_message-message_v1 = wa_catalog_content-cust_field5.

ls_message-message_v2 = wa_et_sc_item_data-ordered_prod.

APPEND ls_message TO et_sc_messages.

If it does not work, then you can use directly the ABAP instruction:

<i>message id 'ZXXX' type 'E' number '000' with wa_catalog_content-cust_field5 wa_et_sc_item_data-ordered_prod.</i>

instead of trying to pass it in the return table.

This will generate a popup, and not a message in the check list.

Rgds

Christophe

PS: please reward points for helpfull answers

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question