计算字符串长度,中文俩字符,数字…

data: lv_str type string,
      lv_len type i.

  lv_str = 'I love 中国?!'.
  lv_len = cl_abap_list_utilities=>dynamic_output_length( lv_str ).
  write:/ lv_len.


感谢群里的朋友;ABAP-Earth
posted @ 2014-01-22 09:25  胡来  阅读(136)  评论(0编辑  收藏  举报