Abap/4语法(2)

*&---------------------------------------------------------------------*
*& Report  Z_CPT3_3                                                    *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&                                                                     *
*&---------------------------------------------------------------------*

REPORT  Z_CPT3_3                                .
DATA: cType(10) TYPE C,
      numberType(10) TYPE N,
      timeType TYPE T,
      dateType TYPE D,
      intType TYPE I,
      floatType TYPE F,
      pType TYPE P decimals 2,
      xType TYPE X,
      stringType TYPE String,
      xStrType TYPE XString.


cType = 'char type'.
numberType = 123.
timeType = '170000'.
dateType = '20120405'.
intType = '123456'.
floatType = '123.456'.
pType = '123.456'.
xType = 'FF'.
stringType = 'string type'.
xStrType = 'a3ff'.

WRITE: / cType,
       / numberType,
       / timeType,
       / dateType,
       / intType,
       / floatType,
       / xType,
       / stringType,
       / xStrType.

你可能感兴趣的:(Abap/4语法(2))