Create the BAdI implementation
If you are going to use Gamification, a specific BAdI implementation is required.
In transaction SE18, open BAdI /SCWM/EX_CORE_CO_POST.

Create a new implemenation:

Add the following ABAP to the implementation class and activate the class and BAdI implementation:
CLASS zewm_cl_im_core_co_post DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES /scwm/if_ex_core_co_post .
INTERFACES if_badi_interface .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZEWM_CL_IM_CORE_CO_POST IMPLEMENTATION.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZEWM_CL_IM_CORE_CO_POST->/SCWM/IF_EX_CORE_CO_POST~POST
* +-------------------------------------------------------------------------------------------------+
* | [--->] IV_LGNUM TYPE /SCWM/LGNUM
* | [--->] IT_LTAP_VB TYPE /SCWM/TT_LTAP_VB
* | [--->] IT_ORDIM_C TYPE /SCWM/TT_ORDIM_C
* | [--->] IT_ORDIM_O_UPD TYPE /SCWM/TT_ORDIM_O_INT
* | [--->] IT_ORDIM_H TYPE /SCWM/TT_ORDIM_H
* | [--->] IT_ORDIM_E TYPE /SCWM/TT_ORDIM_E
* | [--->] IT_ORDIM_CS TYPE /SCWM/TT_ORDIM_CS
* | [--->] IT_ORDIM_HS TYPE /SCWM/TT_ORDIM_HS
* +--------------------------------------------------------------------------------------</SIGNATURE>
METHOD /scwm/if_ex_core_co_post~post.
CALL METHOD /tctm/ewm_srv_game_metric_qrfc=>register
EXPORTING
iv_warehouse = iv_lgnum
it_conf_tasks = it_ordim_c.
ENDMETHOD.
ENDCLASS.
Last updated
Was this helpful?