Skip to content

efeumutaslan/SAP-SKILLS / skills/sap-s4hana-extensibility

sap-s4hana-extensibility

Verified

SAP S/4HANA extensibility and Clean Core development skill. Use when implementing BAdIs, creating Custom Business Objects, checking released API compliance, building side-by-side or in-app extensions, using Key User tools, wrapping classic APIs for ABAP Cloud, or planning extension architecture. If the user mentions Clean Core, S/4HANA extension, BAdI, released API, Tier 1/Tier 2, or Key User extensibility, use this skill. Covers Public Cloud, Private Cloud, and On-Premise.

templates/badi-implementation.abap

View on GitHub
"! Cloud BAdI Implementation Template
"! Replace {{PLACEHOLDER}} values with your actual names
"!
"! Prerequisites:
"!   - ABAP Cloud language version
"!   - Released BAdI definition (C0 contract)
"!   - Enhancement implementation created in ADT
CLASS {{ZCL_BADI_CLASS_NAME}} DEFINITION PUBLIC FINAL CREATE PUBLIC.
  PUBLIC SECTION.
    INTERFACES if_badi_interface.
    INTERFACES {{IF_BADI_INTERFACE_NAME}}.
ENDCLASS.

CLASS {{ZCL_BADI_CLASS_NAME}} IMPLEMENTATION.

  METHOD {{IF_BADI_INTERFACE_NAME}}~{{METHOD_NAME}}.
    " --- Validation Example ---
    LOOP AT {{ENTITY_TABLE}} ASSIGNING FIELD-SYMBOL(<entity>).

      " Add your validation condition
      IF <entity>-{{FIELD_TO_CHECK}} IS INITIAL.

        " Report error message
        APPEND VALUE #(
          %tky   = <entity>-%tky
          %msg   = new_message(
            id       = '{{MESSAGE_CLASS}}'
            number   = '{{MESSAGE_NUMBER}}'
            severity = if_abap_behv_message=>severity-error
            v1       = <entity>-{{KEY_FIELD}} )
        ) TO reported-{{ENTITY_NAME}}.

        " Mark as failed (prevents save)
        APPEND VALUE #(
          %tky = <entity>-%tky
        ) TO failed-{{ENTITY_NAME}}.

      ENDIF.

    ENDLOOP.

    " --- Determination Example (modify data) ---
    " LOOP AT {{ENTITY_TABLE}} ASSIGNING FIELD-SYMBOL(<entity>).
    "   IF <entity>-{{FIELD_TO_SET}} IS INITIAL.
    "     <entity>-{{FIELD_TO_SET}} = '{{DEFAULT_VALUE}}'.
    "   ENDIF.
    " ENDLOOP.

  ENDMETHOD.

ENDCLASS.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall