SAP BTP 学習日記 Day10 —— SAP Integration Suite 入門:最初の iFlow を作成・デプロイ・動作確認まで
今日の学習内容
今日は SAP Integration Suite(インテグレーション・スイート)に入門しました。サブスクリプション(利用登録(りようとうろく))の作成から始まり、ロール設定・ケイパビリティの有効化(ゆうこうか)・最初の iFlow の作成・デプロイ・Bruno による動作確認まで、すべての手順を記録します。
① SAP Integration Suite とは
SAP Integration Suite は異なるシステムを繋ぐ(つなぐ)クラウドプラットフォームです。
SAP Integration Suite
│
├── Cloud Integration(クラウド・インテグレーション)
│ → iFlow(統合フロー)を作成
│ → S/4HANA ↔ BTP ↔ 外部システムを繋ぐ
│
├── API Management(APIマネジメント)
│ → API の公開・保護(ほご)・管理
│ → アクセス制限・レート制限
│
└── Event Mesh(イベント・メッシュ)
→ イベント(通知)ベースの連携(れんけい)
→ 非同期(ひどうき)通信② サブスクリプションの作成
BTP Cockpit でサブスクリプションを作成します。
BTP Cockpit
→ trial サブアカウント
→ サービス → インスタンスおよびサブスクリプション
→「作成」ボタンをクリック
サービス: Integration Suite
プラン : trial
→「作成」をクリック③ ロールの割り当て(わりあて)
Integration Suite にアクセスするにはロールの設定が必要です。
BTP Cockpit
→ セキュリティ → ユーザー
→ あなたのメールアドレスをクリック
→「ロールコレクションの割り当て」
→ Integration_Provisioner を追加
→ ログアウト → 再ログイン④ 遭遇(そうぐう)したエラーと解決方法
| エラー | 原因 | 解決方法 |
|---|---|---|
| You don't have access to this page | ロールが未割り当て(みわりあて) | Integration_Provisioner を割り当て後ログアウト・再ログイン |
| The URL does not reference a valid account | URL が間違っている | BTP Cockpit の「アプリケーションに移動」から正しい URL を確認 |
| ホーム画面にアクセスできない | サブスクリプションにラベルが未設定 | Integration Suite のサブスクリプションにラベルを追加する |
| Cloud Integration のカードがクリックできない | ケイパビリティがまだ有効化されていない | 「Add Capabilities」からケイパビリティを有効化する |
| HTTP Status 403 – Forbidden | Basic Auth は使えない。OAuth2 トークンが必要 | Process Integration Runtime のサービスキーを作成してトークンを取得 |
⑤ ケイパビリティの有効化(ゆうこうか)
Integration Suite のホーム画面から「Add Capabilities」をクリックして以下を選択します:
| ケイパビリティ | 選択 | 説明 |
|---|---|---|
| Build Integration Scenarios | ✅ 必須 | Cloud Integration(iFlow の作成) |
| Manage APIs | ✅ 推奨 | API Management |
⚠️ 注意:Cloud Integration の有効化には最大 60 分かかります。完了するまで待ちましょう。
⑥ 追加ロールの設定
ケイパビリティ有効化後、新しいロールコレクションが追加されます。以下を割り当てます:
BTP Cockpit → セキュリティ → ユーザー → ロール割り当て
追加するロール:
・PI_Administrator
・PI_Integration_Developer
・PI_Read_Only
・APIManagement.SelfService.Administrator⑦ 最初の iFlow を作成する
iFlow(Integration Flow)はデータの流れを定義する設計図(せっけいず)です。
iFlow の基本構造:
Sender(HTTPS)
↓ HTTP リクエストを受け取る
Start イベント
↓
Content Modifier ← メッセージを設定する
↓
End イベント
↓
レスポンスとして返す作成手順
① Cloud Integration の設計(せっけい)画面を開く
② 「作成」→ パッケージを作成(My First Integration)
③ パッケージを開く → 「Edit」→「Add」→「Integration Flow」
④ iFlow 名: My First iFlow
⑤ Sender → HTTPS アダプターを接続
Address: /my-first-iflow
CSRF Protected: オフ
⑥ Content Modifier を追加
Message Body: Hello from SAP Integration Suite!
⑦「保存」→「部署(デプロイ)」⑧ Process Integration Runtime サービスキーの作成
iFlow にアクセスするには OAuth2 トークンが必要です。Basic Auth は使えません。
BTP Cockpit
→ サービス → インスタンスおよびサブスクリプション
→「作成」
サービス: Process Integration Runtime
プラン : integration-flow
名前 : cpi-iflow-instance
→ 作成後「サービスキーの作成」
→ clientid・clientsecret・tokenurl を確認⑨ Bruno での動作確認
ステップ1:JWT トークンの取得
Method : POST
URL : https://[テナント].authentication.ap21.hana.ondemand.com/oauth/token
Auth : Basic Auth(clientid / clientsecret)
Body : grant_type=client_credentials
→ access_token を取得ステップ2:iFlow にアクセス
Method : GET
URL : https://[テナント].it-cpitrial03-rt.cfapps.ap21.hana.ondemand.com/http/my-first-iflow
Headers :
Authorization: Bearer [取得したaccess_token]
→ Hello from SAP Integration Suite! ✅今日の学習まとめ
| タスク | 状態 |
|---|---|
| Integration Suite サブスクリプション作成 | ✅ |
| Integration_Provisioner ロール割り当て | ✅ |
| Cloud Integration・API Management 有効化 | ✅ |
| 追加ロール(PI_Administrator 等)割り当て | ✅ |
| パッケージ・iFlow の作成 | ✅ |
| HTTPS アダプター・Content Modifier 設定 | ✅ |
| iFlow デプロイ完了 | ✅ |
| Process Integration Runtime サービスキー作成 | ✅ |
| JWT トークン取得・iFlow 動作確認 | ✅ |
この記事は「SAP BTP 学習」シリーズの第10回です。6ヶ月間の独学で SAP BTP 開発へのキャリアチェンジを目指しています。
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 TKblog
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果