Skip to Content
Author's profile photo Wolfgang Woehrle

How to make local variables available for all methods within an ABAP class?

You have two possibilities to make this happen:

  1. Just type or paste the definitions of a local variable into the definition part of the private section of the current class.
  2. 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.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.