All skills
secondsky avatar

/sap-sac-scripting

@620a19a
by Eddiesecondsky/sap-skills456 stars
120

Comprehensive SAC scripting skill for SAP Analytics Cloud Analytics Designer and Optimized Story Experience. This skill should be used when the user asks to "create SAC script", "debug Analytics Designer", "optimize SAC performance", "planning operations in SAC", "filter data in SAC", "use DataSource API", "chart scripting", "table manipulation", "SAC event handlers", "version management", "data locking", "Optimized Story Experience API", "OSE scripting", "OSE widget API", "OSE DataSource", "story scripting API", "OSE planning API", "OSE method", "optimized story", "SAC story scripting", "story script", "SAC scripting", "debug SAC runtime in Microsoft Edge via CDP", or works with SAC widgets, planning models, or analytics applications.

Use this Skill: https://skilld.dev/gh/secondsky/sap-skills/sap-sac-scripting

This session only. Nothing lands on disk.

README.md

≈2.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

SAP SAC Scripting Skill

Portable SAP Analytics Cloud (SAC) scripting skill for AI coding assistants, including Analytics Designer and Optimized Story Experience.

Overview

This skill provides guidance, API references, and ready-to-use templates for developing interactive analytics applications and enhanced stories in SAP Analytics Cloud.

Version: 2.3.0 SAC Version: Q2 2026 (2026.8) OSE API Version: 2025.20 Last Updated: 2026-06-16

Capability Index

Capability Status
Commands 4: /sac-debug, /sac-optimize, /sac-planning, /sac-script-template
Agents 4: sac-api-helper, sac-performance-optimizer, sac-planning-assistant, sac-script-debugger
Hooks Yes: hooks/hooks.json
MCP Yes: .mcp.json
LSP No
Source Freshness last_verified: 2026-06-11; OSE API references are aligned to 2025.20 and oversized OSE references require search routing from SKILL.md.
Verification npm run validate; live SAC story/runtime checks pending.

Installation

Install through the supported skills/plugin mechanism for your AI coding assistant. In clients without native command, agent, hook, or MCP support, treat those files as Markdown guidance, manual validators, and connection recipes.

For a direct local copy:

# Clone or download to your assistant's skills folder
cp -r sap-sac-scripting <skills-directory>/

When to Use

This skill triggers when you're working with:

Technologies & Platforms

  • SAP Analytics Cloud (SAC)
  • Analytics Designer
  • Optimized Story Experience (OSE)
  • Advanced Mode scripting
  • SAC Planning
  • SAC Analytics applications
  • Analytic applications

Development Tasks

  • Creating interactive dashboards
  • Building planning applications
  • Writing event handler scripts
  • Implementing widget interactions
  • Managing data sources programmatically
  • Applying dynamic filters
  • Creating popups and dialogs

Specific APIs & Objects

  • Application object
  • DataSource API
  • Chart widget scripting
  • Table widget scripting
  • Planning API
  • Input controls (Dropdown, ListBox, Slider)
  • Global variables and script objects
  • Data actions and multi-actions

Common Operations

  • onInitialization event
  • onSelect event
  • onResultChanged event
  • getDataSource()
  • setDimensionFilter()
  • getMembers()
  • getSelections()
  • getPublicVersion()
  • publish()
  • showBusyIndicator()

Skill Contents

Main Files

  • SKILL.md - Core skill instructions and quick reference
  • README.md - This file (keywords and overview)

Reference Files (65 files)

Starter API routes:

  • references/api-datasource.md - Complete DataSource API (36+ methods)
  • references/api-widgets.md - Chart, Table, Input Controls APIs
  • references/api-planning.md - Planning API, version management
  • references/api-application.md - Application object, utilities, events

Advanced APIs:

  • references/api-calendar-bookmarks.md - Calendar integration, Bookmarks, Linked Analysis, Timer
  • references/api-advanced-widgets.md - Containers, Layout API, R Viz, Custom Widgets, Navigation
  • references/api-data-operations.md - Range/exclude filters, hierarchies, members, DataSource info

Scripting Fundamentals:

  • references/scripting-language-fundamentals.md - Type system, variables, loops, arrays, built-in objects
  • references/debugging-browser-tools.md - Console logging, browser debugging, breakpoints, R visualization debugging

Best Practices:

  • references/best-practices-developer.md - Naming conventions, layout organization, script annotation
  • references/best-practices-planning-stories.md - Multi-story architecture, entry point design, navigation scripting

Templates (56 patterns)

  • templates/common-patterns.js - 40 scripting patterns (filtering, loops, arrays, R viz, type conversion)
  • templates/planning-operations.js - 16 planning-specific patterns

Keywords

Primary Keywords

  • SAP Analytics Cloud
  • SAC scripting
  • Analytics Designer
  • Optimized Story Experience
  • SAC JavaScript
  • analytic application
  • SAC planning application
  • SAC dashboard

API Keywords

  • DataSource API
  • getDataSource
  • setDimensionFilter
  • removeDimensionFilter
  • getDimensionFilters
  • copyDimensionFilterFrom
  • getMembers
  • getMeasures
  • getDimensions
  • getResultSet
  • getData
  • refreshData
  • setRefreshPaused

Widget Keywords

  • Chart scripting
  • Table scripting
  • addDimension
  • addMeasure
  • removeMember
  • getSelections
  • addDimensionToRows
  • addDimensionToColumns
  • Input control
  • Dropdown
  • ListBox
  • Slider
  • Button onClick
  • Popup dialog

