Ansicht
Dokumentation

ABENOO_OBS_PLUS_PAREN_1 - OO OBS PLUS PAREN 1

ABENOO_OBS_PLUS_PAREN_1 - OO OBS PLUS PAREN 1

Vendor Master (General Section)   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Incorrect Plus-Bracket Notation

In ABAP Objects and as of Release 7.0, even outside of classes, no emplty plus-bracket notations are allowed.

In ABAP Objects, the following statements cause an error message:

DATA: f1() TYPE ...,
      f2+  TYPE ...,
      f3   LIKE f1+().

SELECT SINGLE ... FROM +(f1) INTO (f2+off(), f3+(len)).

WRITE AT +(len) f3().

Correct syntax:

DATA: f1 TYPE ...,
      f2 TYPE ...,
      f3 LIKE f1.

SELECT SINGLE ... FROM (f1) INTO (f2+off, f3(len)).

WRITE AT (len) f3.

Cause:

You can only use the plus symbol for arithmetical operations and offset/length addressing. In the latter, the plus symbol without a subsequent offset value is superfluous. At present, the system ignores a single plus sign directly after a field name or directly before a parenthesis. This allows you to insert the plus symbol in places in which offset/length addressing. is not available - for example, before dynamic expressions or in data declarations where only length addressing is possible. The system also ignores empty parentheses after the plus sign, offset value, or field name.






PERFORM Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 1586 Date: 20240416 Time: 161755     sap01-206 ( 29 ms )