ABAP alpha 转换 Alpha = IN, 增加前导0, ALPHA = OUT , 删除前导0
1:
"增加前导0 DATA: ls_matnr TYPE matnr VALUE '15000042'. DATA(ls_in_matnr) = |{ ls_matnr ALPHA = IN }|. WRITE: ls_in_matnr. "示例结果:000000000015000042 "删除前导0 DATA: gs_matnr TYPE matnr VALUE '000000000015000042'. DATA(gs_out_matnr) = |{ gs_matnr ALPHA = OUT }|. WRITE:/ gs_out_matnr. "示例结果:15000042
本博客为非营利性个人原创,除部分有明确署名的作品外,所刊登的所有作品的著作权均为本人所拥有,本人保留所有法定权利。违者必究