cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP CPQ: Difference between scripts and actions?

former_member611643
Participant
0 Likes
699

Hi, friends!
I'm totally new to SAP CPQ and sorry if my question is too simple.
I've already read the documentation and have some view about script, action and If I'm right:

1. Script could be 2 types: Global and Non-global. We use them when we need to limit or manipulate product details.

2. We use actions when we want to add custom logic to the standard.

Maybe I'm wrong and that's the reason why I can't figure out the difference between them.
Can anybody help me and fix me if my vision is wrong.
I would be grateful for examples and useful information.
Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Nikhil_Walsetwar
Contributor

Hi,

The major diff I could quote is like,

Scripts -

  1. the scripts might be global or local to product rules/validation.
  2. if you would like to reuse the same logic then you use global scripts.
  3. But please note you'll be able to use this global script only for product modelling.
  4. Like for example there is a button on product configuration and you need to call an external API or some internal complex processing to auto-populate few values then you'll be using global scripts.
  5. The script can be main/module based.
  6. you'll not be able to restrict the usage of the script for user type level.

Actions

  1. On the other hand, actions are always global.
  2. If you want any new functionality to be implemented in to cart like custom save button then you'll need to create action.
  3. unlike Scripts, you can control the visibility, permission and execution based on statuses.
  4. You can also change cart status based on the successful action execution.
  5. Also, you can call these global actions from your UI like from catalogues.

Hope this help.


Best,

Nikhil

MaxGag
Participant
0 Likes

Hello,

If I may add, the global script aren't limited to product modeling. You can use it on different CPQ events and use them to manipulate a lot of stuff. A lot of exemple can be find here.

https://help.sap.com/viewer/7fc27540a0f14bd1a10b639117a9d4d7/2011/en-US/9682795bd5bd49ae9dd903f97d88...

Thanks

Maxime

Answers (0)