Show TOC

Allowing Parameters to Accept Upper and Lower CaseLocate this document in the navigation structure

Use

To allow upper or lower case for character string parameters, you use the following syntax:

PARAMETERS p ...... LOWER CASE ......

If you do not use the LOWER CASE addition, all input values are automatically converted into upper case.

If you use the TYPE addition to refer to data types from the ABAP Dictionary, the parameter adopts all attributes of the Dictionary field. These attributes cannot be changed, and you cannot use the LOWER CASE addition. The possibility for entering either upper- or lower-case values must be defined in the ABAP Dictionary.

        
REPORT demo_sel_screen_param_lower_ca.
        
PARAMETERS: field1(10) TYPE c,
        
field2(10) TYPE c LOWER CASE.
        
WRITE: field1, field2.
         

Assume the following input values on the selection screen:

The output appears as follows:

        
GRÖßER kleiner
         

The contents of field1 are changed to upper case.