It caused something missed in table BSP_WD_EXT_HIST, we can use below example code to add the related entry to it to solve the error.
DATA: lwa_bsp_wd_ext_hist TYPE bsp_wd_ext_hist.
lwa_bsp_wd_ext_hist-bsp_appl = 'ZBT311H_CSR'.
lwa_bsp_wd_ext_hist-viewname = 'DetailsOVEF'.
lwa_bsp_wd_ext_hist-src_appl = 'BT311H_CSR'.
lwa_bsp_wd_ext_hist-src_controller = 'CL_BT311H_C_DETAILSOVEF_IMPL'.
lwa_bsp_wd_ext_hist-src_context = 'CL_BT311H_C_DETAILSOVEF_CTXT'.
lwa_bsp_wd_ext_hist-cust_controller = 'ZL_BT311H_C_DETAILSOVEF_IMPL'.
lwa_bsp_wd_ext_hist-cust_context = 'ZL_BT311H_C_DETAILSOVEF_CTXT'.
INSERT bsp_wd_ext_hist FROM lwa_bsp_wd_ext_hist.
IF sy-subrc = 0.
WRITE 'OK'.
ELSE.
WRITE 'ER' .
ENDIF.
Note of every field:
- BSP_APPL
- SRC_CONTROLLER &CUST_CONTROLLER
-
SRC_CONTEXT &CUST_CONTEXT