sapdev logo background
sapdev logo sapdev logo
Comments

SAP OO OBS NON LOCAL 1 documentation, setup help and example usage



Return to SAP documentation index


INCLUDE
ARTICLE

Cannot Use NON-LOCAL Addition

You cannot use the NON-LOCAL addition to the DATA ,
STATICS , or CONSTANTS statements in ABAP Objects.

  • In ABAP Objects, the following statements cause a syntax error:


  • METHOD|FUNCTION|FORM ...
    DATA f TYPE ... NON-LOCAL.
    ...
    ENDMETHOD|ENDFUNCTION|ENDFORM.
  • Correct syntax:


  • DATA f TYPE ...

    METHOD|FUNCTION|FORM ...
    ...
    ENDMETHOD|ENDFUNCTION|ENDFORM.
  • Cause:

  • The undocumented addition NON-LOCAL changes the attributes of a class or the local data objects of a procedure
    into global data objects of the main program . However, global data objects can only be defined in the main program, by their very nature. In particular, class pools cannot contain global data objects; NON-LOCAL allows developers to get round this rule.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    OO_OBS_NODES_WA_1
    OO_OBS_NO_LENGTH_1




    comments powered by Disqus