Change is object to check (EC - after data collection)

The BAdI '/AEB/CMP_EC_CHK_01' enables you to review all export controls data and decide on wether or not the business object should be checked. This BAdI will run for every business object. If the domestic check is enabled, it will already receive the result of it. This BAdI is executed after data collection and will receive all collected data as a read-only object.

Here is an example on how to exclude EU-only documents that have no export classifications:

    IF ch_is_to_check <> 'X'.
      RETURN.
    ENDIF.

    LOOP AT im_value->get_items( ) INTO DATA(item).

      LOOP AT item->get_product_classifications( ) INTO DATA(pcls).
        IF pcls->get_classification_identcode( ) = 'ClassificationAusfuhrliste'.
          IF pcls->get_classification_number( ) <> 'NOT_LISTED'.
            RETURN.
          ENDIF.
        ENDIF.
        IF pcls->get_classification_identcode( ) = 'CLASSIFICATION_US_EAR_CCL'.
          IF pcls->get_classification_number( ) <> 'NOT_LISTED'.
            RETURN.
          ENDIF.
        ENDIF.
      ENDLOOP.

      LOOP AT item->get_partners( ) INTO DATA(partner).
        IF NOT is_in_eu( partner ).
          RETURN.
        ENDIF.
      ENDLOOP.

    ENDLOOP.
    ch_is_to_check = '-'.

Note that "is_in_eu()" method must be defined elsewhere.