如何使用代码创建SAP CRM Service Request subject

In my project I need to create new service request by code with its subject data filled.

As a result I need to figure out how to fill the required data by calling function module CRM_ORDER_MAINTAIN. I share my code here in case you have the same requirement.


如何使用代码创建SAP CRM Service Request subject


First of all you should already have a well-maintained Categorization Schema in Service Operation Work center:


如何使用代码创建SAP CRM Service Request subject


In Application Areas assignment block, this schema must have corresponding combination of Transaction type and Catalog Category maintained.


如何使用代码创建SAP CRM Service Request subject


In my example above, “Service Request / Defect Locations/Object Parts” just represents the following customizing:


如何使用代码创建SAP CRM Service Request subject



Just specify the schema ID and category ID you would like to fill for the created Service Request:


如何使用代码创建SAP CRM Service Request subject



We only need to specify a single category ID in our code, and all its parent node in the schema tree could automatically be filled as expected by WebUI.


如何使用代码创建SAP CRM Service Request subject


Source code:

如何使用代码创建SAP CRM Service Request subject如何使用代码创建SAP CRM Service Request subject如何使用代码创建SAP CRM Service Request subject

上一篇:小白学习MySQL - MySQL会不会受到“高水位”的影响?


下一篇:菜鸟学Linux 第024篇笔记 压缩,tar,read,script