Start of Content Area

Background documentation Differences in Routine Concepts  Locate the document in its SAP Library structure

The way in which routines can be implemented changes when the programming language for routines is converted from ABAP to ABAP objects.

The following table provides an overview of the special features regarding ABAP form routines for the update and transfer rules in comparison to the routines in the transformation.

Form Routine for Update/Transfer Rule

Routine for Transformation

Parameter COMM_STRUCTURE

SOURCE_FIELDS

Parameter ABORT <> 0

RAISE EXCEPTION TYPE CX_RSROUT_ABORT.

Parameter RETURNCODE <> 0

RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD (for key fields)

or

RAISE EXCEPTION TYPE CX_RSROUT_SKIP_VALUE (for non-key fields)

Subprograms are included in the global part of the routine using an INCLUDE

 

 

You cannot use INCLUDES.

You can convert these subprograms in the following ways:

1. Convert the subprograms into global, static methods.

2. Create a subroutine pool in the ABAP editor and execute these subprograms using PERFORM SUBROUTINE.

3. Define a function module that has the logic of the subprogram.

Function modules, methods or external subprograms can be called in the local part of the routine.

STATICS statement

The STATICS statement is not permitted in instance methods. Declared static attributes of the class can be used with CLASS DATA instead.

Addition OCCURS when the internal table is created

The OCCURS addition is not permitted.

You use the DATA statement to declare a standard table instead.

Internal table with header row

You cannot use an internal table with a header row. You create an explicit work area with the LINE OF addition of statements TYPES, DATA and so on to replace the header row.

Direct operations such as INSERT itab, APPEND itab on internal tables

You have to use a work area for statements of this type.

 

 

 

 

End of Content Area