1. 程式人生 > 其它 >將ABAP On-Premises系統連線到中央檢查系統以進行自定義程式碼遷移

將ABAP On-Premises系統連線到中央檢查系統以進行自定義程式碼遷移

官網

前置條件

  • 在 SAP Cloud Platform ABAP 環境中,您已被分配角色 SAP_CORE_BC_CCM。 此角色允許您使用通訊物件連線 SAP Cloud 和本地例項
  • 在您的本地系統中,您已安裝以下內容:
    (1)具有管理員許可權的 SAP Cloud Connector。
    (2)Java 8.

一切就緒後,system landscape 如下:

Open SAP Cloud Connector

在您的瀏覽器中,登入到您的內部部署系統的 SAP Cloud Connector。 如果您的內部部署系統是 SAP AS ABAP Developer Edition, 7.5x,請在您的虛擬機器中開啟瀏覽器,例如 VMWare

  • 地址 = 例如 https://localhost:<埠>(預設值 = 8443)
  • 使用者 = Administrator
  • 密碼 = 您的密碼。 (初始密碼= manage)

您的 Cloud Connector 儀表板應如下所示:

  • 至少連線了一個 Cloud Foundry 子賬戶 (1)
  • 至少一個從雲到本地的對映 (2)

請注意位置 ID (3) - 此處為 XXX。 稍後您將需要它。

Add resources for Custom Code Migration (CCM) App

現在,您將新增 CCM 應用程式所需的資源。 資源是指 CCM 應用檢查需要呼叫的 RFC 或 BAPI。

下載 SAP Note 2861842 中的附件,CustomCodeMigration(1).zip ,用於 ABAP 伺服器所在的 Linux 系統。

在左側選擇 Cloud to On-Premise,然後選擇 Import System Mappings...

匯入剛才下載的 .zip 檔案:

資源被自動匯入:

在 ABAP 系統中打上下列這些 note:

  • 2599695 Custom Code Migration Fiori App: Remote Stubs for the Checked System
  • 2888880 Remote analysis: Bulk determination of method names
  • 2820446 Remote Analysis for source system, Release 7.52, i.e. run the report RS_ABAP_INIT_ANALYSIS

Check connectivity in SAP BTP cockpit

在 Cloud Foundry 子賬戶的 SAP BTP Cockpit 中,選擇 Cloud Connectors。

位置 ID 指向正確的 SAP Cloud Connector(位於內部部署系統中); 虛擬主機指向 SAP Cloud Connector 中對映的本地連線。

仍然在 Cockpit 中,選擇 Destinations,然後選擇您之前建立的目的地,這裡是 NPL_JP。

維護如下內容:

  • Destination Name = here, NPL_XXX
  • jco.client.ashost = here, nplhost
  • Location ID = here, XXX

通過選擇檢查連線來檢查連線。 你應該得到這樣的訊息:

Create communication system for Custom Code Migration

開啟 SAP BTP、ABAP 環境例項的儀表板。 要查詢此 URL,請從子帳戶概覽中選擇相關空間,例如 Dev,然後選擇 Service Instances > ABAP System > Your System > View Dashboard。 登入。

Choose Communication Management > Communication Systems, then choose New.

輸入系統 ID,例如 NPL_ATC_XXX。 應用程式會自動提供同名的系統名稱。 接受這一點。

開啟 Destination 服務。

選擇 Use Default Instance,然後從下拉列表中選擇目標服務的名稱 NPL_JP。

Create communication arrangement for Custom Code Migration

From the home page, choose Communication Management > Communication Arrangement > New.

使用下列引數建立 communication arrangement:

  • Communication Scenario SAP_COM_0464 - 從下拉列表中選擇。 如果此通訊場景未出現,則您缺少正確的授權,無法完成本教程
  • Arrangement Name - 覆蓋預設值(名稱相同),例如 使用 SAP_COM_0464_XXX 或 SAP_COM_0464_SID.

Choose your communication system from the dropdown list, SAP_COM_0464_XXX. 儲存。

Assign business role for Custom Code Migration App

Choose Identity and Access Management > Maintain Business Roles.

Choose BR_IT_PROJECT_MANAGER > Edit.

在已分配的業務目錄中,選擇新增 > SAP_CORE_BC_CCM > 應用 > 開啟。該磁貼應出現在啟動板中:

Run Custom Code Migration App

Choose Go.

Choose Create to create new project.

  • Target release = SAP BTP, ABAP Environment
  • Destination = SAP_COM_0464_NPL_XXX
  • Transition Scenario = New implementation

更多Jerry的原創文章,盡在:"汪子熙":