通過兩個系統互相連接互相信任的配置,使得:
(1) SAP Cloud Platform subaccount will get a destination which holds data for the connection and OAuth communication with the S/4HANA Cloud system.
(2) That enables its Web IDE to request data from the S/4HANA system during Custom UI development and finally to deploy that UI to the S/4HANA Cloud system. Both processes are so called inbound requests to the S/4HANA Cloud system.
使用一個分配有business catalog Communication Management (ID: SAP_CORE_BC_COM)的business role的用戶登錄S/4HANA Cloud系統:
創建一個新的Communication arrangement
scenario選擇SAP_COM_0013,
進入創建好的Communication Arrangement,在inbound Communication區域點擊OAuth 2.0 Details:
這個彈出窗口的值,我們稍後會維護在SAP雲平臺的Destination創建頁面裏:
SAP雲平臺裏新建一個Destination:
並將之前從S/4HANA cloud系統Communication Arrangement OAuth 2.0明細頁面的credential信息拷貝過來。
添加下列四個額外的屬性:
把這個Destination命名爲SCP_DEV_SYSTEM.
之後在SAP雲平臺的WebIDE裏使用SAP UI5應用創建嚮導,在Data Connection這一步驟,就能從下拉菜單裏看到這個Destination了。然而Destination指向的S/4HANA系統裏的OData服務YY1_BONUSPLAN_還沒法使用,報錯誤消息Service XXX is unavailable. 需要後續在S/4HANA系統將其暴露給外部系統才能使用。但是,S/4HANA和SAP Cloud Platform通過Destination的連接已經配置完成了。
本文圖片來自SAP官方向導:
https://developers.sap.com/tutorials/abap-custom-ui-communication-arrangement.html
要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":