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)
Answer(s): A,B
A DATS field is stored as YYYYMMDD.Option A: substring( flight_date, 5, 2 ) Extracts characters 56 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
ABAP CDS Development Guide String Functions in CDS.
Which of the following pre-defined ABAP data types is a complete data type?
Answer(s): A
p (packed number) is a complete type, as it includes decimal places and precision definition.d (date), c (character), n (numeric text) are incomplete types; they require length specification.Study Guide
ABAP Keyword Documentation Predefined ABAP Types.
Setting a field to read-only in which object would make the field read-only in all applications of the RAP model?
Answer(s): B
Behavior Definition (BDEF) is where read-only, mandatory, and transactional rules are enforced across all RAP applications.Projection view restricts fields per app, not globally.Metadata extension UI annotations only.Service definition defines exposure, not behavior.Therefore, setting field read-only in the behavior definition enforces it globally across all RAP BO usages.Study Guide
RAP Development Guide Behavior Definitions and Field Control.
What can be translated?(Select 3 correct answers)
Answer(s): B,D,E
In ABAP Cloud, translation is supported for:Data element texts (short, medium, long descriptions).Message class texts (used in MESSAGE statements).Text symbols (defined in programs).Not translatable:String variables runtime values, no translation.Text literals hard-coded, not translatable via translation tools.Study Guide
ABAP Documentation Text Elements and Translation in ABAP Cloud.
Which function call produces the string 'LORE_IPSUM_FACTUM'?
from_mixed converts a mixed-case string into uppercase with a chosen separator between words.Given input 'LorelpsumFactum', the function splits at uppercase letters, uppercases the parts, and joins them with _.Output: LORE_IPSUM_FACTUM.condense only removes extra spaces, to_upper only changes case, and to_mixed does the reverse of from_mixed.Study Guide
ABAP Keyword Documentation String Functions (from_mixed, to_mixed).
Post your Comments and Discuss SAP C_ABAPD_2507 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the C_ABAPD_2507 content, but please register or login to continue.