SAP IUUC_CRE_ACT_ADBC_TRIGGER Function Module for create and activate DB triggers









IUUC_CRE_ACT_ADBC_TRIGGER is a standard iuuc cre act adbc trigger SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for create and activate DB triggers processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for iuuc cre act adbc trigger FM, simply by entering the name IUUC_CRE_ACT_ADBC_TRIGGER into the relevant SAP transaction such as SE37 or SE38.

Function Group: IUUC_ADBC
Program Name: SAPLIUUC_ADBC
Main Program: SAPLIUUC_ADBC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function IUUC_CRE_ACT_ADBC_TRIGGER pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'IUUC_CRE_ACT_ADBC_TRIGGER'"create and activate DB triggers
EXPORTING
I_TABNAME = "name of original table
* I_LOCK_TIMEOUT = 1 "lock timeout value for trigger creation (IBM DB)
* IT_SPECIFIC_CONDITIONS = "table type for field-content-specific process option assign.
* I_PHASE = "phase in which trigger is to be changed from delta to freeze
* I_SEQUENCE_CACHE_SIZE = 200 "sequence cache size
* I_EXEC_CONDITION = "execution subject to condition
* I_ACTIVE_MT_ID = "execution subject to switch
* I_ADD_CLIENT_COND = "add trigger condition for client field
* I_DB_OPERAT = "IUUC: Operation
* I_LOGTAB_MULTIUSE = "1 to N replication flag
* I_RFC_DEST = "Logical Destination (Specified in Function Call)
I_SHADOWTAB = "name of logging table
* I_DBSYS = SY-DBSYS "R/3 System, Name of Central Database System
I_TABCLASS = "Table category
I_PROCESS_OPTION = "process option
* I_SCENARIO = 'GBSL' "to distinghish IUUC and GBSL
* I_DATA_IN_LOGTAB = "data fields are included in logging table
* I_CREATE_TEMP_TRIG = "create temporary triggers
* I_CONNECTION_NAME = 'R/3*' "Logical name for a database connection
* I_TRIGGER_STATE = 0 "trigger state (initial, created, activated, deactivated)

IMPORTING
E_RC = "return code
ET_STATEMENTS = "Table Type for ABAP Programs
ET_ERROR = "Table Type for ABAP Programs
E_ERROR_MESSAGE = "SQL Error Message
.



IMPORTING Parameters details for IUUC_CRE_ACT_ADBC_TRIGGER

I_TABNAME - name of original table

Data type: TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_LOCK_TIMEOUT - lock timeout value for trigger creation (IBM DB)

Data type: IUUC_LOCK_TIMEOUT_VALUE
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_SPECIFIC_CONDITIONS - table type for field-content-specific process option assign.

Data type: ABAPPROG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PHASE - phase in which trigger is to be changed from delta to freeze

Data type: IUUC_FREEZE_PHASE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SEQUENCE_CACHE_SIZE - sequence cache size

Data type: NUMC_5
Default: 200
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_EXEC_CONDITION - execution subject to condition

Data type: BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTIVE_MT_ID - execution subject to switch

Data type: CHAR3
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ADD_CLIENT_COND - add trigger condition for client field

Data type: BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DB_OPERAT - IUUC: Operation

Data type: IUUC_OPERATION
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOGTAB_MULTIUSE - 1 to N replication flag

Data type: BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RFC_DEST - Logical Destination (Specified in Function Call)

Data type: RFCDEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SHADOWTAB - name of logging table

Data type: TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_DBSYS - R/3 System, Name of Central Database System

Data type: SY-DBSYS
Default: SY-DBSYS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TABCLASS - Table category

Data type: TABCLASS
Optional: No
Call by Reference: No ( called with pass by value option)

I_PROCESS_OPTION - process option

Data type: NUM1
Optional: No
Call by Reference: No ( called with pass by value option)

I_SCENARIO - to distinghish IUUC and GBSL

Data type: CHAR4
Default: 'GBSL'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATA_IN_LOGTAB - data fields are included in logging table

Data type: BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CREATE_TEMP_TRIG - create temporary triggers

Data type: BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CONNECTION_NAME - Logical name for a database connection

Data type: DBCON_NAME
Default: 'R/3*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRIGGER_STATE - trigger state (initial, created, activated, deactivated)

Data type: IUUC_TRIGGER_STATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for IUUC_CRE_ACT_ADBC_TRIGGER

E_RC - return code

