* DATA:lv_string TYPE lvc_value VALUE '1,200.000',
* lv_menge TYPE mseg-menge.
DATA: "l_clabs TYPE p DECIMALS 3,
l_dcpfm LIKE usr01-dcpfm.
SELECT SINGLE dcpfm
INTO l_dcpfm
FROM usr01
WHERE bname = sy-uname.
CALL FUNCTION 'UNITS_STRING_CONVERT'
EXPORTING
units_string = lw_modi-value"'123,456.789'
dcpfm = l_dcpfm "此时为X
* MLLN = 'M'
* TSND = 'T'
IMPORTING
units = gs_pp-menge
EXCEPTIONS
invalid_type = 1
OTHERS = 2.
* TSND = 'T'
IMPORTING
units = gs_pp-menge
EXCEPTIONS
invalid_type = 1
OTHERS = 2.文章来源地址https://www.toymoban.com/news/detail-412941.html
文章来源:https://www.toymoban.com/news/detail-412941.html
到了这里,关于不同用户不同金额输入转换的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!