Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPWRITE_TO_SHORTREF - WRITE TO SHORTREF

ABAPWRITE_TO_SHORTREF - WRITE TO SHORTREF

General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

WRITE TO

Reference



Syntax

WRITE {source|(source_name)} TO destination
  [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].


Effect

Formats the content of a data object specified either statically as source or dynamically in source_name and writes it to the variable destination.

Additions

  • EXPONENT exp
    Determines the exponent for the output of data objects of the data type f.
  • NO-GROUPING
    Suppresses the thousands separators in the output of data objects of the data types (b, s), i, int8, or p or p.
  • NO-SIGN
    Suppresses the sign in the output of data objects of the data types i, p, or f.
  • NO-ZERO
    Replaces zeros with blanks.
  • CURRENCY cur
    Defines currency-related decimal places for the output of data objects of the data types i or p by using a currency key cur from the database table TCURX.
  • DECIMALS dec
    Sets the decimal places contained in the output of data objects of the data types i, p, f, or of time stamps, to dec.
  • ROUND scale
    Multiplies the value of a data object of the data type p by 10**(-scale) before the output.
  • UNIT unit
    Cuts off decimal places which have the value 0 and are outside the precision of a measurement unit unit from the database table T006 when formatting data objects of the data type p.





CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 5799 Date: 20230206 Time: 093434     sap01-206 ( 60 ms )