Stored procedures for both OTD level and interface level are defined in the utility package.
If it is located at the OTD root level, the data from all Staging Tables is deleted.
If it is located at the Staging Table level, only the data for that specific Staging Table is deleted.
Depends upon the specific implementation. Typically, it contains at least four input VARCHAR parameters corresponding to:
sb_eway_id
sb_group_id
sb_object_id
If you do not assign a value (including the null value) to the above parameters, the procedure acts on all associated records.
sb_pass_or_fail
This parameter accepts the following values:
P– records that have passed
F– for records that have failed
I– all records
The stored procedure name is derived from the Open Interface name or the Staging Table name, according to the following conventions:
At the root level:
If the OPEN_INTERFACE tab has a Util_Name attribute, then this value is used: SP_DEL<UTILNAME>. Otherwise, the value of the attribute Name is used: SP_DEL_<Open_Interface_Name>.
For example:
Customer Item: SP_DEL_CUSTITEMS
Item Import: SP_DEL_ITEM_IMPORT
At the staging table level:
If the Interface_Table tag has a Util_Name attribute, then this value is used: SP_DEL_<UTILNAME>. Otherwise, the short name of the Name attribute is used: SP_DEL_<Short_Table_Name>.
For example:
Customer Item: SP_DEL_MTL_CI_INTERFACE_INT
Item Import: SP_DEL_MTL_SYSTEM_ITEMS_INT