Welcome đź‘‹

This is my new blog built with Hugo and PaperMod.

My first post

Welcome 👋 This is my first post built with Hugo and the PaperMod theme. As a demo I’m showing how ABAP code can be rendered with syntax highlighting. Classic “Hello World” in ABAP 1 2 3 4 REPORT z_hello_world. START-OF-SELECTION. WRITE: / 'Hello, World!'. ABAP Objects: a class with a method 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 CLASS zcl_greeter DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. METHODS: constructor IMPORTING iv_name TYPE string, greet RETURNING VALUE(rv_text) TYPE string. PRIVATE SECTION. DATA mv_name TYPE string. ENDCLASS. CLASS zcl_greeter IMPLEMENTATION. METHOD constructor. mv_name = iv_name. ENDMETHOD. METHOD greet. rv_text = |Hello { mv_name }, welcome to the blog!|. ENDMETHOD. ENDCLASS. Modern ABAP syntax (7.40+) 1 2 3 4 5 6 7 8 DATA(lt_numbers) = VALUE int4_table( ( 1 ) ( 2 ) ( 3 ) ( 4 ) ( 5 ) ). DATA(lv_sum) = REDUCE i( INIT x = 0 FOR n IN lt_numbers NEXT x = x + n ). cl_demo_output=>display( |Sum: { lv_sum }| ). SELECT with inline declaration 1 2 3 4 5 6 7 8 9 SELECT carrid, connid, cityfrom, cityto FROM spfli INTO TABLE @DATA(lt_flights) WHERE carrid = 'LH'. LOOP AT lt_flights INTO DATA(ls_flight). WRITE: / ls_flight-carrid, ls_flight-connid, ls_flight-cityfrom, '->', ls_flight-cityto. ENDLOOP. Exception handling 1 2 3 4 5 6 TRY. DATA(lo_greeter) = NEW zcl_greeter( iv_name = 'Mario' ). WRITE / lo_greeter->greet( ). CATCH cx_root INTO DATA(lx_root). WRITE / lx_root->get_text( ). ENDTRY. Happy blogging!

June 5, 2026 Â· 2 min Â· 253 words Â· Mario Kernich