ABAPCLASS_LOCAL_FRIENDS - CLASS LOCAL FRIENDS

BAL Application Log Documentation   General Data in Customer Master  
This documentation is copyright by SAP AG.

CLASS - LOCAL FRIENDS

Syntax

CLASS class DEFINITION
            LOCAL FRIENDS class1 class2 ...
                          intf1  intf2  ... .


Effect

This statement makes the local classes and interfaces class1 class2 ... and intf1 intf2 ... of aclass poolfriends of its global class class. At least one class or one interface must be specified.

This statement does not introduce a declaration part. It must not be ended with an ENDCLASS statement.

Notes

  • Declaring local classes of a class pool as friends of the global class is necessary, in particular, for localtest classes that test the private components of the global class.
  • This variant of the statement CLASS can also only be listed in the context described under CLASS.
  • If you want the local classes and interfaces class1 class2 ... and intf1 intf2 ... to be able to access theprivate andprotectedcomponents of the global class class in their declaration part, you must first specify the statementin the class pool, while also declaring the local classes and interfaces using CLASS- and INTERFACE - DEFERRED.







Fill RESBD Structure from EBP Component Structure   CPI1466 during Backup  
This documentation is copyright by SAP AG.


Length: 2407 Date: 20120518 Time: 204718     triton ( 74 ms )