Start of Content Area

Function documentation Special Functions for Outputting Information  Locate the document in its SAP Library structure

Use

The special functions enable you to:

·        Output tables only when the relevant data exists

·        Output values or flag them depending on conditions

·        Use different views of the dataset by using pointers to table contents

Features

·        You can set conditions to specify the conditions in which you want time evaluation data to be output. The most common condition in the time statement queries to what extent the requested time evaluation data exists for the employee in the selection period. If there is no data, no time evaluation data or related tables and headings need to be output.

The standard form contains the following structure:

For each node to be output, SAP Smart Forms first processes a loop in which it determines whether there is any data for the employee and evaluation period.

The node attribute for the loop contains the L_DOIT (name of target field) condition:

¡        If L_DOIT is greater than zero, there is data. The node is to be output.

¡        If L_DOIT equals zero, there is no data. The output is to be suppressed.

You can set this condition for all nodes and subnodes that are processed; the higher-level node has the higher priority.

Example

Reading attendances (ANWES table)

Node

Description

Calculation/Condition

<Folder> ANWES

 

Attendances

 

<Loop>             I_ANWES

Suppress output

Calculate number of loops (=L_DOIT)

<Text node>      HA_ANWES

Attendances (heading)

Output only if L_DOIT is greater than zero

<Table node>    T_ANWES

Attendances (table)

Output only if L_DOIT is greater than zero

Recommendation

If you want to inform your employees that there is no time evaluation data of that type for the selection period, you can also define a text node. The text could read There are no attendances for this period, for example.

You can use L_DOIT = 0 as an attribute for the text node so that it is displayed only if there is not time evaluation data of the relevant type.

·        You can specify any conditions and layout attributes for the output of tables, texts, or data for displaying master data and time evaluation data. Whereas for conditions, the upper-level node has the higher priority, in the case of layout attributes it is the lower-level nodes that have a higher priority than the upper-level nodes.

·        Providing certain conditions are met, you can have elements of the form’s content grayed out. The standard forms apply this technique for the following situations:

¡        In the output of individual day results if periods for forming totals extend beyond the selection period (see also Periods for the Time Statement).

¡        In the output of individual day results if time evaluation results are preliminary. This is the case if time evaluation detected an error (COLER F) for the employee and therefore carried out only a preliminary evaluation for the periods.

The condition is defined for the following node in the form layout: FIRST_PAGE ® TIMEEVALDATA ® I_DIM_EMPLOYEE (personnel numbers) ® I_PERIODS ® DAILYDATA ® T_PSP (individual day results) ® Main Area ® DAILY ® I_TP (if there are time pairs) ® L_DAYDATA_GRAY (day row before selection period).

 

End of Content Area