> For the complete documentation index, see [llms.txt](https://docs.theconfigteam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theconfigteam.com/prebilt-ewm/configuration-guide/configuring-prebilt-features/gamification/create-the-badi-implementation.md).

# 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.

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-86eeb47ca05b4b98d41b4529f3ed7462f6205ece%2Fimage%20(21).png?alt=media" alt=""><figcaption></figcaption></figure>

Create a new implemenation:

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fgit-blob-edf5fb2f22e2a4f8f0cc6550df453765a4c45fa6%2Fimage%20(22).png?alt=media" alt=""><figcaption></figcaption></figure>

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.
```

{% hint style="warning" %}
**Note**

An application log sub-object must be maintained for Gamification. In Transaction `SLG0` and under object `/SCWM/WME` create the sub-object entry `/TCTM/GAME_METRIC_UP`  as in the example below.
{% endhint %}

<figure><img src="https://1016750988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7lFTpSLijn44pippdL6u%2Fuploads%2Fp27DsItaq1iVBhJoF37E%2Fimage.png?alt=media&amp;token=a4ea5544-da09-4cb4-8e35-f5f49a4c10ff" alt=""><figcaption></figcaption></figure>

#### Gamification Installation

If you have **NOT** been provided with a BC Set, please complete the installation manually by following the   Manual Installation Steps.

If you have been provided with a BC Set, complete the installation by following the [BC Set Installation Steps](https://docs.theconfigteam.com/prebilt-ewm/~/revisions/VwqVq7OlKD0yzmL5jG1H/configuration-guide/configuring-prebilt-features/gamification/gamification-1).
