Ansicht
Dokumentation
ABENOO_OBS_PLUS_PAREN_2 - OO OBS PLUS PAREN 2
RFUMSV00 - Advance Return for Tax on Sales/Purchases Vendor Master (General Section)This documentation is copyright by SAP AG.
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.
CPI1466 during Backup CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 1586 Date: 20240427 Time: 011001 sap01-206 ( 36 ms )