首页 > 其他分享 >前导零

前导零

时间:2023-05-26 22:13:44浏览次数:26  
标签:lv lsh lifnr high ALPHA 前导

方法一:

"保留前导零 
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = lv_lsh
          IMPORTING
            output = lv_lsh. 

"去掉前导零 
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
          EXPORTING
            input  = lv_lsh
          IMPORTING

方法二:

  LOOP AT s_lifnr.
    s_lifnr-low =  |{ s_lifnr-low ALPHA = OUT }|.
    s_lifnr-high =  |{ s_lifnr-high ALPHA = OUT }|.
    MODIFY s_lifnr .
  ENDLOOP.

方法三:

 AND ltrim( b~lifnr,'0' ) IN @s_lifnr

 

标签:lv,lsh,lifnr,high,ALPHA,前导
From: https://www.cnblogs.com/chrisssyuan/p/17435921.html

相关文章