Ansicht
Dokumentation

ABENABAP_OBJECTS_DIFF_CHARACTER - ABAP OBJECTS DIFF CHARACTER

ABENABAP_OBJECTS_DIFF_CHARACTER - ABAP OBJECTS DIFF CHARACTER

BAL_S_LOG - Application Log: Log header data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Syntax Revisions in Processing Character Strings

Use Only Character-Type Fields When Processing Strings

When processing characters strings and, as of release 7.0, outside of classes, you can only use character-type fields (data types c, d, n, string, t and, in non- Unicode programs, x and xstring also).

In ABAP Objects, the following syntax causes an error message:

DATA int TYPE i.
SHIFT int BY 3 PLACES.

Correct syntax:

DATA int(4) TYPE c.
SHIFT int BY 3 PLACES.

Reason:

The statements for character string processing treat their operands as character-like irrespective of their actual type, which may lead to undefined results in connection with fields that are not character-like.






ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 1106 Date: 20240419 Time: 215243     sap01-206 ( 24 ms )