Input Parameters
The PARAMETERS statement is a declarative language element for establishing internal
fields within the report. The difference between the PARAMETERS and DATA statements is
that fields declared using PARAMETERS are presented for input on the selection screen at
runtime when the program is being executed.
- When you use the PARAMETERS statement, you can use the TYPE and LIKE additions as you
would when using the DATA statement.
- As you would use VALUE with DATA statements to assign an initial value, you can use the
addition DEFAULT with the PARAMETERS statement to set a default value for the field. This
value can be a literal, a constant, or a system field which takes its value from the
system when the report is processed (e.g. SY-DATUM).
- Use the OBLIGATORY addition to cause a question mark (?) to initially appear in the
PARAMETERS textbox. This forces a user to enter a value on the selection screen. However,
R/3 requires the user to delete the question mark when entering the desired, required
value.
 |
Authored by: Roger Hayen
© Central Michigan Univeristy and/or © SAP America, Inc.
All rights reserved. |