AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.0 and its EhPs → News for ABAP Release 7.0, EhP2 →
Further Changes in 7.0, EhP2
Lossless Assignments
The new addition EXACT of the
statements MOVE and MOVE-CORRESPONDING enables
lossless assignments; if data is lost or values are invalid, an exception is raised.
New RTTC Methods
The new GET method of classes CL_ABAP_STRUCTDESCR,
CL_ABAP_TABLEDESCR,
CL_ABAP_REFDESCR,
plus GET_BY_NAME of class CL_ABAP_REFDESCR
return the type description object specified by the input parameters. A new type description object is created or an existing one is used again.
New API for Creating UUIDs
The methods of the class CL_SYSTEM_UUID create
UUIDs in different formats, such
as 16-digit byte-like UUIDs, 22-digit character-like UUIDs with uppercase and lowercase letters, and
32-digit character-like UUIDs in hexadecimal. They also make it possible to convert the UUIDs from one type to another.
New Time Formats
While number and date formats for output have always been formatted according to the formatting setting of the language environment, until now only the 24-hour format has been available for time output.
From SP14 in ABAP release 7.0, four additional 12 hour formats have been introduced. These formats can be selected in the fixed values in the user master record or stored specifically for each country in a new column TIMEFM in the T005X database table.
If enough space is available, a time is displayed on the dynpro in 12-hour format when the relevant settings are made in the user master record.
In ABAP, new formats can be used by means of the new ENVIRONMENT TIME FORMAT addition of the WRITE TO and WRITE statements as well as by using the environment and COUNTRY formatting options for embedded expressions in string templates.
The new class CL_ABAP_TIMEFM contains methods for converting between external and internal times, as well as some auxiliary methods.
The predefined time formats of the statements WRITE TO and WRITE cannot be affected automatically due to downward compatibility.
Hint
The new formats are supported on dynpros and in
Screen Painter from EhP2.
String Constants in PXA
From ABAP release 7.0, EhP2, strings declared as constants are saved globally in
PXA in the same way as all constants. This can significantly reduce the amount of memory required.
Class for Generation Limits
From ABAP release 7.0, EhP2, the static method GET_VALUES of class CL_ABAP_GEN_LIMITS returns the generation limits for an ABAP program.
Hint
This change was previously introduced in ABAP release 7.0, SP16.
Splitter Control on Dynpros
From ABAP release 7.0, EhP2, splitter controls can be used on classic dynpros. A splitter control enables two subscreens
to be arranged above and below or beside one another in a way that allows the border between the subscreen areas to be adjusted.
Extended Jump Distance
Prior to ABAP release 7.0, EhP2, errors could occur in ABAP programs in which jump distances were too large. This could also occur, for example, if processing blocks were exited with RETURN, since this statement jumps to the end of the block. From ABAP release 7.0, EhP2, the jump distance is essentially unlimited.
Hint
The unlimited jump distance should not be intentionally exploited. It enables errors to prevented in
large procedures or control blocks, but the maximum recommended number of statements to be used in a procedure must always be adhered to as outlined in the programming guidelines.
Dynamic Programming
The documented class CL_ABAP_DYN_PRG provides a set of static methods that support error-free, secure dynamic programming.
File Interface
The documented class CL_FS_PATH provides a set of static methods that support the error-free, secure handling of file names.