用工具类 CL_COS_UTILITIES

IS_BYD

如果是BYD系统,这个方法的实现会硬编码返回一个true,

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud

在其他系统里则返回false,如图:

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud

IS_SUITE

原理同上,suite系统里返回true

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud

IS_S4H

根据全局结构gv_s4h的不同字段来返回。

  • managed_cloud_on

  • public_cloud_on

  • on_premise_on

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud
gv_s4h通过方法validate_gv_s4h填充。

这三个字段通过对应的business function控制。如果function处于**状态,则返回true。

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud

要获取更多Jerry的原创技术文章,请关注公众号”汪子熙”或者扫描下面二维码:

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud

通过ABAP代码判断当前系统类型,BYD还是S4 OP还是S4 Cloud

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
相关资源
相似解决方案