FAB Data Model

The FAB Data Model is used to define the data structure and provide the methods required to set the data or to retrieve data from the SAP server. The controls can be bound to a model to allow the connection and synchronisation with data sources. To view the data structure declaration, you can right click on the Data Model and select Generate Type Declaration that shows the declaration in ABAP format, or select View as JSON.

Data Model Components

Root Node

The Root Node is the parent node in the Data Model structure with one or more child nodes representing fields or data type.

Only 1 Root Node can be added in a Data Model

The following Data Model components can be added when you right click on the Root Node:

Component

Description

Component

Description

Field

Adds a single Field

Field of Type

Adds a single Field with a predefined type. It can be of type Boolean, Integer, Float, Date, or DateTime

Structure Type Node

Adds a Structure Type

Table Type Node

Adds a Table Type

Fields from SAP Structure

Adds the selected fields from the SAP Structure defined in the Root Node

Fields from FAB Reference Object

Adds the selected fields from the Reference FAB Project defined in the Root Node

Field

Element

Usage

Element

Usage

Name

Sets the field name / identifier

SAP Type

Sets the data type in SAP

JavaScript Type

Sets the data type in JavaScript

Default

Sets the default value

PID

Sets the parameter ID

Do Not Save

If set to true, the value is not saved in the database

TVARV

Sets the TVARV parameter variant

Description

Sets the field description

Structure Type Node

Element

Usage

Element

Usage

Name

Sets the structure name / identifier

SAP Structure

Sets the reference SAP Structure

Reference FAB Project

Sets the reference FAB Project

Reference Node

Sets the reference node

Direct Type Declaration

If set to true, the structure is declared in the implementation class (Deep structure GS_DATA) and it assumes all the properties of the specified data type.

If set to false, the structure is declared as a custom type.

Table Type Node

Element

Usage

Element

Usage

Name

Sets the table type name / identifier

Reference FAB Project

Sets the reference FAB Project

Reference Node

Sets the reference node