2008/11/06

数据字典的QUAN, DEC类型与ABAP P型转换

Dictionary type→ABAP type
When you refer to data tpes from the ABAP Dictionary in an ABAP program, the predefined Dictionary types are converted to ABAP types as follows:

转换公式 (n+1)/2 
比如DEC定义为13位,其中3位小数 
则ABAP的对应P型应该定义为 (13+1)/2 = 7 

data: p(7) type p decimals 3. 

2 comments: