agentleFS
vigneshbarani24vigneshbarani24/sap-superpowers/skills/modules/analytics/SKILL.md

analytics

Skill9 starsChanged 7 months agoMITView on GitHub

Use when working with SAP Analytics Cloud (SAC), embedded analytics in S/4HANA, CDS-based analytical views, KPI modeling, Fiori analytical apps, BW/4HANA, SAP Datasphere, planning models, or BI story design.

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use popups, co-marketing and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CesarjoquinSkill

    popups

    When the user wants to create or optimize popups, modals, overlays, slide-ins, or banners for conversion purposes. Also use when the user mentions "exit intent," "popup conversions," "modal optimization," "lead capture popup," "email popup," "announcement banner," "overlay," "collect emails with a popup," "exit popup," "scroll trigger," "sticky bar," or "notification bar." Use this for any overlay or interrupt-style conversion element. For forms outside of popups, see cro. For general page conversion optimization, see cro.

    Also in 15 projects that use this

  • CesarjoquinSkill

    co-marketing

    When the user wants to find co-marketing partners, plan joint campaigns, or brainstorm partnership opportunities. Use when the user says 'co-marketing,' 'partner marketing,' 'joint campaign,' 'who should we partner with,' 'integration marketing,' 'cross-promotion,' 'collaborate with another company,' 'partnership ideas,' or 'co-brand.' For customer referral programs, see referrals. For launch-specific partnerships, see launch.

    Also in 14 projects that use this

  • coreyhaines31Skill

    marketing-council

    When the user wants multiple expert perspectives on a marketing question — a simulated board of advisors staffed by legendary marketers (Seth Godin, David Ogilvy, Eugene Schwartz, April Dunford, Rory Sutherland, Alex Hormozi, Byron Sharp, and more). Also use when the user mentions 'marketing council,' 'board of advisors,' 'advisory board,' 'what would Seth Godin say,' 'what would Ogilvy think,' 'channel Hormozi,' 'get multiple perspectives,' 'debate this,' 'have the council review,' 'marketing mentors,' or asks how a famous marketer would approach their problem. The council gives each advisor's take through their documented frameworks, surfaces where they disagree, and synthesizes a recommendation. For executing the winning direction, hand off to positioning, offers, copywriting, ads, or the relevant skill.

    Also in 8 projects that use this

  • ukunal91appSkill

    community-marketing

    Build and leverage online communities to drive product growth and brand loyalty. Use when the user wants to create a community strategy, grow a Discord or Slack community, manage a forum or subreddit, build brand advocates, increase word-of-mouth, drive community-led growth, engage users post-signup, or turn customers into evangelists. Trigger phrases: "build a community," "community strategy," "Discord community," "Slack community," "community-led growth," "brand advocates," "user community," "forum strategy," "community engagement," "grow our community," "ambassador program," "community flywheel.

    Also in 16 projects that use this

  • ScaleBrickSkill

    competitors

    Audit competitors using ScaleBrick's 3-surface framework (social, web/pages, SEO). Categorizes their pricing, features, and landing pages. Identifies gaps you can exploit, positioning angles no one is claiming, and specific moves you can make this week.

    Also in 14 projects that use this

  • roerohanSkill

    emails

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold outreach emails, see cold-email. For in-app onboarding, see onboarding.

    Also in 13 projects that use this

  • +6 more from Cesarjoquin

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 37 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After completing this skill, invoke:

    line 198

“Common” is measured: kept by at least 6 in 10 of the 37 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SAP Analytics

This skill enforces correct analytics architecture decisions, ensuring that CDS-based analytics are used for S/4HANA embedded reporting, standard Fiori analytical apps are evaluated before building custom reports, and authorization relevance is never an afterthought in CDS view design.

Content Routing

TopicSection
SAP Analytics Cloud (SAC)SAP Analytics Cloud
CDS-based embedded analyticsEmbedded Analytics in S/4HANA
BW/4HANA and data warehousingBW/4HANA
SAP DatasphereSAP Datasphere
Fiori analytical appsFiori Analytical Apps
Planning modelsSAC Planning
Live connection vs importConnection Types

