SAP Gateway Destination の作成
SAPBTP AuthScheme を使用してSAP Gateway への接続を確立するには、SAP BTP Destination を作成して対応するサービスインスタンスのサービスキーを生成する必要があります。
SAP Gateway インスタンスへのDestination を作成
このステップでは、SAP BTP とSAP Gateway インスタンス間の接続を作成します。
- SAP BTP Cockpit にログインし、SAP BTP サブアカウントに移動します。
- Services -> Instances and Subscriptions で、自身のSAP Gateway Destination があるDestination インスタンスを選択します。 Destination サービスがない場合は、Create ボタンで新しいサービスを作成します。
- 左のナビゲーションバーでDestinations をクリックし、Connectivity の下にあるCreate Destination をクリックします。
- 以下のDestination プロパティを、選択した認証方法で設定します。この例ではBasic 認証を使用しています。
- Name:ES5、または共有アカウントを使用する場合は<unique id>_ES5
- Type:HTTP
- Description:SAP Gateway ES5
- URL:自身のSAP Gateway サービスURL
- Proxy Type:Internet
- Authentication:BasicAuthentication
- User Name:ES5 Gateway のユーザー
- Password:ES5 Gateway のパスワード
- Use default JDK truststore チェックボックスをオンにします。
- 新しいプロパティごとにNew Property ボタンをクリックして、自身のSAP Gateway 設定に応じて以下のAdditional Properties を入力します。
- Type:true
- Type:Gateway
- Type:odata_abap,dev_abap
- Type:ABAP
- Type:002
- Type:true
- 最後にSave をクリックし、Check Connection をクリックして接続を確認します。
作成されたSAP Gateway Destination の名前をDestinationName 接続プロパティに設定します。
Service Key の作成
このステップでは、SAP BTP とSAP Gateway インスタンス間のService Key を作成します。
- SAP BTP Cockpit にログインし、SAP BTP サブアカウントに移動します。
- Services -> Instances and Subscriptions で、自身のSAP Gateway Destination があるDestination インスタンスを選択します。
- 選択したインスタンスのタブが開いたら、Service Keys -> Create をクリックします。
- Service Key の名前を入力し、Create をクリックします。
- Service Key が生成されると、以下の接続プロパティ値が対応するキーにマッピングされます。
- DestinationURL > uri
- OAuthClientId > clientid
- OAuthClientSecret > clientsecret
- OAuthAccessTokenURL > url
これらの値は、SAP Gateway インスタンスへの接続プロパティを設定するために必要です。