Skip to Content
Author's profile photo Lyda Osorio

CRM Interaction Center – Interactive Scripting

What is Interactive Scripting?

A useful tool with a list of questions and answers to guide agents through each step of a customer interaction. The scripting configuration controls the navigation, depending on answers the agent gets from the customer. The answer (decisions) are represented by buttons and could:

  • Trigger other questions.
  • Trigger an URL.
  • Trigger other interactive script
  • Navigate to another “UI View” in the Interaction Center Web Client.
  • Trigger a CRM questionnaire (survey).
  • Update Business Partner Address or  Marketing Attributes

Interactive script.png

Script Content


It is a short text that describes the dialog with the customer. Question can be reused in all scripts.


During a creating a question is possible to include in the definition different sections: question, answers, buttons; this is extremely useful to design better screen with all options required.

question design.png


Variables are placeholders that become the customer’s current information when agents use the script.

SAP provides standard variables, or you can create your own variables.  Standard variables including all field for address, and name for customer and customer contact.

variables example.png

(Variables are saved in the answers repository under TextFields)

variables location.png


Answers guide agents through interactions with customers. It includes the clients response and could be buttons or fields.


Any type of answer that is not a button is considered a field. Fields are used in questions. Once you have created a field, you can reuse it in any question.

There are various types of fields that you can create:

  • Radio buttons

radio buttons.png

  • Dropdowns


  • Checkboxes



Are used for navigating from one question to the next in the script. Can be reused in the any answer.

Example: More Info, Next, No, No Changes, Save, Yes, Ok


Navigation Options

Trigger other questions

You could trigger further questions, which can contain text fields, drop-down list boxes, check boxes or radio button; and are useful for questions that require an actual response from the customer

type of questions.png

Trigger URL

System will open a Web URL. You can configure to open in a new window or open inside the script.


Trigger other scripts

Scripts can be triggered from within other scripts.

Just drag and drop a script to the design area.


Trigger Transactions

Interactive Script can navigate to another “User Interface View” in the Interaction Centre Web Client or another SAP transaction (Depending on configuration is possible to navigate to any transaction in SAP ECC, for example, if the transaction launcher is available in the Interaction Centre).

To navigate to other transaction, you must select the Object type and Action based on your navigation bar profile, outbound parameters for your business role.

navigation parameters.png

Trigger Questionnaire

From a script a questionnaire (survey) can be triggered to collect “More” information in only 1 screen. This is useful as allows marketing department to define surveys that can be reused in different scripts, as well as in the website.


Update Business Partner Address or Marketing Attributes

Agents can update customer data directly from within the script: address fields and marketing attributes can be updated for the confirmed business partner.

To include marketing attributes in the design, ensure to select template “Person or Organization Marketing Attributes”


During the answer design, drag and drop “Dynamic Answers” to include marketing attributes.


The system will display the marketing attributes that you maintain in script parameters:


Script Functionality

Objection Scripts

It is an exception script that can only be launched directly from within another script.

It is used when customer answers don’t follow your script navigation. A common example, you are guiding your customer during the call and the customer does not want to continue with your questions or wants to speak with your manager.

Objection Script.png

Shows History of Answers

A history of the customer response can be viewed at a press of a button. The transcript is linked to the current Interaction Record and can later be retrieved from the Activity Clipboard of the Interaction Record.

trasnscript partes2.png

You can access the transcript either from the script directly by clicking the “View Transcript” link, or alternatively by clicking the Transcript link in the Interaction Record Activity Clipboard.

transcript 2.png

Actions (Decision Navigation)

Actions are ABAP classes that use system data to calculate values. By importing the confirmed business partner, it is possible to create logic to read system information from SAP (e.g: CRM, ERP) and perform complex validations.

Example: Your company offers discount to people age 60 and older, and you want to create a script that branches to two different questions, depending on the customer’s age. You create an ABAP class that finds the age of the business partner in the system after the business partner is confirmed. You incorporate this ABAP class into the script using an action.


There are two type of script actions:

Branching Action: When agents use this script, the action branches to the correct set of age-related questions, without the agent having to ask the customer’s age.

Example: You create a branching action that finds the age of the business partner in the system after agents confirm the account, and fits the age into one of two ranges: younger than 60, or 60 and above.


Non-branching Action: class that performs background operations.

Example: You can create an action to determine the price of a product that is offered in a campaign. The result of this action is: “The price for this product is [{queryPrice}.price]”. When agents use the script, the variable is replaced by the actual price, which is the result of this action.

Please take in account that Action ID are not transported. Must be created manually in each system.

Action Class example

You can create Z Class to implement actions by copying any standard action class. For example  “CL_CRM_IC_SCRIPT_ACT_BRANCH2”.

Any Z class should contain implementation of method from Interface:



The method IF_CRM_IC_SCRIPT_ACTION~EXECUTE should contain your logic for the action.  Finally, export your result with parameter “out_params”


    IF lv_open_balance IS NOT INITIAL.

      MOVE ‘age’ TO ls_line-key_p.    <– ID of your Action Output Parameter

      MOVE lv_open_balance TO ls_line-value_p.

      APPEND ls_line          TO out_params.

      CLEAR  ls_line.




Tip you can download and upload your script definition by pressing the following button


upload script.png


Script can be transported only if the status is “Inactive”. The customizing transport will move:

  • Questions
  • Buttons
  • Navigation

Please take in account that “Action” must be created manually in each system and using the same ID than source system.

The transport will not include the action definition, but the script navigation transport will include the action in the navigation (however not the action ID or content).

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Another great Blog from you Lyda.

      Very useful. Many Thanks


      Author's profile photo Former Member
      Former Member

      Brilliant!.. Very nice & helpful comprehensive article.



      Author's profile photo Former Member
      Former Member

      Hi Lyda,

      Thanks for the fantastic article re Interactive Scripting.

      In your experience, is it possible to raise a popup from within the ->EXECUTE method of an Action?

      I have a requirement to popup a decision table, containing a selection of relevant Statuses, based on the Status Profile of the type of Transaction linked to the Call List, currently being processed.

      Thanks so much.


      Author's profile photo G Reddy
      G Reddy

      Hi Lyda Osorio,

      Good Day.

      Wonderfull blog for Scripts. Please can i ask you a question.

      As we have configured Marketing attributes for BP and we did the same settings what you have described in the above.

      But still when we come to that question. We are not able to see any Atrribute Set which we have attached in Dynamic Mapping.

      Please can you tell us what we are missing or do we have any java code to be lodaed into SAP.



      Author's profile photo Elsy Mena
      Elsy Mena

      Hi Prabhanjan,

      When you add your dynamic answer you will see (as Lydia explained) a yellow line with text "Marketing Attribute will be displayed here when executing the script" if you double click on that, you will see in the lower part of the screen another tab, next to "Question Properties" and it is labeled "Dynamic content Parameters", there you can select the Attribute set by selecting on a drop down and the attribute name.

      In this way you assign the Marketing attributes to your dynamic answer. Only available information from the system will be displayed there.

      Hope this will help you to solve the issue.

      Best regards,


      Author's profile photo Erand Baci
      Erand Baci


      Very interesting blog. Thank you,


      I have one more question related script fulfillment. I have create a script and everything looks in first run.

      When i try for second time, it shows the script name but it is not opening. It shows just hierarchy and not questions. We should do log off - log in to run it again. Also End button is not solving the issue.

      Do you have any idea how to solve it?



      Thank you

      Issue with scripting

      Author's profile photo Erand Baci
      Erand Baci

      Do not consider.

      Issue was solved after implementing  SAP Note: 1887935 - Script not correctly launched after End Interact


      Thank you!