SAP 基础

1.计算内表行数的三种方式

①:LOOP 循环统计

②:lines(table) 通过lines函数统计

③:DESCRIBE TABLE gt_data LINES lv_int

 

2.字符串拼接

①:使用  str = str1&& str2 .

②:使用 concatenate : str1 str2 into str . 

 

3.字符串分割 split

①:分割至字符串

 

 

 

 

 

 

②:分割至内表

 

 

 

 

 

 

 4.condense 的使用 去除前后空格  

 

 

 

5.NO-GAP 去除尾部空格

 

 

 

 6.strlen(str) , xstrlen(str) 统计字符串长度  strlen会统计空格,xstring不统计空格

 

7. 字符串截取 

 

 

 

 8.count 匹配字符串出现的次数

 

posted on 2019-10-18 10:50  凯生  阅读(428)  评论(0)    收藏  举报