In this excerise, you will create a selection screen with a single input field. When the report is executed, the text from the input field will be displayed with
Hello
in front of it.
Note
The XX
in the object names should be replaced with your identifier. E.g. your name or initials.
You can create the report in eclipse by right-clicking your desired package and selecting New
-> Other ABAP Repository Object
-> ABAP Program
.
Add the following code to the top of the report. Under the REPORT
statement.
PARAMETERS p_name TYPE string LOWER CASE.
The LOWER CASE
addition to the TYPE
statement will ensure that the input field is displayed case sensitive.
Add the following code to the report after the START-OF-SELECTION
statement.
WRITE: 'Hello', p_name.
Excecute the report by pressing the Excecute Button
or F8
. You should see the text from the input field displayed with Hello
in front of it.