In a method implementation, you can convert inline declarations of one or several local variables into explicit declarations.
The local variable is declared inline using the statement addition DATA(temp).
This functionality is provided in SAP NetWeaver Release 7.40 SP05 and higher.
Example
Before Execution | After Execution |
---|---|
To copy the source code example, click here Code Example Before Execution |
|
The inline declaration DATA(temp) is removed and an explicit declaration is inserted in the method implementation. | In the corresponding method, the new local variables (temp and engine) are generated and replace the undeclared inline variable. The type (i and string) are derived from the usage of the variable. |