Abap Cloudのロゴ

Abap Cloud

コミュニティ
likweitan
abap-cloud

Help with ABAP Cloud development and the clean core level concept (Levels A, B, C, D) including ABAP Cloud vs. classic ABAP development models, ABAP Cloud language version restrictions, wrapper patterns for non-released APIs, released/classic/internal/not-recommended object classification, and clean core principles. Use when users ask about ABAP Cloud, ABAP for Cloud Development, clean core, clean core levels, Level A B C D, classic API, internal object, not recommended object, noAPI, wrapper pattern, released APIs, stability contract, language version, restricted ABAP, embedded Steampunk, developer extensibility, key user extensibility, changelog for SAP objects, or ABAP Cloud readiness. Triggers include "ABAP Cloud restrictions", "clean core", "clean core level", "which level is my extension", "Level A extension", "classic API", "wrapper class", "released API alternative", "ABAP language version", "Steampunk", or "extensibility model".

概要

公開者likweitan
リポジトリabap-skills
スキル名abap-cloud
スター
64
フォーク
15
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    likweitanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Abap Cloud」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/likweitan/abap-skills/tree/main/skills/abap-cloud
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/likweitan/abap-skills.git /tmp/abap-skills
mkdir -p .claude/skills
cp -r /tmp/abap-skills/skills/abap-cloud .claude/skills/abap-cloud
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAbap Cloudを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAbap Cloudを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Abap Cloudは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

ABAP Cloud & the Clean Core Level Concept

Guide for developing with the ABAP Cloud programming model, classifying extensions using the clean core level concept (A–D), and applying clean core principles.

Terminology note: SAP has evolved the former 3-tier extensibility model into the clean core level concept. The 3-tier model (Tier 1/2/3) is superseded — use Levels A, B, C, D instead. Current product naming: SAP Cloud ERP (public), SAP Cloud ERP Private (formerly S/4HANA Cloud Private Edition), SAP Business AI Platform (includes SAP BTP capabilities), SAP Build (pro-code and low-code tooling, includes ABAP Cloud).

Workflow

  1. Determine the user's context:

    • Understanding ABAP Cloud concepts and restrictions
    • Classifying an extension into a clean core level
    • Choosing between ABAP Cloud development and classic ABAP development
    • Wrapping non-released APIs for use in ABAP Cloud
    • Identifying released or classic API alternatives
  2. Classify the extension by clean core level:

    • Level A: only released APIs and extension points (stability contract)
    • Level B: classic APIs and classic frameworks (nominated, no stability contract)
    • Level C: SAP internal objects (conditionally clean with changelog)
    • Level D: not-recommended objects and patterns (must be remediated)
  3. Apply the lowest-level rule: an extension is classified by the lowest level it uses. A Level A extension that calls one internal object is a Level C extension.

  4. Guide implementation toward the highest applicable level (Level A first).

Clean Core Level Concept

SAP classifies extensions into four levels, similar to energy labels. Level A is the target state reflecting the "SAP Business AI Platform first" strategy; Level D must be remediated.

LevelNameSAP objects qualifierUpgrade stabilityATC behavior
Level AExtend with SAP Build[Released] SAP remote APIs, local APIs, extension pointsGuaranteed by stability contractNo finding
Level BLeverage classic APIs[Classic] SAP APIs and extension pointsNominated by SAP experts, no formal contractPriority 3 (information)
Level CAccess internal objects[Internal] SAP objects (the default for unclassified objects)Not upgrade-stable; mitigate via changelogPriority 2 (warning)
Level DNot recommended[Not recommended] SAP objects, extension points, techniquesHigh risk, significant technical debtPriority 1 (error)

Clean core status: Level A = clean core · Levels B and C = conditional clean core · Level D = not clean core.

Level A — Extend with SAP Build and Joule Studio

Only publicly released interfaces and extension points with a stability contract.

  • On-stack: ABAP Cloud development model inside SAP Cloud ERP Private, using released local APIs (released CDS views, released BO interfaces, released extension points), plus key user extensibility
  • Side-by-side: SAP Business AI Platform using ABAP Cloud, CAP, or low-code/no-code tools (SAP Build, Joule Studio) consuming released remote APIs
  • Discover released objects in the SAP Business Accelerator Hub, the Cloudification Repository, or directly in ADT
  • Note: Level A coverage does not span the full functional scope of SAP Cloud ERP Private, and full coverage is not planned
abap
"Level A: ABAP Cloud class using only released APIs
CLASS zcl_my_extension DEFINITION
  PUBLIC FINAL CREATE PUBLIC.
  PUBLIC SECTION.
    INTERFACES if_oo_adt_classrun.
