SAP OO OBS WRITE AT 1

Get Example source ABAP code based on a different SAP table
  


ABAP Code Snippet
ARTICLE

Incorrect Dynamic Position Definition
Dynamic position definitions are only allowed for WRITE or ULINE following the AT addition.

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.