..3 Printing program
Create a report Z_HELLO_WORLD and paste below code into it:
REPORT z_hello_world .
* declare and fill context
DATA gs_context TYPE lvc_s_tabl .
gs_context-value = 'Hello world!' .
* call the form
CALL FUNCTION 'ZXLWB_CALLFORM'
EXPORTING
iv_formname = 'HELLO_WORLD'
iv_context_ref = gs_context
EXCEPTIONS
OTHERS = 2 .
IF sy-subrc NE 0 .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 .
ENDIF .
Result of the printing program execution
Result of the printing program execution