Planning Keywords

  • SAC planning
  • getPlanning
  • getPublicVersion
  • getPrivateVersion
  • publish
  • isDirty
  • copy version
  • revert changes
  • data locking
  • DataLockingState
  • PlanningCopyOption
  • PlanningCategory
  • submitData

Application Keywords

  • Application object
  • showBusyIndicator
  • hideBusyIndicator
  • showMessage
  • ApplicationMessageType
  • getUserInfo
  • getInfo
  • getMode
  • NavigationUtils
  • Export PDF
  • Export Excel

Calendar Keywords

  • Calendar integration
  • CalendarCompositeTask
  • getCalendarEventById
  • getCurrentEvent
  • createProcess
  • createTask
  • approve
  • reject
  • submit
  • addReminder
  • planning workflow
  • calendar task

Bookmark Keywords

  • Bookmarks
  • BookmarkSet
  • saveBookmark
  • apply bookmark
  • getAppliedBookmark
  • deleteBookmark
  • global bookmark
  • personal bookmark
  • URL bookmarkId

Container/Layout Keywords

  • Panel widget
  • TabStrip
  • PageBook
  • Flow Layout Panel
  • container widgets
  • Layout API
  • setWidth
  • setHeight
  • setLeft
  • setRight
  • responsive layout
  • getSelectedTab
  • setSelectedPage

Advanced Keywords

  • Timer
  • Timer API
  • onTimeout
  • Linked Analysis
  • setFilters
  • R Visualization
  • Custom Widget
  • Script Object
  • Technical Object

Event Keywords

  • onInitialization
  • onSelect
  • onResultChanged
  • onClick
  • onResize
  • onOrientationChange
  • onOpen
  • onClose
  • event handler
  • script object
  • global variable

Development Keywords

  • console.log
  • debugger statement
  • debug mode
  • performance optimization
  • pause refresh
  • batch filter
  • URL parameters
  • p_ prefix

Error/Issue Keywords

  • SAC script error
  • scripting not working
  • filter not applying
  • selection handling
  • data not refreshing
  • version publish failed
  • data locked

Language Fundamentals Keywords

  • SAC type system
  • strong typing
  • static typing
  • toString()
  • explicit type conversion
  • no automatic type casting
  • JavaScript subset
  • strict mode
  • var declaration
  • for loop iterator
  • while loop
  • for-in loop
  • switch statement
  • break statement
  • triple equals
  • strict equality
  • method chaining
  • ArrayUtils
  • 2D array
  • two-dimensional array

Filter Keywords

  • exclude filter
  • range filter
  • setDimensionFilter
  • getDimensionFilters
  • FilterValueType
  • SingleFilterValue
  • MultipleFilterValue
  • RangeFilterValue
  • from to filter
  • less than filter
  • greater than filter

Hierarchy Keywords

  • setHierarchy
  • setHierarchyLevel
  • getHierarchyLevel
  • expandNode
  • collapseNode
  • hierarchy manipulation

Debugging Keywords

  • browser debugging
  • Chrome DevTools
  • F12
  • Sources tab
  • sandbox.worker.main
  • debug=true
  • debugger statement
  • breakpoints
  • script names
  • transformed scripts
  • R environment
  • getEnvironmentValues
  • getInputParameters

Pattern-Based Function Keywords

  • pattern-based function
  • training examples
  • string transformation
  • ML pattern matching

Developer Best Practices Keywords

  • SAC naming conventions
  • widget naming prefixes
  • SAC story organization
  • maintainable SAC stories
  • SAC code documentation
  • SAC script comments
  • panel organization
  • responsive SAC layout
  • SAC design guidelines
  • story development best practices

Planning Story Architecture Keywords

  • planning story architecture
  • multi-story planning
  • planning entry point
  • story navigation scripting
  • NavigationUtils.openStory
  • planning sidebar
  • Guide Me popup
  • planning user assistance
  • step-by-step instructions
  • button color coding
  • planning folder structure

Documentation Sources

Related Skills

  • SAP SAPUI5 Development
  • SAP BTP Development
  • SAP Fiori Development

License

GPL-3.0 License

Maintainer

Eduard Jiglau | hello@sap-ai-skills.com | sap-ai-skills.com | https://github.com/secondsky/sap-skills


Repository: https://github.com/secondsky/sap-skills

Source: SKILL.md on GitHub

1 alert16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a comprehensive reference and template collection for SAP Analytics Cloud (SAC) scripting. It provides secure instructions for setting up an associated Model Context Protocol (MCP) server, including commit pinning and security flags during installation. It also incorporates multiple security best practices for developers, such as origin validation for iframe communication.

  • Socket16d

    1 alert: gptAnomaly

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    32/61 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 620a19a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "maintainer": "Eduard Jiglau",
  "maintainer_email": "hello@sap-ai-skills.com",
  "website": "https://sap-ai-skills.com",
  "version": "2.4.1",
  "last_verified": "2026-06-11",
  "sac_version": "Q2 2026 (2026.8)",
  "api_reference_version": "2025.20 (OSE Q2 2026)",
  "documentation_source": "https://help.sap.com/docs/SAP_ANALYTICS_CLOUD",
  "reference_files": 66,
  "template_patterns": 56,
  "agents": 4,
  "commands": 4,
  "status": "docs_audited_runtime_pending",
  "known_issues": [
    "Live SAC story/runtime checks require tenant evidence before claiming production validation."
  ]
}

README badge

README badge for secondsky/sap-skills/sap-sac-scripting