... [DEFAULT val]
[LOWER CASE]
[MATCHCODE OBJECT search_help]
[MEMORY ID pid]
[VALUE CHECK] ... .
1. ... DEFAULT val
2. ... LOWER CASE
3. ... MATCHCODE OBJECT search_help
4. ... MEMORY ID pid
5. ... VALUE CHECK
Using these additions, you can define a start value that allows lowercase lettering, a search help, a
SPA/GPA parameter, or execution of a check against a value list.
... DEFAULT val
This addition creates a start value for the content of the parameter para. The start value val can either be specified as a literal or as a data object already defined.
If the data type of the specified start value does not match the data type of the declaration, it is converted according to the conversion rules. Without the addition DEFAULT, the initial value that suits the data type is used as a start value.
There are two times when a start value can be passed to the parameter:
In both cases, all the parameters are supplied with their start values, irrespective of the selection
screen on which they are defined. If a parameter is not initial at the time of the data transfer, the start value will not be passed.
The respective input field on the selection screen is only filled with the start value if the value for para is no longer changed before the selection screen is transmitted. The system displays exactly that value that the parameter has at the end of processing of the event AT SELECTION-SCREEN OUTPUT.
... LOWER CASE
This addition prevents the content of character-type fields from being converted to uppercase letters when the input field on the selection screen is transported to the data object para in the program and vice versa.
The addition LOWER CASE cannot be used together with
the additions AS CHECKBOX
or RADIOBUTTON.
... MATCHCODE OBJECT search_help
This addition links the input field of the parameter to a search help search_help from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.
The addition MATCHCODE OBJECT cannot be used together
with the additions AS CHECKBOX
or RADIOBUTTON.
The predecessors of search helps in the ABAP Dictionary were socalled matchcode objects. This is why
you have the name MATCHCODE OBJECT for this addition. Matchcode objects that have not yet been replaced by search helps continue to be supported by this addition.
Linking the parameter p_carrid with a suitable search help. When you choose the input help on the selection screen, a list with the names of the airline carriers is displayed. If a name is selected, the corresponding abbreviation is placed in the input field.
PARAMETERS p_carrid TYPE s_carr_id
MATCHCODE OBJECT demo_f4_de.
... MEMORY ID pid
This addition links the input field of the parameter with a SPA/GPA parameter in the SAP Memory. The name of the SPA/GPA parameter must be specified directly and with a maximum of 20 characters
The input.field is filled - when the selection screen is called - with the current value of the SAP/GPA
parameter in the SAP memory, provided the data object para
is initial after processing of the event
AT SELECTION-SCREEN OUTPUT. Otherwise, the value of para
is displayed. If there is a user action on the selection screen, the content of the input field is assigned
to the SPA/GPA parameter in the SAP memory. If no SPA/GPA parameter exists for the specified name, it will be created.
The addition DEFAULT overrides the addition MEMORY ID.
The parameter p_prog is linked with the SPA/GPA parameter RID, which, in turn, is linked with the input field for the program name in the screens of the ABAP Workbench. Accordingly, the input field of the parameter is filled with the name of the program last processed.
PARAMETERS p_prog TYPE sy-repid MEMORY ID rid.
... VALUE CHECK
This addition can only be specified if the type of parameter is defined through a reference to a data type from the ABAP Dictionary.
If you have a user action on the selection screen, the current content of the input field is checked against the fixed values possibly defined in the domain of the data type. If the data type is a component of a foreign key table, a check against the check table is executed. If the check is not successful, an error message is displayed in the status line of the selection screen. If the program was called through SUBMIT without display of the selection screen, it is displayed in case of error.
The addition VALUE CHECK cannot be used together with
the additions AS CHECKBOX,
RADIOBUTTON, or NO-DISPLAY.
The check against a check table is executed even if the input field is empty. Therefore, it is recommended to use the addition OBLIGATORY at the same time.