Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 that has children with one or more child nodes representing fields or data structuretype.

Info

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

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

Name

SAP Type

Sets the data type in SAP

JavaScript Type

Sets the data type in JavaScript

Default

Sets the default value

PID

Do Not Save

TVARV

Description

...

Structure Type Node

Element

Usage

Name

SAP Structure

Reference FAB Project

Reference Node

Direct Type Declaration

Sets the Direct Type Declaration to true or false.

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.

...