数值超出范围 Sum=> 值超出范围 CDS 视图
numeric value out of range Sum=> value out of range CDS view
我已经创建了 CDS 视图。一些细节如下。
@AbapCatalog.sqlViewName: 'ZUA_HOURS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientDependent: true
@EndUserText.label: 'Employee hours reported'
define view Z_Hours
as select from catsdb
{
key pernr,
sum(catshours) as totalHours
}
group by pernr
ST22 中错误消息的详细信息如下。
数据库错误文本:"SQL message: numeric value out of range: not enough space for packed decimal at function copy_trex_field_Fixed8_check() (at pos 54) "
以上错误请高手指教
SUM
的 F1 帮助说求和会保留列的原始数据类型。
它还说:
The types DF16_..., DF34_... for decimal free floating numbers are not supported.
我假设catshours
是这样的小数类型?如果是这样,请在求和之前尝试将其转换为另一种数据类型。
我已经创建了 CDS 视图。一些细节如下。
@AbapCatalog.sqlViewName: 'ZUA_HOURS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientDependent: true
@EndUserText.label: 'Employee hours reported'
define view Z_Hours
as select from catsdb
{
key pernr,
sum(catshours) as totalHours
}
group by pernr
ST22 中错误消息的详细信息如下。
数据库错误文本:"SQL message: numeric value out of range: not enough space for packed decimal at function copy_trex_field_Fixed8_check() (at pos 54) "
以上错误请高手指教
SUM
的 F1 帮助说求和会保留列的原始数据类型。
它还说:
The types DF16_..., DF34_... for decimal free floating numbers are not supported.
我假设catshours
是这样的小数类型?如果是这样,请在求和之前尝试将其转换为另一种数据类型。