ENDCLASS.

CLASS zcl_my_extension IMPLEMENTATION.
  METHOD if_oo_adt_classrun~main.
    "Released CDS view — no direct table access
    SELECT FROM I_BusinessPartner
      FIELDS BusinessPartner, BusinessPartnerName
      INTO TABLE @DATA(partners)
      UP TO 10 ROWS.
    out->write( partners ).
  ENDMETHOD.
ENDCLASS.

Level B — Leverage classic APIs

Well-established, documented, SAP-nominated classic APIs and classic frameworks. No formal stability contract, but a long history of reliable use and SAP internal quality assurance.

  • Typical examples: BAPI_* function modules, CL_GUI_ALV_GRID, non-released BAdIs, user/customer exits, SAP GUI and ALV frameworks
  • Custom objects in ABAP language version Standard ABAP are Level B, provided they reference only released or classic objects
  • Wrappers around classic APIs that enable consumption from Level A code are Level B
  • Identify classic APIs in objectClassifications_SAP.json (Cloudification Repository) and SAP Note 3578329 for framework classification
  • Recommended software component for classic ABAP development: HOME

Level C — Access internal objects

SAP internal objects that are technically accessible but not released, not nominated, not documented, and not supported for customer use. This is the default classification for any SAP object not otherwise classified.

  • Typical examples: direct calls to internal function modules/classes, read access to SAP database tables
  • Mitigation: the changelog for SAP objects identifies internal objects targeted for incompatible changes in upcoming releases, enabling proactive refactoring before upgrades
  • SAP may reclassify internal objects as classic (→ Level B) or not recommended (→ Level D)
  • Objects with a released successor are flagged internalAPI in the Cloudification Repository

Level D — Not recommended

Highest risk, highest technical debt. Remediate immediately.

  • SAP objects classified noAPI in the Cloudification Repository (e.g., RFC_READ_TABLE)
  • Modifications to SAP objects (including SAP Notes applied with manual corrections)
  • Implicit and explicit enhancements (source code plug-ins)
  • Direct write access to SAP database tables
  • Calling form routines inside SAP programs
  • Critical ABAP statements (kernel calls, system calls, editor calls, EXEC SQL, DB hints, report/Dynpro generation, nametab import/export)
  • Implementation of BAdIs flagged as SAP-internal

Development Models

Two coexisting on-stack development models in SAP Cloud ERP Private:

AspectABAP Cloud developmentClassic ABAP development
Clean coreLevel ALevel B (or C/D if internal/not-recommended objects used)
Language versionABAP for Cloud DevelopmentStandard ABAP
Default choiceYes — for all new ABAP-based extensionsOnly where no released API exists or UI is classic
Leading modelRAPClassic frameworks (SAP GUI, ALV, Web Dynpro, SEGW, BOPF)
EnforcementSyntax check + runtime checkABAP test cockpit (ATC) governance
Software componentComponent with language version ABAP for Cloud DevelopmentHOME or existing classic component
IDEADT (mandatory)ADT or SAP GUI
Developer roleSAP_BC_ABAP_DEVELOPER_5 templateStandard developer role

Access rules

ABAP Cloud objects may access only:

  • Custom objects inside the same software component
  • Released SAP objects (released APIs)
  • Custom objects released for ABAP Cloud development (released custom APIs) from a classic software component

Classic ABAP objects should access only:

  • Custom objects inside their own software component
  • Released SAP APIs and classic SAP APIs
  • Custom objects in classic and ABAP Cloud software components

Enforcing the model via authorization

Authorization object S_ABPLNGVS controls whether a developer may create objects in Standard ABAP or only in ABAP for Cloud Development. Use it to create a dedicated ABAP Cloud developer role.

Key Restrictions in ABAP for Cloud Development

  • Only released SAP APIs (C1 contract) can be used
  • No direct database table access for SAP tables (use released CDS views)
  • No classic dynpro, selection screens, or SAP GUI-dependent statements
  • No CALL TRANSACTION, SUBMIT, AUTHORITY-CHECK (use CL_ABAP_AUTHORIZATION)
  • No classic BAdIs or user exits (only released BAdIs)
  • No EXEC SQL or native SQL (use ABAP SQL or AMDP)
  • No non-released function modules
  • No INCLUDE programs
  • No WRITE or classic list output
  • Use if_oo_adt_classrun for console output

Wrapper Pattern

When a required API is not released, build a wrapper in a classic ABAP software component and release it for ABAP Cloud development. The consuming ABAP Cloud code stays clean; the wrapper localizes the level violation to a single place.

