Show TOC

Extracting and Converting VariablesLocate this document in the navigation structure

Context

In the source code editor, you have the following options for extracting variables:

Function Description Available since SAP NetWeaver 7.3 EHP1 Available since SAP NetWeaver 7.4
Extracting Local Variables from Expressions Assigning the selected expression to a new local variable. The selected expression is replaced with the new local variable. SP14 SP05
Assigning a Statement to a New Variable Assigning the value of the selected statement to a new local variable or attribute. SP11 SP05
Converting Locals to Class Members Converting a local constant, local variable, or local type to a class member such as a member constant, attribute, or member type of the current class. SP11 SP05
Converting Local Variables to Parameters In a certain method, converting an existing local variable to a new parameter. SP11 SP05
Declaring Variables from Usage Creating a declaration for an attribute within a method. SP11 SP05
Declaring Inline Variables Explicitly In the method signature, converting an existing inline declaration of a local variable to an explicit declaration. - SP05
Using Similar Variables You have following options for using similar variables: - SP08
Deleting Unused Variables Supported deletion of unused data declarations and variables. SP06 SP02