-->

SAP S/4HANA key user tool extensibility原理

2020-01-25 08:02发布

Reasons of different behavior in "UI and Reports" list

问题就是不同的系统这个 UIs and Reports 里的显示逻辑不一样。 在 GRE210 连 XT9/715 上,里面只会显示 OData 出来,我 debug 了前后台, 后台返回的 Usage 数据里,说明这个做在 business context PRODUCT 上的 extension field 能加在 view I_PRODUCTWD 上,因为其 AvailablityCode 是 Y

而我所有和 CDS 相关的 usageTypeCode 都是-,所以全部被 filter 掉了。 再看另一个系统 QJ3/500,这里能显示出所有的 field usage,不仅仅是 U 的。 这个 QJ3/500 是 sandbox 系统,今天挂了,我也没办法进去看代码,我就 想问问到底哪个才是 working as designed 的 behavior

In system A, you can only get 5 entries in UI and Reports list:

In system B, there are much more entries:

how to debug this difference:搞懂了哈, 从代码推断只有这里 UI,Report 里为 X 的 CDS view 才会出现在 Fiori UI 的 tab 里。在 XT9/715( S4 on premise )所有和 product 相关的 CDS view 都是 false,所以看不到。而另外一个 S4 on cloud 系统里,和 product 相关的 CDS view 都是 true。 所以结论是两个系统的 behavior 都是正确的,只是因为 reigstry 里设置 不一样,所以最后在 UI list 里显示的东西也不一样。

系统1:

系统2:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

标签: