如何使用 SAP CRM Marketing Survey 创建一个市场问卷调查
![如何使用SAP CRM Marketing Survey创建一个市场问卷调查](https://static001.geekbang.org/infoq/02/02ea86ecec87cc6eca4bdfa6c645c755.jpeg)
使用事务码 CRM_SURVEY_SUITE 进行编辑。选中 Activities 这个应用类型,点击新建按钮:
![](https://static001.geekbang.org/infoq/d7/d7d454a5aa4919bd865b25ea9979cef2.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
双击 Survey 的根节点,点击编辑按钮维护 Suvey 的标题:
![](https://static001.geekbang.org/infoq/af/af3010b0429be479d8fa31468142dbca.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
Survey 的正文布局类型(Layout)我选择了列表 List:
![](https://static001.geekbang.org/infoq/33/33d467348c6c0d6f1cce8c82cc518f86.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
这个 List 包含了两个元素:
1. Are you able to program with ABAP?
2. Are you able to program with Java?
![](https://static001.geekbang.org/infoq/df/dfe0631b46fc1dc4deae53ac3b461050.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
客户怎样回答这个问题呢?我选择的是通过 Checkbox 的方式回答。
![](https://static001.geekbang.org/infoq/92/927c2d17cb32ee909034fd48e090001e.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
提交按钮采用 SAP 系统默认实现。最终生成的 Survey 模板如下图所示:
![](https://static001.geekbang.org/infoq/f7/f7570ce2723ff295ffd080b1b1c54382.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
下一步需要为这个新建的 Survey(调查问卷)创建一个外部可访问的 url。点击 Generate Url 按钮:
![](https://static001.geekbang.org/infoq/a2/a2e254c8e3708f104bb498b1a15c47d5.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
维护如下属性,点击 Generate URL 后,生成对应 URL。
![](https://static001.geekbang.org/infoq/cd/cdb7bbe37bb0c055851490b6e4db1f14.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
将该 url 发送给用户,就可以填写调查问卷了。
![](https://static001.geekbang.org/infoq/32/32107b86e8ac7b785e7cb5483ad6150f.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
看这个名为 Jerry's Programming Skill 的 survey,只有两个问题。
![](https://static001.geekbang.org/infoq/04/0488cc2cfcd6808e491b63acc38bca3d.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
以第一个问题 Are you able to work with ABAP?为例,使用菜单 Goto->Switch Between HTML <-> XML Display 显示该 Survey 的 XML 源代码:
![](https://static001.geekbang.org/infoq/85/85d9ac16d5b8d1f59a9e728b1ffc33cb.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
最核心的有三部分:
1. QuestionId: 问题编号 question1
对应如下区域:
![](https://static001.geekbang.org/infoq/31/3130ee6bbc9dd8fbcde37666aaed8e4a.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
2. AnswerId:问题回答的占位区域 - place holder, answer1_placeholder.
对应如下 name 属性的值:
![](https://static001.geekbang.org/infoq/b5/b5577e096f79f613f69fc64cb206ac08.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
3. Answer value:问题的具体回答,对应如下区域的 value 属性。
![](https://static001.geekbang.org/infoq/a2/a2b82053569d3ccea3ae77a4d6aef495.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
可以在 Goto->Expert Mode 里修改 XML 标签的属性:
![](https://static001.geekbang.org/infoq/0a/0a26e9e3545f35c5f63f7327320d0068.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
默认生成的 id 都为 GUID,可读性很差,可以在此处修改成可读性更好的 ID。
![](https://static001.geekbang.org/infoq/84/84378d8188ad59127191886980cb766c.jpeg?x-oss-process=image/resize,p_80/auto-orient,1)
版权声明: 本文为 InfoQ 作者【Jerry Wang】的原创文章。
原文链接:【http://xie.infoq.cn/article/40494040a670b5d61b00cc24e】。文章转载请联系作者。
评论