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的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2620803/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 為什麼S/4HANA的銷售訂單建立會觸發生產訂單的建立
- SAP S/4HANA銷售訂單建立時,會自動觸發生產訂單的建立
- 使用ABAP程式碼建立S/4HANA裡的Sales Order
- 為什麼S/4HANA的生產訂單建立後會自動release
- S/4HANA業務角色概覽之訂單到收款篇
- k8s Service 服務K8S
- SAP S/4HANA使用ABAP獲得生產訂單的狀態
- SAP S/4HANA OData Mock Service 介紹Mock
- SAP S4CRM 1811 服務訂單API介紹API
- SAP S/4HANA生產訂單的BAdI增強點之Initialize方法
- 訂單服務的設計思考
- SAP S/4HANA生產訂單建立時使用的工廠資料是從什麼地方帶出來的
- 使用nodejs呼叫C4C的Odata服務建立銷售訂單NodeJS
- 打通C/4HANA和S/4HANA的一個原型開發:智慧服務創新案例原型
- 用ABAP程式碼讀取S/4HANA生產訂單工序明細
- 如何使用FastReport.Service.dll建立Web服務ASTWeb
- 使用BAPISDORDER_GETDETAILEDLIST建立S/4HANA的Outbound DeliveryAPIAI
- SAP S/4HANA擴充套件欄位建立過程的單步除錯套件除錯
- 如何用程式碼填充S/4HANA銷售訂單行專案的數量欄位
- S/4HANA生產訂單的標準狀態和透明工廠原型狀態的對映原型
- S/4HANA生產訂單增強WORKORDER_UPDATE方法BEFORE_UPDATE引數分析
- 微服務從程式碼到k8s部署應有盡有系列(六、訂單服務)微服務K8S
- OData服務在SAP CRM,Cloud for Customer和S/4HANA上的實現比較Cloud
- 銀河麒麟系統如何建立rc-local.service服務?
- 使用SAP CDS view快速建立一個Fiori應用,管理Service OrderView
- go-zero學習之訂單rpc服務GoRPC
- EBS:OM Sales Order銷售訂單【Open Interface、Open API】API
- [MDP.NetCore] 使用AzureAD+服務主體,快速建立兩個服務之間的Service身分認證NetCore
- 使用SAP CRM中介軟體XIF(External Interface)一步步建立服務訂單
- 使用函式BAPISDORDER_GETDETAILEDLIST讀取S/4HANA中Sales Order行專案資料函式APIAI
- ansible批量管理服務 上
- SAPS/4HANA生產訂單的BAdI增強點之Initialize方法
- 服務網格 Service Mesh
- 如何使用API的方式消費SAP Commerce Cloud的訂單服務APICloud
- 如何使用 API 的方式消費 SAP Commerce Cloud 的訂單服務APICloud
- Laravel框架:通過自定義命令建立service服務層初體驗Laravel框架
- 使用 csv 匯入的方式在 SAP S/4HANA 裡建立 employee 資料
- SAP建立採購訂單流程