专栏首页Jerry的SAP技术分享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.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

原创声明,本文系作者授权云+社区发表,未经许可,不得转载。

如有侵权,请联系 yunjia_community@tencent.com 删除。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • 深入了解SAP note的技术细节

    Although I have been working on ABAP for several years, I am not well aware of t...

    Jerry Wang
  • SAP Hybris代码里随处可见的@Scope("tenant")是什么意思

    版权声明:本文为博主汪子熙原创文章,未经博主允许不得转载。 https://jerry.bl...

    Jerry Wang
  • ABAP开发的Github issue备份工具

    I personally prefer to use Github repository issue to manage my knowledge. For i...

    Jerry Wang
  • 过载惩罚下的最优负载均衡需求分配(CS CY)

    本文讲述到负载均衡需求分布(LBDD)的输入包括:(a)一组服务中心;(b)一套需求节点;(c)包含每对(需求节点、服务中心)分配成本的成本矩阵。此外,每个服务...

    啊瓜7706942
  • 策略渐变方法的操作员视图(CS AI)

    我们将策略梯度方法转换为两个运算符的重复应用:策略改进运算符 一世,它映射任何策略 π 更好的一个 一世π和投影运算符 P,它找到的最佳近似值 一世π在可实现的...

    刘子蔚
  • What is Dark Social & Dark Traffic?

    Google Analytics is supposed to speak the truth about website traffic. However, ...

    Spanz
  • 2017美国数学建模MCM A题(连续型)翻译 管理赞比西河

    The Kariba Dam on the Zambezi River is one of the larger dams in Africa. Its con...

    AI那点小事
  • vae 相关论文 表示学习 1

    05 Nov 2016 (modified: 18 Apr 2017)ICLR 2017 conference submissionReaders: Ever...

    用户1908973
  • 论文的短期科学影响力排名(CS DL)

    科学论文的发表速度不断提高,使得研究人员很难识别出目前对他们感兴趣的研究领域有影响的论文,因此,能够有效识别出高影响力论文的方法从过去开始就引起了极大的关注。在...

    Elva
  • pyspark-ml学习笔记:逻辑回归、GBDT、xgboost参数介绍

    逻辑回归、GBDT可以参考pyspark开发文档:http://spark.apache.org/docs/latest/api/python/pyspark....

    MachineLP

扫码关注云+社区

领取腾讯云代金券