Iron Laws

  1. ALWAYS USE CDS-BASED ANALYTICS FOR S/4HANA EMBEDDED REPORTING. Classic SE38/SQ01 reports and BW extractors are technical debt in S/4HANA. CDS views with analytical annotations are the strategic reporting foundation. Every new analytical requirement starts with CDS.
  2. NEVER BUILD CUSTOM REPORTS WHEN STANDARD FIORI ANALYTICAL APPS EXIST. SAP delivers 500+ analytical Fiori apps. Before writing a single CDS view, search the Fiori Apps Library (fioriappslibrary.hana.ondemand.com) for existing coverage. Custom reports have maintenance costs; standard apps are upgraded by SAP.
  3. ALWAYS CONSIDER AUTHORIZATION RELEVANCE IN CDS VIEWS. A CDS view without @AccessControl.authorizationCheck annotation defaults to NOT_ALLOWED in strict mode. Every analytical CDS view must have an explicit authorization check or a documented justification for NOT_REQUIRED. Data leaks from missing auth checks are audit findings.
  4. NEVER MIX LIVE AND IMPORT MODELS WITHOUT ARCHITECTURE JUSTIFICATION. SAC live connections (real-time to HANA/BW) and import models (scheduled data copy) serve different purposes. Mixing them in the same story without documented rationale creates user confusion about data freshness.
  5. ALWAYS VALIDATE KPI DEFINITIONS WITH BUSINESS OWNERS. A technically correct KPI with a business-incorrect definition is worse than no KPI. Revenue recognition timing, cost allocation methods, and headcount definitions MUST be confirmed with finance/HR before building dashboards.

Embedded Analytics in S/4HANA

CDS Analytical Annotations

The foundation of S/4HANA embedded analytics. Key annotations:

AnnotationPurpose
@Analytics.dataCategory: #CUBEMarks view as analytical cube (fact data)
@Analytics.dataCategory: #DIMENSIONMarks view as dimension (master data)
@AnalyticsDetails.query.axis: #ROWS / #COLUMNSDefault query layout
@Semantics.amount.currencyCodeCurrency field association
@Semantics.quantity.unitOfMeasureUnit of measure association
@Consumption.derivationDefault filter value derivation
@AccessControl.authorizationCheck: #CHECKAuthorization enforcement
@ObjectModel.representativeKeyKey field for Fiori display

CDS View Stack (Recommended Pattern)

  1. Interface View (I_): Stable API, reusable across applications. SAP-delivered.
  2. Consumption View (C_): Built on interface views, adds analytical annotations. SAP or custom.
  3. Extension View (Z_): Custom extensions via CDS view extension or wrapper views.

Virtual Data Model (VDM)

S/4HANA VDM organizes CDS views into layers:

  • Basic (private): Direct table access — not for consumption
  • Composite (restricted): Join multiple basic views — internal use
  • Consumption (public): Exposed to Fiori, OData, SAC — the API layer

Key Analytical CDS Views (Examples)

CDS ViewDomain
C_TRIALBALANCEFinancial — Trial balance
C_JOURNALENTRYITEMQFinancial — Journal entries
C_GLLINEITEMQFinancial — GL line items
C_PROFITCENTERACTUALQCO — Profit center actuals
C_PURCHASEORDERITEMQMM — Purchase order analytics
C_SALESORDERITEMQSD — Sales order analytics
C_PRODUCTIONORDERQPP — Production order analytics

SAP Analytics Cloud

SAC Capabilities

  • Business Intelligence: Stories, dashboards, smart insights, smart predict
  • Planning: Financial and operational planning with versioning
  • Predictive: Time series forecasting, classification, regression
  • Application Design: Custom analytical applications with scripting

Connection Types

TypeData FreshnessUse CaseLimitations
Live (HANA)Real-timeOperational dashboardsNo blending, limited data wrangling
Live (BW)Real-timeBW query consumptionNo blending across connections
Import (scheduled)Scheduled refreshCross-source blending, planningData latency, storage limits
Import (file)Manual uploadAd-hoc analysisNo automation

Story Design Best Practices

  1. One story, one purpose — do not combine operational monitoring with strategic analysis
  2. Use responsive pages — design for desktop and mobile from the start
  3. Limit widgets per page to 8-10 — performance degrades with widget count
  4. Use input controls over page filters for user-facing filtering
  5. Set default filters to avoid full-data-set initial load
  6. Use calculated measures sparingly — complex calculations degrade live connection performance

SAC Planning

Planning Model Design

  • Accounts dimension: Mandatory — represents the measure structure (revenue, cost, headcount)
  • Time dimension: Mandatory — fiscal or calendar periods
  • Organization dimension: Company code, cost center, profit center
  • Category dimension: Plan, actual, forecast, budget versions
  • Custom dimensions: Product, region, project as needed

Key Planning Features

