Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 1.24 KB

README.md

File metadata and controls

40 lines (21 loc) · 1.24 KB

Exercise 1: Selection Screen - Hello World

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.

Unit 1 - Create Report

Create a new report program called Z_XX_HELLO_WORLD.

You can create the report in eclipse by right-clicking your desired package and selecting New -> Other ABAP Repository Object -> ABAP Program.

Unit 2 - Build Selection Screen

Add input field to selection screen

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 write statement to display the text

Add the following code to the report after the START-OF-SELECTION statement.

    WRITE: 'Hello', p_name.

Unit 3 - Display Hello World

Excecute the report by pressing the Excecute Buttonor F8. You should see the text from the input field displayed with Hello in front of it.