Code: Alles auswählen.
mt_data = VALUE #( FOR svalue IN mt_setvalues
( subclass = svalue-subclass
setname = svalue-shortname
setbez = lt_settext[ setclass = svalue-setclass
subclass = svalue-subclass
setname = svalue-shortname
langu = sy-langu ]-descript
kostl = svalue-from
ltext = lt_cskt[ kostl = svalue-from ]-ltext
dir = SWITCH #( line_exists( lt_cskt[ kostl = svalue-from ] )
WHEN abap_true THEN 1
when abap_false Then 0
)
)
).
Code: Alles auswählen.
SWITCH #( VALUE #( lt_cskt[ kostl = svalue-from ] DEFAULT space )
WHEN space THEN 0
ELSE 1 ) ) ).
Code: Alles auswählen.
COND #(
WHEN line_exists( lt_cskt[ kost1 = svalue-from ] ) THEN 1
)
Code: Alles auswählen.
COND #(
WHEN line_exists( lt_cskt[ kost1 = svalue-from ] ) = abap_true THEN 1 )
Code: Alles auswählen.
COND #(
WHEN line_exists( lt_cskt[ kost1 = svalue-from ] ) THEN 1 )