当前位置:网站首页>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 !~
边栏推荐
- LED, nixie tube and key of single chip microcomputer
- [300 opencv routines] 241. Scale invariant feature transformation (SIFT)
- Interesting Huffman tree
- [introduction to C language] zzulioj 1026-1030
- Network device hard core technology insider firewall and security gateway (VIII) virtualization artifact (middle)
- LeetCode - 寻找两个正序数组的中位数
- Srv6 debut
- 立即报名 | 云原生技术交流 Meetup 广州站已开启,8 月 6 号与你相遇!
- What is the org relationship mitigation strategy of Microsoft edge browser tracking prevention
- R language uses ggplot2 visualization: use ggpattern package to add custom stripe patterns, shadows, stripes, or other patterns or textures to the grouped bar graph
猜你喜欢

多线程及多线程程序的编写

深度刨析数据在内存中的存储
![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]
![[CruiseControl]Build Result JSP](/img/80/11c2b539c217ecd6ba55668d3e71e9.png)
[CruiseControl]Build Result JSP

Data visualization - White Snake 2: black snake robbery (3)

Interface test practical project 02: read interface test documents and practice

Basic operations of MySQL database (I) --- Based on Database

UML类图的六大关系,最佳学习理解方式

Multithreading and multithreaded programming

【OpenCV 例程 300篇】241. 尺度不变特征变换(SIFT)
随机推荐
Jointly create a new chapter in cultural tourism | xinqidian signs a strategic cooperation agreement with Guohua cultural tourism
Recurrence of fastjson historical vulnerabilities
分支和循环语句题目练习
Interesting Huffman tree
LeetCode - 寻找两个正序数组的中位数
Thesis appreciation [iclr18] a neural language model combining syntax and vocabulary learning
论文赏析[ICLR18]联合句法和词汇学习的神经语言模型
芯片行业常用英文术语最详细总结(图文快速掌握)
scrollview、tableView嵌套解决方案
0-1背包问题
From the second floor to the third floor
At least 42 employees are infected with novel coronavirus! Nokia announces closure of telecom equipment plant in India
程序员成长第三十篇:你真的懂反馈吗?
Oracle错误: ORA-01722 无效数字
Array related knowledge
Point divide and conquer analysis
Network equipment hard core technology insider firewall and security gateway chapter (VI) security double repair under the law
C语言程序设计 | 单身狗题目讲解
Operators in MySQL
Postman下载、使用教程