You select a field flight_date with type DATS in the field list of a CDS view.
Which of the following expressions returns the 2-digit month from the field?
(Select 2 correct answers)
A DATS field is stored as YYYYMMDD.
Option A: substring( flight_date, 5, 2 ) Extracts characters 5--6 correct month.
Option B: right( left( flight_date, 6 ), 2 ) Takes first 6 chars YYYYMM, then last 2 correct month.
Option C: Wrong, extracts last 2 chars of MMDD, results in day not month.
Option D: Wrong, starts at 4 gives YM instead of MM.
Study Guide Reference: ABAP CDS Development Guide -- String Functions in CDS.
Christoper
2 months agoEura
2 months agoDoug
3 months agoRolf
3 months agoMing
3 months agoYvonne
3 months agoBecky
3 months agoLatrice
4 months agoMarilynn
4 months agoPrecious
4 months agoVannessa
4 months agoKindra
4 months agoGearldine
5 months agoGlory
5 months agoJess
5 months agoTuyet
5 months ago