Trigger asynchronous checks

Trigger asynchronous checks

To trigger asynchronous checks, use the class /AEB/CL_CMP_PB_CR_ASYNC_CHK_BC and the according method:

Business ObjectMethod
Accounting documentCR_AD_ASYNC_CHECK
ApplicantCR_AP_ASYNC_CHECK
BankCR_BNK_ASYNC_CHECK
Business PartnerCR_BP_ASYNC_CHECK
CRM Business PartnerCR_CBP_ASYNC_CHECK
CRM Business TransactionCR_CBT_ASYNC_CHECK
CustomerCR_CUS_ASYNC_CHECK
DeliveryCR_DLV_ASYNC_CHECK
EmployeeCR_EM_ASYNC_CHECK
Material DocumentCR_MD_ASYNC_CHECK
Purchasing DocumentCR_PD_ASYNC_CHECK
Sales DocumentCR_SDOC_ASYNC_CHECK
Service NotificationCR_SN_ASYNC_CHECK
Service OrderCR_SO_ASYNC_CHECK
VendorCR_VDR_ASYNC_CHECK
REPORT z_cr_async_check.
PARAMETERS:
   prt_no TYPE bu_partner.
DATA:
  async_chk TYPE REF TO /aeb/cl_cmp_pb_cr_async_chk_bc.

async_chk = /aeb/cl_cmp_pb_cr_async_chk_bc=>new( ).
TRY.
    async_chk->cr_bp_async_check( prt_no ).
  CATCH /aeb/cx_01_pb_missing_parm_sc.
*   do error handling
ENDTRY.