01-ABAP基本数据类型
作者:互联网
REPORT Z4. *-----------------------------预定数据类型 DATA LV_C(10) TYPE C VALUE 'abcefg'. " 定义CHAR DATA LV_D TYPE D. " 定义时间 DATA LV_F TYPE F. " 定义浮点开型 DATA LV_I TYPE I. " 定义整数 DATA LV_N(10) TYPE N. DATA LV_P TYPE P DECIMALS 2. DATA LV_T TYPE T. lv_c = 'hello world...'. lv_d = sy-datum. lv_d = lv_d + 30. lv_f = '127.17'. lv_i = 1688. lv_n = 771541213. lv_p = '3.1415962'. lv_t = sy-uzeit. WRITE:/ 'LV_C:', LV_C. WRITE:/ 'LV_D:', LV_D. WRITE:/ 'LV_F:', LV_F. WRITE:/ 'LV_I:', LV_I. WRITE:/ 'LV_N:', LV_N. WRITE:/ 'LV_P:', LV_P. WRITE:/ 'LV_T:', LV_T.
标签:WRITE,lv,01,定义,TYPE,数据类型,LV,ABAP,DATA 来源: https://www.cnblogs.com/hua900822/p/16475985.html