28 apr

Formula Workshop

Versino Financial Suite

Of the Formula Workshop is the central formula editor in SAP Crystal Reports. It is used to write formula fields, conditional formatting, selection formulas, running totals, and group-specific calculations — everything that goes beyond the mere placement of database fields. The workshop accompanies the entire lifecycle of report logic within a Crystal Reports layout.

Context

The Formula Workshop can be opened, for example, via View → Formula Workshop or from format dialogs (click on the x+2– Button next to a property). It offers two syntax variants: Crystal Syntax (Standard, Pascal-like) and Basic Syntax (Visual Basic-like). Typical use cases: conditionally adjusting font size, e.g.

if {@LanguageCode%} = "D" then 10 else 12

for a German document a more compact font than for other localisations. In addition, Formula Fields (visible result fields), Selection Formulas (Database-level record filter) and Running Totals (running totals over groups) are maintained. The workshop provides function categories: strings, date/time, mathematical functions (ABS, CEILING, FLOOR, MAX, MIN, ROUND), logical functions, summation functions, and special fields such as Page number or Record Number. Arithmetic operators, parentheses, and function calls can be typed or inserted via a menu. A test console checks the syntax before the formula is applied to the layout.

Demarcation

The Formula Workshop is not an SQL editor: it works on the data that the report has already imported, not directly on the Database. For SQL-like logic, Views, Stored Procedures or Command Objects within Crystal are better suited. It is also not identical to Formatted Searches in the SAP Business One client (determining UDF values via database queries), and not with the formula language of Pervasive analytics- KPIs that offer similar arithmetic and numerical functions (ABS, CEILING, FLOOR, MAX, MIN, ROUND), but operate on HANA views instead of Crystal datasets.


AI in everyday work: Person starts with their own task instead of the learning pile

AI in everyday work: Here's how to find the right start

Anyone who wants to use AI in their daily work is familiar with this: You read an article about prompts. A new model appears in it ...
AI-SHOP

AI assistant meets SAP Business One: Two paths out of the Versino AI shop

AI assistants like Claude or Copilot write emails, compile documents, and explain technical terms. But when you ask them about the open-source code...
SPRINT & SWIRL

Sprint and Swirl: How an AI agent divides work and learns from trials

This series deals with artificial intelligence in conjunction with SAP Business One. It takes a close look at fundamental AI principles...
LATS

LATS: Considering several paths simultaneously with AI — and the availability check in SAP B1

This series focuses on artificial intelligence in conjunction with SAP Business One. Not as a collection of product announcements, but as...
ReAct and RLEF

ReAct and RLEF: How Artificial Intelligence Learns from Real Mistakes — and What Automated Bank Reconciliation in SAP Business One Has to Do with It

This is the fourth instalment in a series on this blog dealing with AI fundamentals in conjunction with SAP Business One...
Service Layer AI as a transactional layer

SAP B1 10.0 FP2608: Service Layer AI as a transactional layer

The SAP Business One Service Layer has previously served predominantly as a passive data provider: applications requested data via OData, each ...
Wird geladen …