Start of Content Area

Process documentation Implementing Your Own Process Type  Locate the document in its SAP Library structure

Purpose

If you:

·        write your own application log to be displayed in the Process tab strip for the Logs for a Process in the Process Chain Maintenance, or:

·        if you have implemented your own monitor, or

·        have implemented a Customizing interface that goes beyond the parameters of a program, or

·        want to access preceding chain processes in your program, or

·        want to take errors when executing your program in modeling into consideration or you know multiple end states (see process type Decisions)

we recommend that you implement your own process type.

Prerequisites

You need to have a good knowledge of the ABAP object-orientated language enhancement - ABAP Objects.

Process Flow

...

       1.      In the menu, choose Tools ABAP Workbench Development Class Builder

Note

You can find additional information about the Class Builder in the SAP Web Application Server documentation under BC - ABAP Workbench ABAP Workbench: Tools Class Builder.

The following IF_RSPC_* interfaces are available:

Interface IF_RSPC_*

Description

Method is called in ...

Implementation is ....

EXECUTE

Executes the process.

This interface is the main interface used to implement your own process type and is the only process chain maintenance interface that is obligatory.

Runtime

Required

GET_INFO

Transfers the information for a process to the successor.

Maintenance and runtime

Optional

GET_LOG

Returns the log for a variant and an instance to the process chain maintenance, either as a title and text or as a list of messages

Runtime and log view

Optional

MAINTAIN

Enables process variants to be created and maintained in the process chain maintenance. It also determines the header information for a variant so that it can be displayed in the process chain maintenance.

Maintenance

Alternative or in addition to interface IF_RSPC_GET_VARIANT

GET_VARIANT

Provides value help (F4) for variants.

You need to implement this interface and/or interface IF_RSPC_MAINTAIN, in order to be able to add process variants to a chain.

Maintenance

Alternative or in addition to interface IF_RSPC_MAINTAIN

GET_DEFAULT_CHAIN

Gives the default chain for a process. You can suggest, for each variant to be scheduled, which additional process it would make sense to schedule before or after the process.

Maintenance

Optional

CHECK

Consistency check at scheduling time for the process/chain

You can carry out a check to determine:

·        the consistency of a process

·        the dependency on other processes in the same chain and

·        dependencies on other processes in other chains.

·        authorizations of current user to execute process

Maintenance

Optional

GET_STATUS

We recommend you implement this interface for distributed processes. Distributed processes, such as the loading process, are characterized as having different work processes involved in specific tasks.

The interface allows you to request the status of the instance in the process chain maintenance(for distributed processes when follow-on events are not sent). Therefore, the system can also recognize terminations even for distributed processes.

Runtime and log view

Optional

CALL_MONITOR

Calls up the process monitor from the log view in the process chain maintenance.

Log view

Optional

TRANSPORT

Returns TLOGO entry.

Maintenance

Optional

CONTEXTMENU

Adds some functions to the context menu for a process in the process chain maintenance.

Maintenance

Optional

VARIABLES

Declares if the process can process runtime variables

Runtime

Optional

SIMULATION

Passes on and displays the simulation results

Runtime

Optional

MULTI_EVENT

Declares the possible end states of the process

Maintenance and runtime

Optional

You can find further documentation for the IF_RSPC_* interfaces under Tools ABAP Workbench Development Class Builder . For Object Type, enter the interface name and choose display. You can access the documentation in the subsequent screen using the Jump menu.

       2.      Enter the process type under Settings Maintain Process Types (RSPROCESSTYPES view) in process chain maintenance..

Then choose Edit New Entries, allocate the technical name, short and long description for the process type, enter the name of your class and choose ABAP-OO Class as the Object Type. Make the other settings for your process type and save the entry.

       3.      If using the service class CL_RSPC_APPL_LOG, enter your process type as a sub-object to the log object BW_PROCESS.

Result

Your process is available in the process chain maintenance of the process category you assigned.

 

End of Content Area