In ABAP Objects, and as of release 7.0 also outside of classes, the following statements cause an error message:
DATA: off TYPE i, len TYPE i.
WRITE /off(len) f.
Correct syntax:
DATA: off TYPE i, len TYPE i.
WRITE AT /off(len) f.
Reason:
Simplification of the syntax for offset/length specifications in output statements.
Since the dynamic offset/length specification is only possible without the character for a new line
(/) following AT, AT must always be used.
In ABAP Objects, the following statements cause an error message:
DETAIL.
SUMMARY.
INPUT.
Correct syntax:
FORMAT INTENSIFIED OFF.
FORMAT INTENSIFIED ON.
FORMAT INPUT ON.
Cause:
These statements are now superfluous because they have been replaced by additions to the FORMAT and WRITE statements.
In ABAP Objects, the following statements cause an error message:
MAXIMUM f.
MINIMUM f.
SUMMING f.
...
WRITE f.
...
WRITE: / max_f, min_f, sum_f.
Correct syntax:
DATA: max_f like f,
min_f like f,
sum_f like f.
...
WRITE f.
IF max_f < f.
max_f = f.
ENDIF.
IF min_f > f.
min_f = f.
ENDIF.
sum_f = sum_f + f.
...
WRITE: / max_f, min_f, sum_f.
Cause:
These statements create the internal global variables max_f,
min_f and sum_f. To make programs more readable, you should stopy using these statements and write explicit code instead.
In ABAP Objects , the following statement causes an error message,,,,,,,,:
MARK.
Cause:
The MARK statement is an R/2 system statement and is undocumented. You should use the documented statements for interactive list processing instead.
In ABAP Objects, the following statement causes an error message:
NEW-PAGE PRINT ON NO DIALOG.
Correct syntax:
DATA pripar TYPE pri_params,
arcpar TYPE arc_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING out_parameters = pripar
out_archive_parameters = arcpar
...
NEW-PAGE PRINT ON NO DIALOG
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar.
Cause:
Printing without a user dialog and without consistent print parameters leads to errors in the printout.
Error message in ABAP objects for:
SUBMIT report TO SAP-SPOOL WITHOUT SPOOL DYNPRO.
Correct syntax:
DATA pripar TYPE pri_params,
arcpar TYPE arc_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING out_parameters = pripar
out_archive_parameters = arcpar
...
SUBMIT report TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS pripar
ARCHIVE PARAMETERS arcpar.
Reason:
Printint without dialog and without consistent parameters results in an incorrect printout.
In ABAP Objects, the following statement causes an error message:
NEW-SECTION.
Correct syntax:
NEW-PAGE PRINT ON NEW-SECTION.
Cause:
You can reset the page counter using the NEW-PAGE PRINT ON statement. The NEW-SECTION statement is superfluous.
In ABAP Objects, the following statements acause an error message:
CONSTANTS f.
HIDE: '...', f.
Correct syntax:
DATA: f1, f2.
HIDE: f1, f2.
Cause:
Interactive list events cause the fields hidden by the HIDE command to be overwritten with values in the HIDE area, which means that they must be changeable.n.