ADDR_ENABLE_DUPLICATE_CHECK is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ADDR_ENABLE_DUPLICATE_CHECK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SZAS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ADDR_ENABLE_DUPLICATE_CHECK' "
EXPORTING
object_types_for_search = " adref_indx_tab Object types to be searched
* search_in_all_object_types = " t_boole Flag: Search in all object types
* dialog_type = 'I' " ad_dupmode
* search_in_address_type_1 = " t_boole Flag: Search in type1 addresses
* search_in_address_type_2 = " t_boole Flag: Search in type2 addresses
* search_in_address_type_3 = " t_boole Flag: Search in type3 addresses
* popup_in_badi_implementation = 'X' " t_boole
EXCEPTIONS
PARAMETER_ERROR = 1 " Incorrect parameter values
INTERNAL_ERROR = 2 " Serious internal error (MESSAGE A...)
. " ADDR_ENABLE_DUPLICATE_CHECK
The ABAP code below is a full code listing to execute function module ADDR_ENABLE_DUPLICATE_CHECK including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_object_types_for_search) = 'Check type of data required'.
DATA(ld_search_in_all_object_types) = 'Check type of data required'.
DATA(ld_dialog_type) = 'Check type of data required'.
DATA(ld_search_in_address_type_1) = 'Check type of data required'.
DATA(ld_search_in_address_type_2) = 'Check type of data required'.
DATA(ld_search_in_address_type_3) = 'Check type of data required'.
DATA(ld_popup_in_badi_implementation) = 'Check type of data required'. . CALL FUNCTION 'ADDR_ENABLE_DUPLICATE_CHECK' EXPORTING object_types_for_search = ld_object_types_for_search * search_in_all_object_types = ld_search_in_all_object_types * dialog_type = ld_dialog_type * search_in_address_type_1 = ld_search_in_address_type_1 * search_in_address_type_2 = ld_search_in_address_type_2 * search_in_address_type_3 = ld_search_in_address_type_3 * popup_in_badi_implementation = ld_popup_in_badi_implementation EXCEPTIONS PARAMETER_ERROR = 1 INTERNAL_ERROR = 2 . " ADDR_ENABLE_DUPLICATE_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_object_types_for_search | TYPE ADREF_INDX_TAB , |
| ld_search_in_all_object_types | TYPE T_BOOLE , |
| ld_dialog_type | TYPE AD_DUPMODE , |
| ld_search_in_address_type_1 | TYPE T_BOOLE , |
| ld_search_in_address_type_2 | TYPE T_BOOLE , |
| ld_search_in_address_type_3 | TYPE T_BOOLE , |
| ld_popup_in_badi_implementation | TYPE T_BOOLE . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ADDR_ENABLE_DUPLICATE_CHECK or its description.