ABAP OO Class Methods

GET_VIOLATIONS SAP Method - Return Threshold Value Violations







Below is documentation, parameters and attributes of ABAP Method GET_VIOLATIONS within SAP class IF_EVE_VIOLATIONS_AGGR_OBJECT. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name IF_EVE_VIOLATIONS_AGGR_OBJECT into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

IF_EVE_VIOLATIONS_AGGR_OBJECT

Method Name

GET_VIOLATIONS

Method Type

Instance Method:   This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.







Returning Parameters:


RR_VIOLATIONS " Interface: Collection of Threshold Value Violations TYPE REF TO IF_EVE_THLD_VIOLATIONS

Exceptions:



Example ABAP coding


DATA:
ld_RR_VIOLATIONS TYPE REF TO IF_EVE_THLD_VIOLATIONS.


DATA: lo_OBJECT TYPE REF TO IF_EVE_VIOLATIONS_AGGR_OBJECT .
CALL METHOD lo_OBJECT->GET_VIOLATIONS(
RECEIVING
RR_VIOLATIONS = ld_RR_VIOLATIONS ).

"Alternate coding for Method Call with returning parameter



ld_RR_VIOLATIONS = lo_OBJECT->GET_VIOLATIONS().


ld_RR_VIOLATIONS = lo_OBJECT->GET_VIOLATIONS().