Implementation of Class ZUD_RK_BADI_KONF for BAdI Implementation
Program Blocks
Return of the name of the handler class (ZUD_RK_CONF) if the application name of the application handle has the value SAPTESTING.
ABAP Code for Method IF_EX_S_PCO_HANDLE_NOTIF~GET_CLASS_NAME
-
Create the following parameters for the method:
Parameter
Type
Data Type
Optional
Description
IS_APPL_HANDLE
Import
Type PCO_S_APPL_HANDLE
No
PCo: Data structure for application handle
EV_CLASS_NAME
Export
Type SEOCLSNAME
No
Name of the class that processes the notification
-
Assign the exception class CX_PCO_BS_INT (PCo Suite Integration: Exception Class).
-
Copy the following ABAP code to the method:
METHOD if_ex_s_pco_handle_notif~get_class_name. CONSTANTS: lc_appl_name_prodordcon TYPE pco_s_appl_handle-appl VALUE 'PRODORDCON', lc_class_name_zud_rk_conf TYPE seoclsname VALUE 'ZUD_RK_CONF'. CLEAR ev_class_name. IF is_appl_handle-appl = lc_appl_name_prodordcon. ev_class_name = lc_class_name_zud_rk_conf. ENDIF. ENDMETHOD.