Change the data for screening checks

You can adapt the data to be checked by Compliance Screening using one of the following BAdI:

BAdI nameBAdI description
/AEB/CMP_SALES_DC_04Exclude certain partners in sales doument from check
/AEB/CMP_SALES_DC_05Which partner no. (customer or vendor no) to use in sales documents
/AEB/CMP_DLV_DC_04Which partner no. (customer or vendor no) to use in delivery doc.
/AEB/CMP_SALES_DC_07Screening of a sales document: change data after standard filling
/AEB/CMP_DLV_DC_07Screening of a delivery: change data after standard filling
/AEB/CMP_PURCH_DC_03Screening of a purchase document: change data after standard filling
/AEB/CMP_CUSTOMER_05Screening of a customer: change data after standard filling
/AEB/CMP_DP_DESCR_01Determine the origin of an address
/AEB/CMP_DP_DESCR_02Determine the type of an address
/AEB/CMP_BUS_PRT_08Screening of a business partner: change data after standard filling

Screening checks for address IDs

This example implementation uses the "after standard filling" method of an BAdI to add an address ID. Compliance checks can be executed for supported kinds of address IDs, e.g. a passport number, a tax number, DUNS number, etc.

    DATA:
      address_ids TYPE /aeb/cmp_pb_address_id_dos,
      address_id  TYPE REF TO /aeb/if_cmp_pb_address_id_do.

    address_id = im_data_object_factory->new_cmp_pb_adress_id_do(
                   im_id_type  = 'PASSPORT_NO'
                   im_id_value = '7453987234' ).
    APPEND address_id TO address_ids.
    ch_doc_partners[ 1 ]-ids = address_ids.

For a list a valid ID types, look at https://trade-compliance.docs.developers.aeb.com/reference/screenaddresses-1


Open the SAP object from the match handling of Trade Compliance Management

The comment (info) field in the match handling of Trade Compliance Management supports markup. When users are working with that application, you can make use of that and include a direct link to the SAP business object in this field:

    DATA:
      parameters TYPE tihttpnvp,
      parameter  TYPE ihttpnvp,
      url        TYPE string.
    FIELD-SYMBOLS:
     <curr_partner> TYPE /aeb/cmp_pb_doc_partner_do.

    parameter-name = 'SalesOrder'.
    parameter-value = im_vbak-vbeln.
    APPEND parameter TO parameters.

    url = cl_lsapi_manager=>create_flp_url( parameters = parameters
                                            object = 'SalesOrder'
                                            action = 'display' ).

    LOOP AT ch_doc_partners ASSIGNING <curr_partner>.
      <curr_partner>-info = url.
    ENDLOOP.