ABAP Keyword Documentation → ABAP - Quick Reference
WRITE - Quick reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
WRITE {[AT] [/][pos][(len||*)]} dobj 
  [UNDER other_dobj] 
  [NO-GAP] 
  [LEFT-JUSTIFIED|CENTERED|RIGHT-JUSTIFIED] 
  [EXPONENT exp] 
  [NO-GROUPING] 
  [NO-SIGN] 
  [NO-ZERO] 
  [CURRENCY cur] 
  [DECIMALS dec] 
  [ROUND scale] 
  [UNIT unit] 
  [ENVIRONMENT TIME FORMAT] 
  [TIME ZONE tz] 
  [STYLE stl] 
  [USING {{NO EDIT MASK}|{EDIT MASK mask}}] 
  [DD/MM/YY|MM/DD/YY|DD/MM/YYYY|MM/DD/YYYY|DDMMYY|MMDDYY|YYMMDD] 
  [COLOR { { [=] { { COL_BACKGROUND 
                   | {1 | COL_HEADING } 
                   | {2 | COL_NORMAL } 
                   | {3 | COL_TOTAL } 
                   | {4 | COL_KEY } 
                   | {5 | COL_POSITIVE } 
                   | {6 | COL_NEGATIVE } 
                   | {7 | COL_GROUP } } [ON] } 
                 | OFF} 
         | {= col} }] 
  [INTENSIFIED [ {ON|OFF} | {= flag} ]] 
  [INVERSE     [ {ON|OFF} | {= flag} ]] 
  [HOTSPOT     [ {ON|OFF} | {= flag} ]] 
  [INPUT       [ {ON|OFF} | {= flag} ]] 
  [FRAMES      [ {ON|OFF} | {= flag} ]] 
  [RESET] 
  { [AS CHECKBOX] 
  | [AS ICON] 
  | [AS SYMBOL] 
  | [AS LINE] } 
  [QUICKINFO info]. 
Effect
Formats the content of the data object dobj and writes it to the current list.  
Additions
- 
[AT] [/][pos][(len|*|**)]
 Specifies the line feed/, the horizontal positionpos, and the lengthlen|*|**of the output.
- 
UNDER other_dobj
 Positions the output in the current line at the position where the data objectother_dobjwas in the output of a previousWRITEstatement.
- 
NO-GAP
 Positions the list cursor directly after the output and not in the next but one position of the list buffer.
- 
LEFT-JUSTIFIED, ...,YYMMDD
 As in the statementWRITE TObut with reference to the output area of the list.
- 
COLOR,INTENSIFIED,INVERSE,HOTSPOT,INPUT,FRAMES,RESET
 As in the statementFORMATbut with reference to the current output.
- 
AS CHECKBOX
 Produces a one-character checkbox which is ready for input.
- 
AS ICON
 Produces an icon ifdobjcontains the corresponding internal representation.
- 
AS SYMBOL
 Produces a symbol ifdobjcontains the corresponding internal representation.
- 
AS LINE
 Produces a line element ifdobjcontains the corresponding internal representation.
- 
QUICKINFO info
 Assigns a tooltip to the output.
- 
Information about other additions can be found in WRITE TO.