Ansicht
Dokumentation

ABENOO_OBS_CHARACTER_1 - OO OBS CHARACTER 1

ABENOO_OBS_CHARACTER_1 - OO OBS CHARACTER 1

ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

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.






TXBHW - Original Tax Base Amount in Local Currency   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1043 Date: 20240419 Time: 191404     sap01-206 ( 20 ms )