天天看點

如何使用SAP C4C Repository Explorer裡的BO test shell

在SAP研究院做過SAP Business ByDesign和SAP Cloud for Customer背景開發的小夥伴們,都知道ABAP 裡 BO test shell這個工具。

在C4C Cloud Application Studio裡也存在類似工具。

打開repository exploerer:

如何使用SAP C4C Repository Explorer裡的BO test shell

以CustomerQuote為例,找到要執行的Query節點,右鍵:

如何使用SAP C4C Repository Explorer裡的BO test shell

從SAP C4C UI上找一個Sales Order的ID複制下來:9000000490

如何使用SAP C4C Repository Explorer裡的BO test shell

填到query參數裡:

如何使用SAP C4C Repository Explorer裡的BO test shell

執行的結果:

如何使用SAP C4C Repository Explorer裡的BO test shell
如何使用SAP C4C Repository Explorer裡的BO test shell

在執行結果裡,也可以順着Association,通路該BO執行個體其他子節點的資料,非常友善:

如何使用SAP C4C Repository Explorer裡的BO test shell
如何使用SAP C4C Repository Explorer裡的BO test shell

點選Generate Code按鈕,可以看到自動生成的使用Query通路該BO執行個體資料的ABSL代碼:

如何使用SAP C4C Repository Explorer裡的BO test shell