S/4HANA服务订单Service Order的批量创建-阿里云开发者社区

开发者社区> python技术君> 正文

S/4HANA服务订单Service Order的批量创建

简介: S/4HANA服务订单Service Order的批量创建
+关注继续查看

我工作中接到一个任务,需要在性能测试系统里创建一亿条服务订单service order来做性能测试。


这么大规模的数据量,当然只能用代码来创建了。


本文提到的所有ABAP代码,我均已上传到我的Github上了:


https://github.com/i042416/KnowlegeRepository/tree/master/ABAP/S4



This document provides guide about how to generate a large volume of service order ( confirmation ) and service request test data in S4CRM performance test system for performance measurement purpose.


The data is generated based on a series of ABAP reports.




ZCRMS4_CREATE_MATERIAL_OPT



Pattern for material number: prefix for generated material ID. Take above screenshot for example, once executed, you will get a series of materials with the following material ID:




Pattern for short text: for example if you specify “Android phone S”, you will get the following description pattern:




ZCRMS4_HOME_CREATE_BPS



ZCRMS4_HOME_CREATE_ORDER_LOOP

This report is used to create a large number of Service Orders.




Order description: define the description pattern of created service orders.


For example, the input parameter in the above screenshot will lead to the created orders with the following description patterns:




Max number of created items: if you specify an integer N, a random number among 1 ~ N of line items will be created for each Service order.


Max item quantity value: if you specify an integer N, the line item quantity value will be assigned with a random integer among 1 ~ N.




Material Number Range:


Let’s say you have first created 10000 materials with ID prefix as “ANDROID”, which means now in table MARA you already have 10000 records with ID starting from ANDROID00000000001 and ending with ANDROID00000010000.


Now in this report, you specify Material Number Range as ANDROID00000000001 and ANDROID00000010000, so that when this report create a new line item, it will randomly pick up a material among this material repository and assigned to created line item.


Sold-to party range: behaves the same as Material Number Range. You have to first create a series of business partners and write down their ID prefix, for example you create 100 BP with prefix BCP. Then maintain Sold-to party range as BCP0000000001 to BCP0000000100. This report will randomly pick one among the 100 BP and assigned it as the Sold to party in Service Order’s header level.


ZCRMS4_HOME_CREATE_SR_LOOP

Used for Service Request mass data generation. The input parameter behaves the same as ZCRMS4_HOME_CREATE_ORDER_LOOP.


During the period that those reports are running, you can use report ZTABLESIZE to check the number of created records currently. This report will list table name, table record number and table storage size accordingly.




You are supposed to run these reports via background job to avoid TIME OUT issue.


Please do not occupy ALL Background work processors so that the normal system operation like TR import are not hindered.



版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
SAP CRM如何创建支持Web Service的PDF模板
SAP CRM如何创建支持Web Service的PDF模板
14 0
阿里云服务器怎么设置密码?怎么停机?怎么重启服务器?
如果在创建实例时没有设置密码,或者密码丢失,您可以在控制台上重新设置实例的登录密码。本文仅描述如何在 ECS 管理控制台上修改实例登录密码。
10084 0
SAP Spartacus 基于行项目的订单取消功能(order cancel)实现
SAP Spartacus 基于行项目的订单取消功能(order cancel)实现
4 0
VS2010创建WebService程序
        选择 .NET 4.0,可以先选择 ASP.NET Empty Web Site/Application 模板,建立空的 Web 网站或项目,在添加新建窗口中,你依然会发现 Web Service 这个项模板。         如下图: 小注:         新建WebService要在解决方案下新建项目!
591 0
阿里云服务器如何登录?阿里云服务器的三种登录方法
购买阿里云ECS云服务器后如何登录?场景不同,阿里云优惠总结大概有三种登录方式: 登录到ECS云服务器控制台 在ECS云服务器控制台用户可以更改密码、更换系.
13889 0
SAP S/4HANA生产订单创建之后,为什么会自动执行action
SAP S/4HANA生产订单创建之后,为什么会自动执行action
5 0
1853
文章
0
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载