Functions with values as inputs and outputs and in/out (CHANGING) parameters
Function F IMPORTING VALUE(NAME) TYPE C VALUE(DEPARTMENT) TYPE C EXPORTING VALUE(Years_of_service) TYPE I VALUE(Age) TYPE I CHANGING DATEFIELD TYPE D
This function would appear as a table called "F" with the following schema:
|
Field |
Type |
|---|---|
|
Name |
String |
|
Department |
String |
|
Years_of_service |
Integer |
|
Age |
Integer |
|
DateField_In |
Date |
|
DateField_Out |
Date |
When working with the Name, Department, and DateField_In fields, you must either link them to another table, or specify them in a record selection formula.
For example, if table "T" contains departments that are over budget, you can link {T.Department} to {F.Department} and have a record selection formula that specifies {F.Name} = "Richard" and DateField = Date(1999,04,14). This formula will get the years of service, age, and start date of all people named Richard in departments over budget on April 14, 1999.