Wrapper level classification (from the whitepaper):

  • Wrapper around a classic API (Level B object) → the wrapper is Level B
  • Wrapper around an internal object (Level C object) → the wrapper is Level C
  • Wrapper around a not-recommended object → Level D, do not build it
abap
"Classic ABAP software component: wrapper class released for ABAP Cloud
"Wrapping BAPI_PO_CREATE1 (a classic API) → Level B
CLASS zcl_wrapper_material DEFINITION
  PUBLIC FINAL CREATE PUBLIC.
  PUBLIC SECTION.
    INTERFACES zif_material_reader.
    "Release with C1 contract in ADT → API State tab
ENDCLASS.

CLASS zcl_wrapper_material IMPLEMENTATION.
  METHOD zif_material_reader~get_material.
    "Access non-released API internally
    SELECT SINGLE * FROM mara
      WHERE matnr = @iv_matnr
      INTO @DATA(ls_mara).
    "Map to released structure
    rs_material = VALUE #(
      matnr = ls_mara-matnr
      mtart = ls_mara-mtart
      matkl = ls_mara-matkl ).
  ENDMETHOD.
ENDCLASS.

Wrapper guidance

  • CDS views: create a custom CDS view on top of the non-released SAP CDS view and release it. Association targets and value help views may need wrappers too. If no SAP CDS view exists, wrap the database table.
  • Classes/interfaces: wrap the non-released FM or class. Do not copy non-released data types — wrap them via TYPES declarations in the wrapper's public section so only the wrapper needs releasing.
  • Authorizations: classic APIs often check non-released authorization objects, which cannot be used in ABAP Cloud. PFCG roles can mix released and non-released authorization objects. Provide SU22 data for the wrapper when releasing it and create SU22 variants per designated usage.
  • ATC exemptions: wrapping reduces N findings to 1 — create a single fine-grained exemption on the wrapper instead of one per usage. This is SAP's recommended practice for internal objects.
  • Retire wrappers: once SAP releases the API, replace the wrapper and move the code to ABAP Cloud.

Wrapper via RFC Proxy (side-by-side to on-stack)

abap
"Side-by-side consumer calls a released RFC wrapper
DATA(lo_dest) = cl_rfc_destination_provider=>create_by_comm_arrangement(
  comm_scenario  = 'Z_MY_COMM_SCENARIO'
  service_id     = 'Z_MY_OUTBOUND_SRV' ).

CALL FUNCTION 'Z_WRAPPER_FM'
  DESTINATION lo_dest->get_destination_name( )
  EXPORTING iv_param = lv_value
  IMPORTING ev_result = lv_result.

Object Classification Discovery

MethodDescription
Cloudification RepositoryobjectClassifications_SAP.json — classic APIs, noAPI, internalAPI classifications
Cloudification API ViewerBrowse at https://sap.github.io/abap-atc-cr-cv-s4hc/
SAP Business Accelerator HubReleased remote and local APIs with stability contracts
ADT: Released Object SearchSearch with api: prefix (e.g., api:cl_*), or Project Explorer → Released Objects
ATC clean core checksSYCM_USAGE_OF_APIS, SYCM_ALLOWED_ENH_TECHNOLOGY, CI_SEARCH_CUST_MODIFICATIONS
SAP Note 3578329Classification of classic technologies, reuse services, application frameworks
SAP Note 3565942Delivers the Usage of APIs and Allowed Enhancement Technologies ATC checks
released-abap-classes skillCommon released classes for ABAP Cloud
XCO LibraryXCO_CP_* classes provide cloud-ready alternatives

Classic API classifications are provided for these object types: function modules (FUNC), classes (CLAS), interfaces (INTF), CDS views (STOB), BO interfaces (BDEF). DDIC objects used as data types are not classified or checked; only SQL access to SAP tables is checked.

Common Non-Released → Released Replacements

Non-released (Level C/D)Released alternative (Level A)
AUTHORITY-CHECKCL_ABAP_AUTHORIZATION=>check_authorization()
sy-unamecl_abap_context_info=>get_user_technical_name()
sy-datum / sy-uzeitcl_abap_context_info=>get_system_date/time()
cl_gui_frontend_servicesNot available — use Fiori UI instead
CALL TRANSACTIONRAP action or Fiori navigation
SUBMIT ... AND RETURNBackground job via CL_APJ_RT_API
Direct SAP table SELECTReleased CDS view (I_* views)
CONVERSION_EXIT_*CL_ABAP_CONV_CODEPAGE, domain fixed values
BAPI_* function modulesReleased APIs or RAP BO consumption (else Level B)
RFC_READ_TABLE (noAPI)Released CDS view or released remote API
Classic MESSAGE statementRAP messages via REPORTED

