BUPA_ADDR_DUPLICATE_CHECK_BAPI 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 BUPA_ADDR_DUPLICATE_CHECK_BAPI into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
BUBA_SERV
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'BUPA_ADDR_DUPLICATE_CHECK_BAPI' "
EXPORTING
search_mode = 'I' " ad_dupmode
* search_in_address_type_1 = SPACE " t_boole Flag: Search in type1 addresses
* search_in_address_type_2 = SPACE " t_boole Flag: Search in type2 addresses
* search_in_address_type_3 = SPACE " t_boole Flag: Search in type3 addresses
* search_in_all_object_types = SPACE " t_boole Flag: Search in all object types
t_search_fields = " adsrchlist Search Criteria
t_object_types_for_search = " adref_indx_tab Object types to be searched
* current_address_key = " adkey_indx External index addresss key
current_address_type = " ad_adrtype Address type (1=Organization, 2=Person, 3=Contact person)
IMPORTING
t_reference_table = " szadr_addr_ref_read_tab
number_of_hits = " i Number of Hits
index_incomplete = " t_boole Flag: Search index incomplete
EXCEPTIONS
COMMUNICATION_ERROR = 1 " Communication error, external index search not possible
INTERNAL_ERROR = 2 " Internal error, external index search not possible
SEARCH_INCOMPLETE = 3 " No search result, e.g. because of inaccurate search criteria
PARAMETER_ERROR = 4 "
DUPLICATE_CHECK_NOT_ACTIVE = 5 "
. " BUPA_ADDR_DUPLICATE_CHECK_BAPI
The ABAP code below is a full code listing to execute function module BUPA_ADDR_DUPLICATE_CHECK_BAPI 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).
| ld_t_reference_table | TYPE SZADR_ADDR_REF_READ_TAB , |
| ld_number_of_hits | TYPE I , |
| ld_index_incomplete | TYPE T_BOOLE . |
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_t_reference_table | TYPE SZADR_ADDR_REF_READ_TAB , |
| ld_search_mode | TYPE AD_DUPMODE , |
| ld_number_of_hits | TYPE I , |
| ld_search_in_address_type_1 | TYPE T_BOOLE , |
| ld_index_incomplete | TYPE T_BOOLE , |
| ld_search_in_address_type_2 | TYPE T_BOOLE , |
| ld_search_in_address_type_3 | TYPE T_BOOLE , |
| ld_search_in_all_object_types | TYPE T_BOOLE , |
| ld_t_search_fields | TYPE ADSRCHLIST , |
| ld_t_object_types_for_search | TYPE ADREF_INDX_TAB , |
| ld_current_address_key | TYPE ADKEY_INDX , |
| ld_current_address_type | TYPE AD_ADRTYPE . |
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 BUPA_ADDR_DUPLICATE_CHECK_BAPI or its description.