Back to Browse

SAP Analytics Cloud (SAC Planning ) : Export to PDF Using SAC Script

409 views
Dec 11, 2025
10:02

SAP Analytics Cloud (SAC Planning ) : Export to PDF Using SAC Script In SAP Analytics Cloud (SAC), exporting to PDF via script is primarily achieved using the Export to PDF Technical Object and its associated scripting APIs, such as exportView() . Setting Up the Export Object : To use these scripts, you must first add the technical object to your application: 1. In the Scripting section of the Outline, click the + icon next to Export to PDF. 2. A technical object (default name ExportToPDF_1) will be created. 3. (Optional) Configure default properties in the side panel, such as page orientation, paper size, and whether to include comments or an appendix. Once the technical object is created, you can call it from events (like a button's onClick event) using these main commands: • ExportToPDF_1.exportView();: Exports the current application or story view exactly as it appears, similar to a screenshot. • ExportToPDF_1.exportReport();: Specifically designed for tables, this command exports the data page by page into a report format. Advanced Script Configuration You can dynamically adjust PDF properties through script before triggering the export: • File Name: ExportToPDF_1.setFileName("YourFileName");. • Orientation: ExportToPDF_1.setPageOrientation(PageOrientation.Landscape); or PageOrientation.Portrait. • Page Size: ExportToPDF_1.setPageSize(PageSize.A4); or PageSize.Auto. • Visibility Options: o ExportToPDF_1.setHeaderVisible(true); o ExportToPDF_1.setCommentsVisible(true); o ExportToPDF_1.setAppendixVisible(true); Implementation Challenges and Limitations • Visible Content Only: The exportView() method generally only exports what is currently visible on the screen. Elements like invisible tab content or the hidden parts of scrollable tables may not be included.

Download

1 formats

Video Formats

360pmp47.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

SAP Analytics Cloud (SAC Planning ) : Export to PDF Using SAC Script | NatokHD