SAP ABAP 增加/删除前导0的两种方式

方式一:

增加前导0:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
 EXPORTING
 input = LV_MATNR
 IMPORTING
 output = LV_MATNR.

删除前导0:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = LV_MATNR
IMPORTING
output = LV_MATNR.

 

方式二:

增加前导0:

LV_MATNR = |{ LV_MATNR ALPHA = IN }|.

删除前导0:

LV_MATNR = |{ LV_MATNR ALPHA = OUT }|.

posted @ 2022-08-02 17:44  LikZ-WM  阅读(826)  评论(0编辑  收藏  举报