Skip to content

Latest commit

 

History

History
32 lines (15 loc) · 2.32 KB

implementing-the-business-logic-99dcde1.md

File metadata and controls

32 lines (15 loc) · 2.32 KB

Implementing the Business Logic

Business logic is ABAP coding that you want to be run within an application job.

Usually, business logic also defines the data type and some properties of the selection fields that you get on the selection screen before you schedule an application job. In this context, the business logic is implemented in an ABAP class. The following development steps require a user with the development role.

To implement the business logic, create an ABAP class that implements a certain interface:

  • Create an ABAP class with interface IF_APJ_RT_RUN. Here, the selection fields are defined as public attributes of the class. See Creating an ABAP Class with Interface IF_APJ_RT_RUN for more information. It's recommended to use this interface for all new developments.

  • You can still create an ABAP class with interfaces IF_APJ_DT_EXEC_OBJECT and IF_APJ_RT_EXEC_OBJECT. Here, the selection fields are defined in method GET_PARAMETERS of the interface IF_APJ_DT_EXEC_OBJECT. See Creating an ABAP Class with Interfaces IF_APJ_DT_EXEC_OBJECT and IF_APJ_RT_EXEC_OBJECT for more information.

    Note:

    Note that this is a legacy interface. Don't use it for new developments. If you use this interface, you only have limited options during the editing of the job catalog entry.

The ABAP class mentioned here is considered the main class of each application job. This class needs to be part of a customer-defined software component (not ZLOCAL) to be able to transport the class into subsequent systems.

Related Information

Creating the Job Catalog Entry

Creating the Job Template

Setting up the Authorizations

Application Logs