Versions Compared

Key

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

...

Tip
iconfalse
titleRecommended Setting

It is highly recommended to mark the Use Data Model from the Properties sections and use the FAB Data Model Node in building up the fields and structures list. The fields from the FAB Data Model Node will still have to be assigned to the Bound Field of the relevant control element. This will in turn create the same field like what has been exhibited in the above example.

FAB Data Model Node is similar to the Fields with the following additional characteristics:

  • Allows hierarchical/nested data model
  • Fields can be referenced to SAP Data Elements
  • More fine-grained definition of model field properties (example field IDATU is a Date in one part of the model, but String in another part).

Advantages of using the FAB Data Model Node

  • Efficient runtime execution resulting to optimised performance
  • Provides a variable CR_DATA in most FAB user-exits that allow much easier interrogation and setting of data in the app at run-time. Instead of working primarily with the [Field Name / Field Value] pairs, it works directly with ABAP nested structure to use exact field names and data types which promotes easier access and coding.

  • FAB User exits can directly modify the data upon an Action at run-time and reflect this in the front-end app immediately.
  • FAB auto-generates a nested structure GS_DATA into the definition of the Implementation Class. This can be used for simpler use of the CR_DATA (Type ANY) by simply performing MOVE-CORRESPONDING CR_DATA TO GS_DATA in your implementations. If changing the data use MOVE-CORRESPONDING GS_DATA TO CR_DATA
  • Within JavaScript too it is easier to get/set data in the model.
  • Provides a more logical definition of the app allowing reference to nested structures. It allows a nested definition of the data that translates to the JSON representation of the data at run-time.

How to use the FAB Data Model Node.

  1. Mark the Use Data Model in the properties of the application
  2. Right click on the Project and select Add Data Model

  3. Right click on the Root Node and select either of the following:
    -Add Field - to add individual fields

    -Add Structure Type Node - to add structures
    -Add Table Type Node - to add table types
    -Adopt from Fields - choose this option to copy the Fields into the Data Model Root Node
  4. Assign the Data Model field into the Bound Field of the control

  5. Access the fields in the FAB User Exits by referring to the variable CR_DATA


Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@223dfe
showSpacefalse
sorttitle
typepage
cqllabel = "properties" and type = "page" and space = "IFAB"
labelslist-control