SAP Variant Configuration and Pricing Extension Guide

This manual describes how to use local extensions in SAP Variant Configuration and Pricing.


SAP Variant Configuration and Pricing Extension Guide - cover page
Brand
SAP
Category
Other
Document type
User Manual
Language
English
Pages
62
File format
PDF
File size
646 KB
Published
26 October, 2023
Updated
26 October, 2023
MD5 checksum
E2583CD45926A5B8D0B2F72D1CBC6AEA

About this manual

This document explains how to implement local and remote extensions for SAP Variant Configuration and Pricing. Local extensions use JavaScript and are executed in a secure environment, while remote extensions call REST endpoints. The guide covers administration, implementation, restrictions, tracing, and logging for both extension types.

It also details the naming conventions for functions, supported languages (ECMAScript 2021), and how to handle errors and timeouts. Extensions are limited to variant functions and pricing formulas, with no direct access to underlying database tables.

What's inside

  • Local Extensions
  • Administration of Local Extensions
  • Buffering Extension Calls of Local Extensions
  • Implementation of Local Extensions
  • Restrictions
  • Function Names
  • Tracing
  • Logging
  • Error Handling for Local Extensions
  • Timeout for Local Extensions

Frequently asked questions

What are local extensions in SAP Variant Configuration and Pricing?

Local extensions are JavaScript-based implementations executed in a secure environment within the cloud. They can extend variant functions and pricing routines but do not have direct access to underlying database tables.

How do I enable local extensions?

Enable local extensions via a toggle switch in the Extensions page under Configuration or Pricing -> Extensions -> Extension Enabling.

How do I log messages in local extensions?

Use the global object sap.log() with methods debug(...) and error(...) to write logs, which appear in the same trace file as extension traces.

Download PDF (646 KB)

More SAP Manuals


View all SAP manuals →