Data Provisioning, Loading, and Reporting
After you have successfully deployed the CDS definitions, you can write or retrieve data in or from tables using only the generated procedures and views provided by the interface generator.
- Load procedures
- Delete procedures
- Read-only procedures
The generated stored procedures can be used in SAP HANA smart data integration (SDI) flowgraphs to load data into the SAP Financial Services Data Management data model.
Procedures for Data Provisioning
Load Procedures
Load procedures are used to load data into FS Data Management entities. They behave differently depending on which kind of versioning is used.
-
Entities with one-dimensional versioning:
These entities are versioned in system time, which means that the system fills the system timestamp fields of the data records. The data load can be an initial or delta load.
-
Initial load: Data is loaded into FSDM tables whereby the system updates the system timestamp fields (SystemValidFrom and SystemValidTo).
-
Delta load: The previous version of the data records is deleted from the current FSDM table and moved to the FSDM history table while the current table is updated.
The system treats any change in the key fields of a data record as a new record: A new entry is created in the current table, the history table remains untouched.
-
-
Entities with two-dimensional versioning:
These entities are versioned in business and system time: The business time fields (BusinessValidFrom and BusinessValidTo) must be provided by the source, whereas the system timestamp fields are filled by the system.
-
Non-versioned entities:
When you use load procedures inside a flowgraph, the flowgraph must be procedure type.
Delete Procedures
-
Logical delete procedure:
Performs a logical deletion of data. For this, you must specify the fields that are to be deleted from the FSDM tables. These serve as input for the deletion, which deletes the records and moves them to the FSDM history table.
-
Physical delete procedure/erase procedure:
Performs a physical deletion of data in both the current and history tables. For this, you must specify the key fields of the data records to be deleted.
-
Deletion by specifying a partial key:
By default, logical delete and physical delete/erase procedures generated by interface generator expects full primary key of the table to be passed. To delete records based on partially specified primary keys, please refer to Deploying the Generated Write or Read Interface to SAP HANA XS Advanced Runtime.
Read-only Procedures
Read-only procedures are used when the load/delete operation is expected to be executed as batch or transaction. The procedure does not contain any DML statements. It gives only outputs, which can be mapped to the FSDM tables, as these procedures do not directly update the FSDM tables.
When you are using read-only procedures inside a flowgraph, the type of flowgraph must be transactional.
Procedures for FSDM List Entities
List entities are entities where a set of records are always versioned together such as entries of a payment schedule. These are marked as a list in the CDM using an extended attribute.
The procedures process the incoming data records by identifying the lists using a subordinate key. They are available as load, delete and erase procedures together with their read-only counterparts.
Procedures Specific to Non-versioned FSDM Entities
- Insert procedure: Inserts new records. Ignores any corrections to existing records
- Update Procedure: Updates only existing records but ignores any new records
The system generates the read-only counterparts of these procedures.
Consuming Load and Read-Only Procedures
-
Create a table type with the fields that are relevant for loading into an FSDM entity.

- Create a synonym for the table type of the entity into which you want to insert data. The table types are already exposed in the relevant roles in the write interface. The naming convention of the table type is sap.fsdm.tabletypes::<FSDMEntityName>TT.
- Create a procedure:
- Enter a parameter with a table type as created in step 1.
- Declare a variable of the synonym table type mentioned in step 2.
-
Use the syntax to modify the table type. For more information, see Modifying the Content of Table Variables.

- Consume this procedure in an SDI flowgraph.
Reporting
The interface generator generates views that handle versioning along with the required roles for cross-container access to these views. There is one view of the current data and a union view that includes historical data. Technically, the generator produces SQL views with input parameters for bi-temporal versioning. These views can be consumed by SAP HANA calculation views for data analysis or reporting.