REPORT zdemo08.
DATA:gv_s1 TYPE char10 VALUE '我的',
gv_i1 TYPE i.
*计算字符串字符长度
CALL METHOD cl_abap_list_utilities=>dynamic_output_length
EXPORTING
field = gv_s1
RECEIVING
len = gv_i1.
WRITE / gv_i1.
*计算字符串的个数
gv_i1 = strlen( gv_s1 ).
WRITE / gv_i1.
阅读(1074) | 评论(0) | 转发(0) |