SAP NEWS-710-OTHERS

Get Example source ABAP code based on a different SAP table
  



Further Changes in 7.0, EhP2

1 Lossless Assignments 2 New RTTC Methods 3 New API for Generating UUIDs 4 New Time Formats 5 String Constants in PXA 6 Class for Generation Limits 7 Splitter Control on Dynpros 8 Extended Jump Distance 9 Dynamic Programming 10 File Interface
INTHINT Controllable Transactions, i.e. the
INTHINT remote control of dialog transactions that run darkly, is
INTHINT provided by the interfaces and classes of package SRCTP.
INTHINT Program RSRCTPTEST shows an example for the usage.
INTHINT This functionality is not yet released.

ABAP_MODIFICATION_1 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_2 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 generated or an existing one is used again.

ABAP_MODIFICATION_3 New API for Generating UUIDs


The methods of class CL_SYSTEM_UUID generate UUIDs in various formats, such as 16-character byte-like UUIDs, 22-character character-like UUIDs with upper and lower case letters, and 32-character character-like UUIDs in hexadecimal format. They also permit UUIDs to be converted to one another.

ABAP_MODIFICATION_4 New Time Formats


While number and date formats for outputs 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 outputs.

From SP14 in 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 character 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 WRITE TO and WRITE statements cannot be influenced automatically due to downward compatibility.



Latest notes: The new formats are supported on
dynpros and in Screen Painter from EhP2.

ABAP_MODIFICATION_5 String Constants in PXA


From 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_6 Class for Generation Limits


From 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 Release 7.0,
SP16.

ABAP_MODIFICATION_7 Splitter Control on Dynpros


From 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_8 Extended Jump Distance


Prior to 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 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_MODIFICATION_9 Dynamic Programming


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

ABAP_MODIFICATION_10 File Interface


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