SAP NEWS-710-OTHERS



Get Example source ABAP code based on a different SAP table
  



Further Changes in 7.0, EhP2
ITOC

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN 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.



Latest notes:

The new formats are supported on dynpros and in Screen Painter from EhP2.
ABAP_HINT_END

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN 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.



Latest notes:

This change was previously introduced in ABAP_RELEASE 7.0, SP16.
ABAP_HINT_END

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN 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.



Latest notes:

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.
ABAP_HINT_END

ABAP_MODIFICATION_NN Dynamic Programming

The documented class CL_ABAP_DYN_PRG provides a set of static methods that support error-free, secure dynamic programming.

ABAP_MODIFICATION_NN File Interface

The documented class CL_FS_PATH provides a set of static methods that support the error-free, secure handling of file names.