Data Flow - Standard Data Table

The complex table selection property type is used to store a selection made by the user from a complex table. The value stored in a complex table selection property is the key field of the selected record within the complex table. The data type of this value will be a string, integral number, or decimal number, based on the data type of the key field.

The following diagram and steps depict what happens when the Agentry Client must load or reload a data table.

Data Flow - Standard Data Table

  1. The data table’s initialize() method is called.
  2. The initialize() method calls a DataTableStepHandler build() static method passing the User object.
  3. The DataTableStepHandler build() method constructs the necessary DTBAPI class, passing the User object, clientLastUpdate parameter, and table name to it.
  4. The DTBAPI constructor retrieves the JCo function object for /SYCLO/CORE_DT_GET from the repository, using the connection on User.
  5. DTBAPI sets the table name in the table IT_DOID, in the field DO_ID in the BAPI import parameters.
  6. DTBAPI adds IT_xxx record(s) to DTObject import tables for search criteria or other input parameters.
  7. DataTableStepHandler build() method calls getNumRows() method in DTBAPI.
  8. DTBAPI getNumRows() calls the execute() function and checks for exceptions.
  9. DTBAPI getNumRows() reads ET_RETURN table in the BAPI class for error messages.
  10. CTBAPI getNumRows() method iterates over ET_DATA_TABLE and reads records from the table.
  11. For each record, DTBAPI getRows() method calls the appropriate constructor in the appropriate SAPObject subtype.
  12. The SAPObject subtype constructor maps the JCo record column names to field names.
  13. DTBAPI getNumRows() method collects the SAPObjects in DataTable and passes them back to DataTableStepHandler.
  14. DataTableStepHandler build() method passes the DataTableObject back to the initialize() method and is then stored in the appropriate field.
  15. Agentry application within the SAP Mobile Server parses these iterators and sends the table rows to the client.