Entering content frameFunction documentation Definition of Method Parameters Locate the document in its SAP Library structure

Use

You define method parameters for a method under the following circumstances:

A method often only has import parameters and no export parameters. Possible reasons for this are:

Caution

The reference to the object to be processed in the method is not a parameter (nor a result) of the method. The caller of the method (the workflow system in this case) actually passes the reference to the object to be processed to the method internally or retrieves it after execution of the method. (The latter is the case if the object was created by the method.)

It is quite possible for a method not to require any method parameters.

For more information, see Result, Export Parameters and Workflow Definition.

Integration

The following data type references exist for method parameters:

Activities

To define method parameters for a method, position the cursor on the method and select Parameters.

Note

You must ensure that the export parameters of a method do not have the same names as the result of the method.

When you create a method parameter whose data type reference can be specified by an ABAP Dictionary table field, you should always have the system propose the relevant table fields. Answer YES to the question Create with ABAP Dictionary field proposals?

If you want to create a method parameter with an object type reference, you cannot use field proposals. Answer the question with NO.

Note

You cannot change or delete parameters inherited with their method from a supertype or an interface.

If the method was inherited from an interface, you cannot flag import parameters created for this method as mandatory.

For more information, see Programming Methods with Parameters.

Leaving content frame