Skip to main content

FORM Routine Basics

BeginnerModularization⏱ 10 min

Task

Create a FORM routine and call it from the main program to display a message.

Write Your ABAP Code

ABAP Editor
Loading...
📥 Sample Input & Output
Input Text:
Hello ABAP

Output:
Hello ABAP
💡 Hint

Define a FORM and call it using PERFORM.

✅ View Reference Solution
PERFORM display_text.

FORM display_text.
  WRITE lv_text.
ENDFORM.