Function documentationDefinition of Method Parameters (BOR) Locate this document in the navigation structure

 

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

  • When the method requires other input values apart from the object reference, which are not requested in dialog.

  • When the method returns parameters apart from the object reference.

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

  • A synchronous method returns its result via a result parameter.

  • The method is asynchronous

    Caution 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).

    End of the caution.

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:

  • ABAP Dictionary reference

  • Object type reference

Activities

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

Note Note

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

End of the note.

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?

Answer YES to the question Create with ABAP Dictionary field proposals? Answer the question with NO.

Note 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.

End of the note.

For more information, see Programming Methods with Parameters.