Use Case → Level Mapping

CategoryUse caseLevel
ExtensionsCustom field via released extension includeA
ExtensionsImplementation of a released SAP BAdIA
ExtensionsCustom field via non-released extension includeB
ExtensionsCustom field on DB table via classic appendC
ExtensionsImplementation of user/customer exit (e.g., SAPMV45A)B
ExtensionsImplementation of a non-released SAP BAdIB
ExtensionsImplementation of a BAdI flagged SAP-internalD
ExtensionsExtension of a RAP-based SAP Fiori appA
ExtensionsExtension of an SEGW / BOPF / UI5 SAP Fiori appB
ExtensionsExtension of an SAP GUI transactionB
Custom applicationsCustom RAP-based SAP Fiori app (core scope)A
Custom applicationsCustom SEGW / BOPF / UI5 appB (prefer RAP)
Custom applicationsLegacy UI app (ABAP report with ALV, Web Dynpro)B (should be prevented)
Custom applicationsSE54-based BC UIB (prefer RAP-based BC app)
WrapperWrapper class around non-released SAP object (e.g., BAPI)B if wrapped object is classic API, else C
WrapperWrapper CDS view for non-released SAP table or CDS viewB if wrapped object is classic API, else C
ModificationsSAP Note with manual correctionsD (reset once in core)
ModificationsBusiness-driven modificationD (exceptional cases only)

Key User vs. Developer Extensibility

Both are Level A when they use released extension points:

  • Key user extensibility (no/low code): custom fields, custom logic, custom CDS views, custom business objects, custom analytical queries via Fiori apps. Start here for tightly coupled extensions — use transaction SEEA / the extension registry to find registered extension points.
  • Developer extensibility (ABAP Cloud): use when key user extensibility is too limited. Full lifecycle in ADT with RAP.

Best Practices

  1. Target Level A — "SAP Business AI Platform first", ABAP Cloud for on-stack
  2. Classify by the lowest level used — one internal object makes the whole extension Level C
  3. Eliminate Level D immediately — modifications, implicit enhancements, table writes, noAPI objects
  4. Minimize Level C — replace internal objects with released or classic APIs; monitor the changelog for SAP objects
  5. Accept Level B pragmatically — classic APIs are upgrade-stable in practice; do not force unnecessary rewrites
  6. Wrap, don't scatter — one wrapper with one ATC exemption beats many direct usages
  7. Govern with ATC — global check variant, block transport release on priority 1 and 2 findings
  8. Separate software components — ABAP Cloud component vs. HOME for classic

Output Format

When helping with ABAP Cloud / clean core topics, structure responses as:

markdown
## ABAP Cloud Guidance

### Context

- Clean core level: [A / B / C / D] (classified by the lowest level used)
- Development model: [ABAP Cloud / Classic ABAP]
- Language version: [ABAP for Cloud Development / Standard ABAP]
- Target platform: [SAP Cloud ERP / SAP Cloud ERP Private / SAP Business AI Platform]

### Recommendation

[Guidance on the approach and how to reach a higher level]

### Code Example

[ABAP code following clean core principles]

### Released API References

- [List of relevant released or classic APIs used]

### Expected ATC Findings

- [Priority and check name, if any]

References

Detailed Reference

  • Clean core level details: Read references/clean-core-levels.md for a full level-by-level comparison, decision matrix, governance setup, and remediation priorities

Related Skills

  • abap-cloud-migration: Use for level-based remediation of existing custom code
  • atc-cloudification: Use for configuring ATC clean core checks and level governance
  • released-abap-classes: Use for finding Level A released API alternatives
  • authorization-iam: Use for authorization in ABAP Cloud and wrapper SU22 handling
  • badi-enhancement: Use for level classification of BAdIs and enhancement techniques

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Abap Cloud」では何ができますか?

Help with ABAP Cloud development and the clean core level concept (Levels A, B, C, D) including ABAP Cloud vs. classic ABAP development models, ABAP Cloud language version restrictions, wrapper patterns for non-released APIs, released/classic/internal/not-recommended object classification, and clean core principles. Use when users ask about ABAP Cloud, ABAP for Cloud Development, clean core, clean core levels, Level A B C D, classic API, internal object, not recommended object, noAPI, wrapper pattern, released APIs, stability contract, language version, restricted ABAP, embedded Steampunk,...

TypingMindでAbap Cloudを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Abap Cloudはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAbap Cloudをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/likweitan/abap-skills/tree/main/skills/abap-cloudを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Abap Cloudを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Abap Cloudで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAbap Cloudを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Abap Cloud」は無料ですか?

はい。likweitanがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