Comprehensive skill for building enterprise planning applications with SAP Analytics Cloud.
Builds enterprise planning applications in SAP Analytics Cloud with data actions, workflows, and APIs.
/plugin marketplace add secondsky/sap-skills/plugin install sap-sac-planning@sap-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
README.mdreferences/advanced-formulas.mdreferences/ai-planning-analytics.mdreferences/allocations.mdreferences/analytics-designer-planning.mdreferences/api-reference.mdreferences/api-snippets.mdreferences/bpc-live-connection.mdreferences/data-action-tracing.mdreferences/data-actions.mdreferences/data-locking.mdreferences/input-tasks.mdreferences/javascript-patterns.mdreferences/job-monitoring.mdreferences/modeling-basics.mdreferences/multi-actions.mdreferences/planning-workflows.mdreferences/predictive-conversion.mdreferences/s4hana-acdocp-export.mdreferences/scheduling-calendar.mdComprehensive skill for building enterprise planning applications with SAP Analytics Cloud.
references/data-actions.md, references/multi-actions.md, references/allocations.md, references/scheduling-calendar.md, references/data-locking.mdreferences/modeling-basics.md, references/version-management.md, references/version-edit-modes.md, references/version-publishing-notes.mdreferences/advanced-formulas.md, references/predictive-conversion.md, references/ai-planning-analytics.md, references/api-snippets.mdreferences/input-tasks.md, references/job-monitoring.mdreferences/seamless-planning-datasphere.md, references/bpc-live-connection.md, references/value-driver-trees.md, references/data-action-tracing.mdtemplates/data-action-checklist.md, templates/multi-action-checklist.md, templates/parameter-table.mdUse these to keep instructions concise in this file while deep-dives remain one click away.
Use this skill when working on tasks involving:
Planning Application Development:
Data Actions & Multi Actions:
Version Management:
Planning Workflows:
JavaScript Planning APIs:
Data Entry & Allocation:
Data Locking:
Seamless Planning with Datasphere (2025):
BPC Live Connection:
Value Driver Trees:
Data Action Debugging:
Create Planning Model with required dimensions:
Add Table Widget to story and link to planning model
Enable Planning on the table:
Configure Data Entry:
Planning Model:
Analytic Model:
Public Versions:
Private Versions:
Edit Mode:
Reference: See references/version-management.md for detailed workflows.
getPlanning() API - Table planning operations:
// Check if planning is enabled
var isEnabled = Table_1.getPlanning().isEnabled();
// Get public versions
var publicVersions = Table_1.getPlanning().getPublicVersions();
// Get private version
var privateVersion = Table_1.getPlanning().getPrivateVersion();
// Set user input (data entry)
Table_1.getPlanning().setUserInput(selection, value);
// Submit data changes
Table_1.getPlanning().submitData();
PlanningModel API - Master data operations:
// Get dimension members with properties
var members = PlanningModel_1.getMembers("CostCenter");
// Create new members
PlanningModel_1.createMembers("CostCenter", [
{id: "CC100", description: "Marketing"}
]);
// Update existing members
PlanningModel_1.updateMembers("CostCenter", [
{id: "CC100", description: "Marketing Dept"}
]);
// Delete members
PlanningModel_1.deleteMembers("CostCenter", ["CC100"]);
DataSource API - Filtering and querying:
// Set dimension filter
Table_1.getDataSource().setDimensionFilter("Version",
"[Version].[parentId].&[public.Actual]");
// Get members with booked values only
var members = Table_1.getDataSource().getMembers("Account",
{accessMode: MemberAccessMode.BookedValues});
// Remove filter
Table_1.getDataSource().removeDimensionFilter("Version");
Reference: See references/api-reference.md for complete API documentation.
Data actions perform calculations and data manipulation on planning models.
| Step Type | Purpose |
|---|---|
| Copy | Move data between dimensions/versions |
| Advanced Formula | Complex calculations |
| Allocation | Rule-based distribution |
| Currency Conversion | Convert currencies |
| Embedded Data Action | Run another data action |
Source:
Version = Actual
Year = 2024
Target:
Version = Budget
Year = 2025
Mapping:
Account = Account (same)
CostCenter = CostCenter (same)
// Calculate forecast = Actual + (Budget - Actual) * 0.5
[Version].[Forecast] = [Version].[Actual] +
([Version].[Budget] - [Version].[Actual]) * 0.5
Add parameters to make data actions reusable:
Reference: See references/data-actions.md for complete configuration guide.
Multi actions orchestrate multiple planning operations across models and versions.
1. Clean target version (Data Action)
2. Import actuals (Data Import)
3. Run forecast (Predictive)
4. Calculate allocations (Data Action)
5. Publish to public version (Version Management)
6. Lock published data (Data Locking)
When using public dimensions, create cross-model parameters to share values across steps in different models.
Reference: See references/data-actions.md for multi action configuration.
Export native planning data from SAC to SAP S/4HANA's ACDOCP table (central ERP plan data storage).
SAC Planning Model → Data Export Service → Cloud Connector → API_PLPACDOCPDATA_SRV → ACDOCP
| Requirement | Details |
|---|---|
| Legacy Mode | Must be enabled on planning model |
| OData Service | Activate API_PLPACDOCPDATA_SRV in /IWFND/MAINT_SERVICE |
| Cloud Connector | Required for on-premise S/4HANA |
Reference: See references/s4hana-acdocp-export.md for complete configuration guide, troubleshooting, and SAP documentation links.
Seamless Planning unifies SAC planning with SAP Datasphere, enabling enterprise-grade storage and governance for plan data.
SAC (Planning Logic & UX) ──Direct Persistence──► Datasphere (Data Storage & Governance)
What stays in SAC: Planning calculations, version management, data actions, calendar workflows What moves to Datasphere: Fact data, public dimensions, physical storage, data governance
| Benefit | Description |
|---|---|
| Unified Data | Centralized storage ensures consistency |
| Direct Persistence | Changes in SAC instantly reflect in Datasphere |
| Optimized Resources | Reduces SAC memory and storage footprint |
| Enterprise Reusability | Datasphere modeling extends to planning data |
All models for cross-model operations (data actions, multi actions) must be in the same Datasphere space.
Reference: See references/seamless-planning-datasphere.md for detailed architecture, configuration, and troubleshooting.
SAC supports live data connections to BPC Embedded on S/4HANA, enabling planning with the BPC engine while using SAC's modern interface.
| Version | Planning Support |
|---|---|
| BPC Embedded (S/4HANA) | Full planning features |
| BPC for NetWeaver | Limited (read-only) |
| BPC Standard | Export to BPC required |
// Execute BPC planning sequence
PlanningSequence_1.setParameterValue("FISCAL_YEAR", "2025");
PlanningSequence_1.setParameterValue("VERSION", "PLAN");
PlanningSequence_1.execute().then(function() {
Table_1.getDataSource().refreshData();
});
Use BPC Live when: Existing BPC investment, complex FOX scripts, integrated with BW reporting Use Native SAC when: New implementation, simpler requirements, mobile-first applications
Reference: See references/bpc-live-connection.md for setup, prerequisites, and troubleshooting.
Value Driver Trees (VDT) visualize how values flow through a planning model, enabling driver-based planning and what-if analysis.
| Scenario | Example |
|---|---|
| Driver-Based Planning | Model how prices, headcount impact revenue |
| What-If Analysis | Simulate scenarios, see cascading effects |
| Strategic Planning | Visualize value chain impacts |
| Executive Presentations | Touchscreen-friendly boardroom displays |
| Setup | Description |
|---|---|
| 1 Account + 1 Structure | Single row of values |
| Multiple Accounts | Row per account (e.g., sales + quantity) |
| Multiple Structures | Compare scenarios/currencies |
// Get VDT reference
var vdt = ValueDriverTree_1;
// Get selected node value
var value = vdt.getSelectedNode().getValue("Revenue", "2025Q1");
// Collapse/expand nodes
vdt.collapseNode("Node_Revenue");
vdt.expandNode("Node_Revenue");
Reference: See references/value-driver-trees.md for detailed setup and best practices.
Data Action Tracing is a debugging tool for inspecting intermediate results during data action execution.
| Scenario | How Tracing Helps |
|---|---|
| New Development | Validate each step produces expected results |
| Debugging Failures | Identify which step causes incorrect data |
| Performance Investigation | See which steps process most data |
| Allocation Debugging | Validate driver ratios and distributions |
| View | Description |
|---|---|
| Data at Tracepoint | All values at that point |
| Changes Since Previous | Delta between tracepoints |
| Filtered View | Focus on specific data |
// Add tracepoints in script
[Revenue] = [Quantity] * [Price]
TRACE("After_Revenue_Calc")
[Final] = [Revenue] * (1 + [Tax])
TRACE("After_Tax")
Reference: See references/data-action-tracing.md for complete debugging guide.
The SAP Analytics Cloud calendar organizes collaborative planning processes.
General Task: Data entry by assignees
Review Task: Approval workflow
Composite Task: Combined entry and review
Data Locking Task: Schedule lock changes
Round 1: Regional Managers review regional plans
↓ (on approval)
Round 2: Finance Director reviews consolidated plan
↓ (on approval)
Round 3: CFO final approval
↓ (on approval)
Data Locking: Lock approved plan data
Configure predecessor tasks to create sequential workflows:
Reference: See references/planning-workflows.md for calendar configuration.
Distributes values from parent to child members:
// Spreading happens automatically when entering at aggregate level
// Example: Enter 1000 at "Total Regions" spreads to child regions
Moves values between members at same hierarchy level:
Configure structured allocations in data actions:
Protect planning data during and after planning cycles.
| State | Data Entry | Owner Can Edit |
|---|---|---|
| Open | Yes | Yes |
| Restricted | No (except owner) | Yes |
| Locked | No | No |
| Mixed | Varies | Varies (selection contains multiple states) |
// Get data locking object
var dataLocking = Table_1.getPlanning().getDataLocking();
// Get lock state for selection
var selection = Table_1.getSelections()[0];
var lockState = dataLocking.getState(selection);
// Check if locked
if (lockState === DataLockingState.Locked) {
Application.showMessage("This data is locked.");
}
Reference: See references/planning-workflows.md for data locking patterns.
Create, update, and delete dimension members dynamically at runtime.
// Create new member
PlanningModel_1.createMembers("CostCenter", {
id: "CC_NEW",
description: "New Cost Center"
});
// Update existing member
PlanningModel_1.updateMembers("CostCenter", {
id: "CC_NEW",
description: "Updated Description"
});
// Get single member
var member = PlanningModel_1.getMember("CostCenter", "CC_NEW");
// Get members with pagination
var members = PlanningModel_1.getMembers("CostCenter", {
offset: "0",
limit: "100"
});
Application.refreshData() after member changesReference: See references/analytics-designer-planning.md for complete API documentation.
var allVersions = PlanningModel_1.getMembers("Version");
var activeVersion = "";
for (var i = 0; i < allVersions.length; i++) {
if (allVersions[i].properties.Active === "X") {
activeVersion = allVersions[i].id;
break;
}
}
console.log("Active Version: " + activeVersion);
Application.showBusyIndicator();
Table_1.setVisible(false);
// Find active planning cycle
var cycles = PlanningModel_1.getMembers("PlanningCycle");
var activeCycle = "";
for (var i = 0; i < cycles.length; i++) {
if (cycles[i].properties.Flag === "ACTIVE") {
activeCycle = cycles[i].id;
break;
}
}
// Apply MDX filter
Table_1.getDataSource().setDimensionFilter("Date",
"[Date].[YQM].&[" + activeCycle + "]");
Table_1.setVisible(true);
Application.hideBusyIndicator();
// Get forecast version
var forecastVersion = Table_1.getPlanning().getPublicVersion("Forecast2025");
// Check if changes need publishing
if (forecastVersion.isDirty()) {
forecastVersion.publish();
Application.showMessage("Version published successfully.");
}
// Execute data action with parameters
DataAction_1.setParameterValue("Version", "Budget");
DataAction_1.setParameterValue("Year", "2025");
DataAction_1.execute();
// Or execute in background
DataAction_1.executeInBackground();
Reference: See references/javascript-patterns.md for more examples.
Check:
Debug:
console.log("Planning enabled: " + Table_1.getPlanning().isEnabled());
var lockState = Table_1.getPlanning().getDataLocking().getState(selection);
console.log("Lock state: " + lockState);
Check:
Check:
Debug: Use data action tracing table with "Show Only Leaves" option.
Check:
Essential Resources:
Planning Model & Data:
Data Actions & Multi Actions:
Version Management:
Data Locking:
Calendar & Workflows:
Allocations & Spreading:
Learning Resources:
This skill includes comprehensive reference documentation (24 files):
API & Scripting:
Core Planning Features: 4. references/data-actions.md: Data Actions, Multi Actions, parameters, steps 5. references/multi-actions.md: Orchestrate multiple planning operations 6. references/allocations.md: Rule-based distribution and allocations 7. references/advanced-formulas.md: Complex calculations and formulas 8. references/predictive-conversion.md: Predictive forecasting integration
Workflow & Collaboration: 9. references/planning-workflows.md: Calendar, tasks, approvals, data locking 10. references/scheduling-calendar.md: Planning calendar setup 11. references/input-tasks.md: Collaborative data entry tasks 12. references/job-monitoring.md: Track data action execution
Version Management: 13. references/version-management.md: Versions, publishing, sharing, edit mode 14. references/version-edit-modes.md: Version editing workflows 15. references/version-publishing-notes.md: Publishing best practices
Integration & Advanced: 16. references/s4hana-acdocp-export.md: S/4HANA integration, ACDOCP export, OData setup 17. references/ai-planning-analytics.md: AI-powered planning features
Development: 18. references/javascript-patterns.md: Code snippets, patterns, best practices 19. references/modeling-basics.md: Planning model fundamentals 20. references/data-locking.md: Configure and manage data locks
New in 2025: 21. references/seamless-planning-datasphere.md: Seamless Planning architecture, prerequisites, configuration with SAP Datasphere 22. references/bpc-live-connection.md: BPC Embedded live connection, planning sequences, master data planning 23. references/value-driver-trees.md: Value driver tree setup, node configuration, JavaScript API 24. references/data-action-tracing.md: Data action tracing, tracepoints, debugging techniques
When using this skill:
[Dim].[Hierarchy].&[Member]For troubleshooting:
references/data-actions.md - Data actions configuration and executionreferences/multi-actions.md - Multi-action orchestrationreferences/allocations.md - Allocation methods and spreadingreferences/scheduling-calendar.md - Workflow schedulingreferences/data-locking.md - Data locking configurationreferences/version-management.md - Version management best practicesreferences/api-reference.md - Planning API referencereferences/javascript-patterns.md - JavaScript scripting patternstemplates/data-action-checklist.md - Data action implementation checklisttemplates/multi-action-checklist.md - Multi-action setup guidetemplates/parameter-table.md - Parameter table templateLicense: GPL-3.0 Version: 1.4.0 Maintained by: SAP Skills Maintainers Repository: https://github.com/secondsky/sap-skills
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.