TYPES char TYPE c LENGTH 25.
DATA char_table TYPE STANDARD TABLE OF char WITH EMPTY KEY.
char_table = VALUE #( ( 'ABAP_DEV' ) ( 'abap-environment' )
( 'abap and fiori' ) ( 'DevDay' ) ).
SELECT FROM @char_table AS value
FIELDS *
WHERE table_line LIKE '%abap%'
INTO TABLE @DATA(selected_values).
out->write( lines( selected_values ) ).
How can an application log be saved even if an error occurs during RAP runtime (FAILED entries) and a ROLLBACK occurs?
What is output in the console?
DATA color TYPE c LENGTH 4.
color = 'GREEN'.
DATA(result) = SWITCH #( color
WHEN 'BLUE' THEN 1
WHEN 'GREEN' THEN 2
WHEN 'RED' THEN 3
ELSE THROW cx_sy_itab_line_not_found( ) ).
out->write( result ).
What is the name of the text field for the current field?