This blog will explains you the concept of Survey in BSP pages. As we know the survey contains questionnaires which in turns linked with activities. In this blog we will look into the following concepts:

  • Survey Determination
  • Create Survey in BSP pages

Let us start with some overview of Survey before starting the core concepts.

What is survey in activity?

The Survey will contains list of questionnaires which will be saved against that activity.

How to see the activity survey?

Here I have taken the Appointment which holds the survey like below,

Open the Activity in CRMD_ORDER, you can see the questionnaires of the survey.

1.PNG

How to do configuration for the survey?

In the CRM_SURVEY_SUITE (TX code), Here you can design the survey according to your requirement.

2.1.PNG

How to get the survey details for the Appointment?

In the CRM_ORDER_READ, you can get the ET_SURVEY table.

3.PNG

The above information are just the overview about the survey, now we will see the core concepts:

Survey Determination:

In activity we can have multiple survey linked to it. We should know which one is active.

We have survey determination table: CRMC_SVY_DET & also

We have survey determination FM: ‘CRM_SURVEY_SEL_M_DET_FOR_TYPE’

Here you can pass the OBJECT TYPE and active Flag to get the list of active survey ids.

4.PNG

Creation of Survey with Appointment in BSP pages:

In crm_survey_suite we have done the configuration, SAP will generate the XML based on our configuration, we will get the XML from SAP and just render it in BSP pages.

Agenda:

  • Create the appointment
  • Create the survey
  • Map the survey
  • Show it in BSP pages.

Create the guid.

5.PNG

Get the Presentation from the SAP configuration.

Create the Survey object

6.PNG

Get the Presentation from SAP in format of XML.

7.PNG

Perform the Conversion

8.PNG

Show the Presentation in BSP page.

9.PNG

Event

10.PNG

Test Page:

11.PNG

On Click the SAVE button- We will send the Field Values to the Backend CRM and save the Appointment with Survey.

12.PNG

CRM logic to create the Appointment with Survey:

Guid Create:

13.PNG

Perform the Order maintain:

14.PNG

Generate the Survey answer string:

15.PNG

Generate the Value XML:

16.PNG

Link the survey to the Appointment:

17.PNG

Save the changes

18.PNG

Commit the work in Database

19.PNG

I have saved Appointment:1805 in BSP page, Same thing we can able to see in WEB UI also. Hence our Survey is working fine

20.PNG

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply