Short Text 短文本
“2,021.04” cannot be interpreted as a number
“2,021.04” 不能被解释为一个数字
What happened 发生了什么
Error in the ABAP application program
ABAP应用程序错误
The current ABAP program had to be terminated because it found a statement that could not be executed
当前ABAP程序因为发现一条无法被执行的语句而终止
其实就是因为"2,021.04"里的金额分隔符逗号无法被ABAP解析
In fact, it is for the comma of "2,021.04" cannot be analyzed by ABAP
How To Correct The Error 如何更正此错误
Integers are represented in ABAP by a sequence of digits which can be preceded by a sign
整数在ABAP中以一系列带有符号的数字表示
Floating point numbers can be displayed in one of the following ways in
ABAP:
- [Sign][Mantissa]E[Sign][Exponent]
- -12E+34, +12E-34, 12E34
- [Sign][Integer part].[Fractional part]
- 12.34

这篇博客讨论了一个ABAP应用程序中遇到的问题,即'2,021.04'中的逗号无法被解析为数字导致程序终止。错误源于ABAP不接受逗号作为数字分隔符。解决方案是遵循ABAP对整数和浮点数的正确表示方式,如使用'E'表示科学计数法或移除逗号。如果你的程序或修改过的SAP程序中出现类似错误,可以尝试修正错误语法。
最低0.47元/天 解锁文章
677

被折叠的 条评论
为什么被折叠?



