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 |
---|---|
Field | Adds a single Field |
Field of Type | Adds a single Field with a predefined type. It can be of type |
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 If set to If set to |
Table Type Node
Element | Usage |
---|---|
Name | |
Reference FAB Project | |
Reference Node |