What are the optimizations of SAP Cloud for Customer ABSL?
This article shows you what the optimization of SAP Cloud for Customer ABSL is, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
This is the pre-optimized code, and you can see that ServiceRequest.Retrieve is called in the foreach loop.
How to optimize:
Actually, there is a hint in PDI. Click "after ServiceRequest." Trigger the code completion function, you can see that the Retrieve method has three overloads, which means that the input parameters of Retrieve are different, and the ABAP methods generated by background compilation are also different.
How to optimize:
It's the same way of thinking:
Declare a container idCollection with line type ID in line 29, then add the id that requires retrieve to the container in turn according to the business logic, and finally pass a container in line 39.
It can be compared to the 41-line retrieve, where the retrieve passes in a single row record. If the passed-in parameter is a container, the compiled ABAP code executes RETRIEVE_MULTIPLE_LINES instead of executing retrieve_single in the loop.
The above content is what is the optimization of SAP Cloud for Customer ABSL? have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.