Entering content frameBackground documentation Calculation and Initialization Events Locate the document in its SAP Library structure

For your calculation you must specify the following events:

Note

You also have the option of not specifying an initialization event. For example, you may want to use the result of a calculation of the preceding node in the tree as initial value.

Events and Output

SAP Smart Forms automatically inserts the calculations and initializations into processing. The events are not visible in the navigation tree; they are triggered implicitly by SAP Smart Forms. In the table below, which contains one sort criterion, these implicit events are highlighted by different colors:

Note

To simplify this diagram, we assume that in the header, main, and footer areas only table lines appear as inferior nodes. However, the tree could just as well contain a loop or a folder.

Implicit Calculation and Initialization Events

Initialization

This graphic is explained in the accompanying text

Table

This graphic is explained in the accompanying text 

Header

This graphic is explained in the accompanying textThis graphic is explained in the accompanying text

CARRID Event on Sort Begin

 

Reset Sort Criterion CARRID

 

Before Sorting

 

This graphic is explained in the accompanying text

Table Line

 

...

 

This graphic is explained in the accompanying text

Table Line

This graphic is explained in the accompanying text

Main Area

 

Before Loop

 

This graphic is explained in the accompanying text

Table Line

 

....

 

This graphic is explained in the accompanying text

Table Line

 

After Loop

This graphic is explained in the accompanying textThis graphic is explained in the accompanying text

CARRID Event on Sort End

 

This graphic is explained in the accompanying text

Table Line

 

....

 

This graphic is explained in the accompanying text

Table Line

 

After Sorting

This graphic is explained in the accompanying text

Footer

Note

The processing of loops and tables results in an out-of-sync execution of program lines nodes and their subsequent table output. In contrast, the automatic calculations using the Calculations tab and their subsequent output are in sync. Therefore, when you execute calculations via the tab, there are no special options for output of subresults before a page break. (See also: Summing Up Different Currencies).

 

 

 

 

Leaving content frame