简体   繁体   English

S4 SDK中的WorkforceTimesheet中缺少类TimeSheetEntryField

[英]Class TimeSheetEntryField missing from WorkforceTimesheet in S4 SDK

I am updating one of our S4 SDK projects to use the latest version of the SDK and I noticed then when I try to build the project I got the error: 我正在更新我们的S4 SDK项目之一以使用最新版本的SDK,我注意到当我尝试构建项目时出现错误:

cannot find symbol>  [ERROR] symbol:   class TimeSheetEntryField

When I look at the Javadocs I can see that this class existed in version 2.7.0 but is missing in the next version 2.8.0 当我看到Javadocs时,我可以看到这个类存在于2.7.0版本中但在下一个版本2.8.0中缺失

This import throws an error as it cannot find the class in the newer version: 此导入会引发错误,因为它无法在较新版本中找到该类:

com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.workforcetimesheet.TimeSheetEntryField;

I can't see any notice of deprecation. 我看不到任何关于弃用的通知。 Can you help? 你能帮我吗?

Thanks, Simon 谢谢,西蒙

This class has been moved to a new package com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.workforcetimesheet.field (see Javadoc ) with version 2.8.0. 此类已移至版本为2.8.0的新软件包com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.workforcetimesheet.field (请参阅Javadoc )。 Please update your import accordingly by adding .field to the package name. 请通过在包名称中添加.field来相应地更新导入。

As mentioned in the release notes , this was necessary to avoid potential name clashes in the virtual data model of the SAP S/4HANA Cloud SDK. 正如发行说明中所述,这对于避免SAP S / 4HANA Cloud SDK的虚拟数据模型中潜在的名称冲突是必要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM