SAP CRM Survey 调查问卷的模型设计原理解析

看这个名为 Jerry's Programming Skill 的 survey,只有两个问题。

以第一个问题 Are you able to work with ABAP?为例,使用菜单 Goto->Switch Between HTML <-> XML Display 显示该 Survey 的 XML 源代码:

最核心的有三部分:
1. QuestionId: 问题编号 question1
对应如下区域:

2. AnswerId:问题回答的占位区域 - place holder, answer1_placeholder.
对应如下 name 属性的值:

3. Answer value:问题的具体回答,对应如下区域的 value 属性。

可以在 Goto->Expert Mode 里修改 XML 标签的属性:

默认生成的 id 都为 GUID,可读性很差,可以在此处修改成可读性更好的 ID。

CRM
比如我们想看 Quantity 这个字段到底是绑在哪个模型上,选中该字段按 F2:

就能知道是绑在 Context node BTADMINI 的 QUANTITY 字段上。

C4C
同理,使用 debugMode=true 进入调试模式,按住 Ctrl 对该字段点左键。

这就是该 quantity 字段的绑定路径。点击“Get CTs“:

说明这个字段是一个 extension field,通过 C4C 的 change transaction 添加到 UI 上。
如何将 C4C Service Request 中的 summary 和其他附件同步到 ERP 的 Billing Request 去?
C4C 里将 Service Request 称为 Work Ticket。

比如现在我的 Service Request 有两个行项目,只有第一个需要同步到 ERP 去。但是第二个行项目对于客户检查 Invoice 来说起到重要作用,因此我们想把这个行项目也同步到 ERP 去。

解决方案
点工具栏上的 Add Summary 按钮,生成一个 PDF form:


这个 PDF form 出现在 Attachment 标签页里:

一旦 Service Request release 到 ERP 后,会生成对应的 Billing Request。C4C 的 Service Request PDF form 也出现在 ERP 的 Billing request 里。

版权声明: 本文为 InfoQ 作者【Jerry Wang】的原创文章。
原文链接:【http://xie.infoq.cn/article/c817f0c58bdd64ced0840d78c】。文章转载请联系作者。
评论