Start of Content Area

Function documentation Data Declaration  Locate the document in its SAP Library structure

Use

A declaration is defined as a determination of aspects of a variable.

In FOX, all data declarations are initiated using DATA followed by the name of the help variable. The name must start with a letter and can contain both letters and numbers, but no special characters. Variable names must be different from key words such as DATA; ELSEIF, and SIN.

Example

DATA HELPVAR TYPE I.

DATA KEYRA TYPE KEYFIGURE_NAME.

Caution

If the formula syntax is later enhanced by a new key word, then any pre-existing variables of the same name will become invalid.

Recommendation

To avoid errors, do not name variables like characteristic values and enclose characteristic values in quotation marks.

There are three variable types to choose from:

      I (Integer Numbers) for index operations (predefined)

      F (Floating Point Numbers) for calculations (predefined)

      Variables of the same type as the characteristics to be changed.

The technical name of the characteristic is used here as the type name. If you have selected Key Figure Name, variables of type KEYFIGURE_NAME can be defined. The valid data types can be displayed using Data Types.

In addition to this you can also create data types for attributes. If the attributes are of the type Key Figure, you have create help variables of types F or I. If you want to read attribute values with the ATRV function, you need the technical name of the attribute.

 

End of Content Area