Data type: SYSUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

ET_STATEMENTS - Table Type for ABAP Programs

Data type: ABAPPROG
Optional: No
Call by Reference: No ( called with pass by value option)

ET_ERROR - Table Type for ABAP Programs

Data type: TSFOTABL
Optional: No
Call by Reference: No ( called with pass by value option)

E_ERROR_MESSAGE - SQL Error Message

Data type: DBSQLMSG
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for IUUC_CRE_ACT_ADBC_TRIGGER Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_e_rc  TYPE SYSUBRC, "   
lv_i_tabname  TYPE TABNAME, "   
lv_i_lock_timeout  TYPE IUUC_LOCK_TIMEOUT_VALUE, "   1
lv_it_specific_conditions  TYPE ABAPPROG, "   
lv_i_phase  TYPE IUUC_FREEZE_PHASE, "   
lv_i_sequence_cache_size  TYPE NUMC_5, "   200
lv_i_exec_condition  TYPE BOOLEAN, "   
lv_i_active_mt_id  TYPE CHAR3, "   
lv_i_add_client_cond  TYPE BOOLEAN, "   
lv_i_db_operat  TYPE IUUC_OPERATION, "   
lv_i_logtab_multiuse  TYPE BOOLEAN, "   
lv_i_rfc_dest  TYPE RFCDEST, "   
lv_i_shadowtab  TYPE TABNAME, "   
lv_et_statements  TYPE ABAPPROG, "   
lv_i_dbsys  TYPE SY-DBSYS, "   SY-DBSYS
lv_et_error  TYPE TSFOTABL, "   
lv_i_tabclass  TYPE TABCLASS, "   
lv_e_error_message  TYPE DBSQLMSG, "   
lv_i_process_option  TYPE NUM1, "   
lv_i_scenario  TYPE CHAR4, "   'GBSL'
lv_i_data_in_logtab  TYPE BOOLEAN, "   
lv_i_create_temp_trig  TYPE BOOLEAN, "   
lv_i_connection_name  TYPE DBCON_NAME, "   'R/3*'
lv_i_trigger_state  TYPE IUUC_TRIGGER_STATE. "   0

  CALL FUNCTION 'IUUC_CRE_ACT_ADBC_TRIGGER'  "create and activate DB triggers
    EXPORTING
         I_TABNAME = lv_i_tabname
         I_LOCK_TIMEOUT = lv_i_lock_timeout
         IT_SPECIFIC_CONDITIONS = lv_it_specific_conditions
         I_PHASE = lv_i_phase
         I_SEQUENCE_CACHE_SIZE = lv_i_sequence_cache_size
         I_EXEC_CONDITION = lv_i_exec_condition
         I_ACTIVE_MT_ID = lv_i_active_mt_id
         I_ADD_CLIENT_COND = lv_i_add_client_cond
         I_DB_OPERAT = lv_i_db_operat
         I_LOGTAB_MULTIUSE = lv_i_logtab_multiuse
         I_RFC_DEST = lv_i_rfc_dest
         I_SHADOWTAB = lv_i_shadowtab
         I_DBSYS = lv_i_dbsys
         I_TABCLASS = lv_i_tabclass
         I_PROCESS_OPTION = lv_i_process_option
         I_SCENARIO = lv_i_scenario
         I_DATA_IN_LOGTAB = lv_i_data_in_logtab
         I_CREATE_TEMP_TRIG = lv_i_create_temp_trig
         I_CONNECTION_NAME = lv_i_connection_name
         I_TRIGGER_STATE = lv_i_trigger_state
    IMPORTING
         E_RC = lv_e_rc
         ET_STATEMENTS = lv_et_statements
         ET_ERROR = lv_et_error
         E_ERROR_MESSAGE = lv_e_error_message
. " IUUC_CRE_ACT_ADBC_TRIGGER




ABAP code using 7.40 inline data declarations to call FM IUUC_CRE_ACT_ADBC_TRIGGER

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
DATA(ld_i_lock_timeout) = 1.
 
 
 
DATA(ld_i_sequence_cache_size) = 200.
 
 
 
 
 
 
 
 
 
"SELECT single DBSYS FROM SY INTO @DATA(ld_i_dbsys).
DATA(ld_i_dbsys) = SY-DBSYS.
 
 
 
 
 
DATA(ld_i_scenario) = 'GBSL'.
 
 
 
DATA(ld_i_connection_name) = 'R/3*'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!