How to make local variables available for all meth...
Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
Just type or paste the definitions of a local variable into the definition part of the private section of the current class.
In SAP NetWeaver 7.40 or higher, you can run the quick fix Convert Local Variable to Attribute or Convert Local Type to Class Type on the definition of the local variable or type.