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 }|.