SAP Function RSDRI_ODSO_INSERT - Inserts Data Records into a Transactional ODS Object

Parameter Reference Type Length Default Optional Text
I_ODSOBJECT RSDODSOBJECT C 30 ODS Object
I_T_INSERT STANDARD TABLE 0 Number of Records to Be Inserted

Parameter Reference Type Length Text
E_RECORDS I I 4 Number of Inserted Records

Exception Text
ACTIVE_TABLE_NAME_NOT_FOUND Name of Active Table Not Found
ARRAY_INSERT_FAILED Insertion of Array Failed
DATA_TARGET_NOT_ODS Data Target Is Not an ODS Object
INTERNAL_ERROR Unexpected Error
ODS_TYPE_NOT_TRANSACTIONAL ODS Object Type Is Not "Transactional"
RECORD_KEY_ALREADY_EXISTS At Least One of the Data Records Has a Key That Already Exists

Functionality
This function module receives the technical name of the DataStore objectas a return parameter. Data transfer is done in a table with the samestructure as the active table of the DataStore object.
A check is carried out to see whether the DataStore object is aDataStore object for direct writing. The number of data records insertedis returned (e_numrows). In the event of errors during this process, therelevant exception is returned.

Notes
Data is either accepted in full or rejected in full. For this reason,you must ensure that the data is correct and in particular ensure thatthe structure of the data matches the structure of the DataStore objecttable exactly. Incorrect data or structures may result in SQL errors,exceptions, or in data being transferred in the wrong format.

  • Since a DataStore object for direct writing is often supplied with new
  • data, lock management must be implemented in the calling object. Forexample, you might implement no lock (except at database level) forquick insertion of a small number of records but implement a lock forlengthy inserts involving a large number of records.

    Description
    Technical name of the DataStore object.