In my previous blog Create Mass Products by code in S4HANA for Customer Management I mentioned that we have created a high volume of test data for performance measurement before S/4HANA for Customer Management is released. In that blog I explain how to create mass Products via ABAP code, and this blog is for Service document like Service Order and Service Request.
The source code of report could be found from my github.
An example of report input:
See a subset of created Service Orders below:
The created service order contains a random number of products with random amount of quantity:
For Sales Organization and Service Organization, I read all available one in current system and assign them to each order randomly as well.
The order creation is achieved by CRM_ORDER_MAINTAIN and CRM_ORDER_SAVE whose usage is exactly the same as in SAP CRM:
For Service Request creation(source code here), I have performed a little enhancement compared with Service Order creation: an additional parameter "Schema ID" could be specified: