如何在C#中获取SAP DDIC表结构
本文关键字:SAP DDIC 结构 获取 | 更新日期: 2023-09-27 18:26:21
我正在使用C#编写一些关于从SAP提取表结构的代码,我有一个关于RFC_READ_table的问题,当我定义一个表的名称并且FIELDS表返回5列时,如:FIELDNAME
、OFFSET
、LENGTH
、T
和FIELDTEXT
,实际上我不知道根据这5列数字字段的小数位数是多少,还有别的办法吗?请注意,我的SAP帐户是一个公共帐户,因为其他人也在使用它,我不应该在SAP中创建新的功能模块。
以下信息是我从模块RFC_READ_table:的FIELDS表中得到的信息
MANDT | 000000 | 000003 | C | Client**: length * 3**
BUKRS | 000003 | 000004 | C | Company Code: **length * 3**
ANLN1 | 000007 | 000012 | C | Main Asset Number: **length * 3**
ANLN2 | 000019 | 000004 | C | Asset Subnumber: **length * 3**
GJAHR | 000023 | 000004 | N | Fiscal Year: **numeric(4,0)**
LNRAN | 000027 | 000005 | N | Sequence Number of Asset Line Items in Fiscal Year: **numeric(5,0)**
AFABE | 000032 | 000002 | N | Real depreciation area: **numeric(2,0)**
ZUJHR | 000034 | 000004 | N | Asset acquisition year (currently not used): **numeric(4,0)**
ZUCOD | 000038 | 000004 | N | Sub-classification of asset acquisitions(currently not used): **numeric(4,0)**
AUFWV | 000042 | 000013 | P | Proportional cumulative revaluation on replacement value: **numeric(13,??=2)**
根据DB,该字段的数据类型是数字(13,2),但我如何才能得到这条线索?提前感谢!