当前位置:网站首页>Demo: the test interface receives duplicate data and creates documents in a short time
Demo: the test interface receives duplicate data and creates documents in a short time
2022-07-28 01:07:00 【51CTO】
Group number :775662808
Please provide City - modular - nickname , Such as : Beijing -ABAP- Forest wood .
All groups are strictly managed , Strictly prohibit all foreign links 、 Recruitment 、 Advertising and other junk information !
If you find this dry article useful , Please help reprint 、 Share with more people , thank you ~
scene :
Third party call SAP Interface , Create a document , If the other party for some reason in a very short time , Repeated data is used to call sap Interface , How to prevent duplicate document creation .
I talked about this problem in the group before , I threw the problem out , We just talk casually .
The scene is actually quite simple , Is also common , How to do that , It's nothing more than locking , Add logs or something .
I also did a simple test .
The scenario is to push data to sap, establish PO.
Created first log surface :


Then built a lock


Then I wrote two functions , They are lock and log surface .
The first function
Just testing the code .
The second function , Just no lock , Take care of yourself Lock Unlock Just comment it out ,
(LS_LOG-WEB_ORDER = 'LM00002').

Execution results :

The first function has no duplicate data .
There is a problem with the second function :

That's probably what it means .
Just a simple test , If there is anything wrong, you are welcome to criticize and correct . thank you !~
边栏推荐
- Six relationships of UML class diagram, the best way to learn and understand
- Network device hard core technology insider firewall and security gateway (10)
- 网络设备硬核技术内幕 防火墙与安全网关篇 (九) 虚拟化神器 (下)
- Interface test practical project 02: read interface test documents and practice
- 接口测试实战项目02:读懂接口测试文档,上手操练
- UML类图的六大关系,最佳学习理解方式
- 0-1 knapsack problem
- 自用图床搭建教程
- Valued at $36billion! SpaceX, which is about to launch its first manned launch, raised $346million
- 估值360亿美元!即将进行首次载人发射的SpaceX筹资3.46亿美元
猜你喜欢

红队大杀器 Behinder_v4.0(冰蝎4.0)

C语言程序设计 | 单身狗题目讲解

Syntaxerror resolved: positive argument follows keyword argument

《KMP复习 + AC自动机》前传
![Jerry Zhi doesn't play hidden audio files [article]](/img/09/b9fb293151f56d2a93f8a1c8f3d0dc.png)
Jerry Zhi doesn't play hidden audio files [article]

Basic operations of MySQL database (3) --- Based on fields
![Leetcode:1997. the first day after visiting all rooms [jump DP]](/img/6e/52d5871a11d1b27e673112a8245b28.png)
Leetcode:1997. the first day after visiting all rooms [jump DP]

Storage of deep planing data in memory

Recurrence of fastjson historical vulnerabilities

Multithreading & high concurrency (the latest in the whole network: interview questions + map + Notes) the interviewer is calm
随机推荐
Array related knowledge
Database daily question --- day 22: last login
Jerry's Bluetooth can only link back to the last device [article]
Operators in MySQL
[original] [crawler series] briefly get the most popular topics, related topics and description information
Postman下载、使用教程
uni-app进阶之样式框架/生产环境
至少42名员工感染新冠病毒!诺基亚宣布关闭印度电信设备工厂
Cross desktop web container evolution
At least 42 employees are infected with novel coronavirus! Nokia announces closure of telecom equipment plant in India
网络设备硬核技术内幕 防火墙与安全网关篇 (八) 虚拟化神器 (中)
网络设备硬核技术内幕 防火墙与安全网关篇 (九) 虚拟化神器 (下)
Oracle错误: ORA-01722 无效数字
Jerry Zhi has problems in real-time adjustment of sound change effect in magic sound mode [chapter]
Data visualization - White Snake 2: black snake robbery (3)
如果某个表有近千万数据,CRUD比较慢,如何优化
红队大杀器 Behinder_v4.0(冰蝎4.0)
110. SAP UI5 FileUploader 控件深入介绍 - 为什么需要一个隐藏的 iframe
Border width border fillet border color
Jerry caused other messages to accumulate in the message pool [article]