*DATA lv_ch TYPE char3.
*DATA lv_tem TYPE char1.
*DATA lv_ten TYPE char2.
*
*lv_ch = 'ba'.
*
**SEARCH lv_ch FOR '/'.
**IF sy-subrc = 0 AND sy-fdpos ne 0.
**lv_tem = lv_ch+0(sy-fdpos).
**ENDIF.
*SPLIT lv_ch at '/' INTO lv_tem lv_ten.
去掉字符串日期中的分隔符
data: curr_date2 TYPE char10. curr_date2 = '2017-07-12'. TRANSLATE curr_date2 USING '- '. CONDENSE curr_date2 NO-GAPS.
curr_date2输出的是20170712