Ansicht
Dokumentation
ABENSTRING_CONCATENATION_ABEXA - STRING CONCATENATION ABEXA
Fill RESBD Structure from EBP Component Structure CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
- Concatenating Strings
This example demonstrates how string concatenations can be optimized.
Source Code
Description
This example demonstrates the optimization of a string concatenation, if a string is lengthened on the right side by appending content during an assignment to a string. In this case, the strings are processed in a loop using a REDUCE expression.
- There is no optimization in the first REDUCE expression since an expression is appended to the string s.
- In the second REDUCE expression, the expression is assigned to a helper variable num using LET. This variable can be appended to s directly without an interim result needing to be produced.
Without optimization, the runtime increases quadratically with the number of iterations, which has a noticeable effect for large numbers n.
Addresses (Business Address Services) RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 1247 Date: 20240420 Time: 042420 sap01-206 ( 33 ms )