此博客为原创博客,都是个人工作经历所得,转载请注明出处

去前导零

【转】去掉前导零

(1)shift

SHIT ITAB-FIELD LEFT DELETING LEADING ‘0’。
 
(2)function
--------------------------------------------------------------
去掉前面0
*&--------------------------------------------------------------------*
*& Form frm_alpha_output 去零
*&--------------------------------------------------------------------*
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = &1
importing
output = &1.


---------------------------------------------------
前面加0
---------------------------------------------------
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = &1
importing
output = &1.

posted @ 2014-04-15 15:03  Rainystuday  阅读(360)  评论(0编辑  收藏  举报