FeatureDescription
Data ActionsAutomated allocation, copy, distribution operations
Multi ActionsChain multiple data actions with parameters
Predictive ForecastingTime-series-based forecast generation
Value Driver TreesTop-down planning with driver decomposition
Calendar TasksWorkflow for planning cycles with assignments and deadlines
Version ManagementPlan, budget, forecast version comparisons

Integration with S/4HANA

  • Embedded Planning: SAC planning models connected live to S/4HANA ACDOCA
  • Writeback: Plan data written back to S/4HANA for integrated financial reporting
  • Data Actions for Actuals: Pull actuals from S/4HANA into planning models for comparison

Fiori Analytical Apps

App Types

TypeTechnologyExample
Overview Page (OVP)Smart annotations, CDSFinancial Overview, Procurement Overview
Analytical List Page (ALP)CDS + SmartTableJournal Entry Items, Sales Orders
KPI WorkspaceKPI modelerCustom KPI tiles on Fiori Launchpad
SAC EmbeddediFrame/mashupEmbedded SAC story in Fiori

Key Standard Analytical Apps

  • F0996A: Financial Statement (actual/plan comparison)
  • F1531: Display Journal Entries
  • F2077: Manage Cost Centers and Budgets
  • F0713: Sales Order Fulfillment Analysis
  • F0842: Purchase Order Tracking
  • F2439: Inventory Analysis

BW/4HANA

When to Use BW/4HANA

  • Cross-system reporting (multiple S/4HANA instances, non-SAP sources)
  • Historical data retention beyond S/4HANA operational data lifetime
  • Complex transformation and data modeling beyond CDS view capabilities
  • Near-line storage for large data volumes

Key Objects

ObjectPurpose
ADSO (Advanced DataStore Object)Primary data persistence
CompositeProviderVirtual data integration layer
Open ODS ViewExternal data consumption without persistence
BW QueryAnalytical query for consumption by SAC or Fiori

CDS Extraction

S/4HANA -> BW/4HANA extraction uses CDS-based extractors (replacing classic datasources). Annotation: @Analytics.dataExtraction.enabled: true.

SAP Datasphere

Positioning

SAP Datasphere (formerly Data Warehouse Cloud) is the cloud data integration and modeling layer.

Key Capabilities

  • Spaces: Isolated workspaces for data governance
  • Data Builder: Graphical data flow and view modeling
  • Business Layer: Business-friendly semantic model on technical data
  • Data Marketplace: Third-party and SAP content packages
  • Open SQL Schema: Direct HANA SQL access for advanced scenarios

Integration with SAC

Datasphere serves as the semantic layer between raw data and SAC stories. Pattern: Source systems -> Datasphere (model/govern) -> SAC (visualize/plan).

Best Practices

  1. Start with SAP standard content — check the SAC content library and Fiori apps library before building custom
  2. Design CDS views for reuse — build interface views that multiple consumption views can reference
  3. Implement row-level security via DCL — CDS data control language for authorization, not application-level filtering
  4. Use bookmarks in SAC stories for personalized views instead of duplicating stories
  5. Monitor CDS view performance — use SQL explain plan and HANA monitoring to detect expensive views

Anti-Patterns

  • Building ABAP ALV reports for analytics in S/4HANA (bypasses the VDM and lacks CDS benefits)
  • Creating one massive CDS view with 50+ joins instead of layered VDM approach (performance disaster)
  • Using SAC import mode for data that changes hourly (live connection is appropriate)
  • Skipping @AccessControl annotations — data exposed to all users without explicit authorization
  • Hardcoding currency conversion in CDS views instead of using standard conversion functions

Verification

This skill is complete ONLY when ALL of the following are true:

  • Correct analytics technology selected for the scenario (CDS, SAC, BW/4HANA, Datasphere)
  • Authorization approach defined (DCL for CDS, SAC security for stories)
  • Connection type justified (live vs. import with rationale)
  • Standard content checked before proposing custom development
  • KPI definitions validated against business requirements, not just technical correctness
  • Performance implications considered (view complexity, data volume, refresh frequency)

Evidence required: Specific CDS view names, SAC model design decisions, connection type justification, and standard content references — not generic analytics advice.

Next Skill

After completing this skill, invoke:

  • fi — When financial reporting CDS views or GL analytics are the focus
  • btp — When custom analytical applications or Datasphere configuration is needed
  • abap-cloud — When custom CDS view development is required

Cross-References

  • fi — Financial reporting, trial balance, journal entry analytics
  • co — Cost center and profit center analytical views
  • abap-cloud — CDS view development, ABAP SQL, RAP-based analytical services
  • btp — SAP Datasphere administration, SAC tenant management
  • sf — Workforce analytics integration with SuccessFactors data

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.