Show TOC

Background documentationAllowing Parameters to Accept Upper and Lower Case Locate this document in the navigation structure

 

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.

Syntax Syntax

  1. REPORT demo_sel_screen_param_lower_ca.
  2. PARAMETERS: field1(10) TYPE c,
  3.             field2(10) TYPE c LOWER CASE. 
  4. WRITE: field1, field2.
End of the source code.

Assume the following input values on the selection screen:

This graphic is explained in the accompanying text.

The output appears as follows:

Syntax Syntax

  1. GRÖßER      kleiner
End of the source code.

The contents of field1 are changed to upper case.