Show TOC

Creating a New Class Implementation for Scenario Count ItemsLocate this document in the navigation structure

If you want to retrieve the task count from an alternative (external) source, you need to implement an interface in a new class.

To create a new class implementation, proceed as follows:

  1. In your SAP system, start transaction SE24.

  2. In the Object Type field, enter the object name, for example, ZCL_IMPLEMENTATION.

  3. Choose Create. The Object Type screen is displayed.

  4. Select the Class radio button and press continue. The Create Class screen is displayed.

  5. In the Description field, enter the relevant description for the class and choose Save. The Create Object Directory Entry screen is displayed.

  6. Select the relevant package name and choose Save. The Class Builder: Change Class screen is displayed.

  7. Select the Interfaces tab.

  8. In the Interface field, enter /IWWRK/IF_TGW_SCENARIO.

  9. Choose Save.

  10. Select the Methods tab.

  11. Double-click the method displayed.

  12. Enter the relevant code.

  13. Choose Save and activate all the newly created objects.

Note

The method interface consists of a list of tasks. The output consists of a list of tasks and their respective count. You must ensure that the relevant data (according to the input) is retrieved and assigned to the output.