SAP BAPI_ADDREMPAU_REQUEST Function Module for ESS Address Request - Australia
BAPI_ADDREMPAU_REQUEST is a standard bapi addrempau request SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ESS Address Request - Australia 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 bapi addrempau request FM, simply by entering the name BAPI_ADDREMPAU_REQUEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: PADR_AU
Program Name: SAPLPADR_AU
Main Program:
Appliation area: P
Release date: 07-Feb-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_ADDREMPAU_REQUEST 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 'BAPI_ADDREMPAU_REQUEST'"ESS Address Request - Australia.
EXPORTING
INEMPLOYEENUMBER = "Personnel Number
* APARTMENTID = "Identification of an apartment in a building
* POSTALCODECITY = "Postal code
* DISTRICT = "District
* STATE = "Region (State, Province, County)
* COUNTRY = "Country key
* TELEPHONENUMBER = "Telephone number
* DISTANCEINKM = "Distance in kilometers
* DISTANCEINKM1 = "Distance in kilometers
* COMPANYOWNEDAPT = "Company Housing
* BUSROUTE = "Bus route
INVALIDITYBEGIN = "Start date
* NOCOMMIT = "COMMIT control at BAPI interface
INVALIDITYEND = "End Date
ADDRESSTYPE = "Subtype
* CONAME = "C/O name
* STREETANDHOUSENO = "House number and street
* CITY = "City
* SCNDADDRESSLINE = "2nd address line
* HOUSENUMBER = "House number
IMPORTING
RETURN = "Structure for return code
EMPLOYEENUMBER = "Personnel Number
SUBTYPE = "Subtype
OBJECTID = "Object identification
LOCKINDICATOR = "Lock indicator for HR master record
VALIDITYBEGIN = "Start date
VALIDITYEND = "End Date
RECORDNUMBER = "Number of infotype record
IMPORTING Parameters details for BAPI_ADDREMPAU_REQUEST
INEMPLOYEENUMBER - Personnel Number
Data type: BAPIP0006-PERNROptional: No
Call by Reference: No ( called with pass by value option)
APARTMENTID - Identification of an apartment in a building
Data type: BAPIP0006-POSTAOptional: Yes
Call by Reference: No ( called with pass by value option)
POSTALCODECITY - Postal code
Data type: BAPIP0006-PSTLZOptional: Yes
Call by Reference: No ( called with pass by value option)
DISTRICT - District
Data type: BAPIP0006-ORT02Optional: Yes
Call by Reference: No ( called with pass by value option)
STATE - Region (State, Province, County)
Data type: BAPIP0006-STATEOptional: Yes
Call by Reference: No ( called with pass by value option)
COUNTRY - Country key
Data type: BAPIP0006-LAND1Optional: Yes
Call by Reference: No ( called with pass by value option)
TELEPHONENUMBER - Telephone number
Data type: BAPIP0006-TELNROptional: Yes
Call by Reference: No ( called with pass by value option)
DISTANCEINKM - Distance in kilometers
Data type: BAPIP0006-ENTKMOptional: Yes
Call by Reference: No ( called with pass by value option)
DISTANCEINKM1 - Distance in kilometers
Data type: BAPIP0006-ENTK2Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPANYOWNEDAPT - Company Housing
Data type: BAPIP0006-WKWNGOptional: Yes
Call by Reference: No ( called with pass by value option)
BUSROUTE - Bus route
Data type: BAPIP0006-BUSRTOptional: Yes
Call by Reference: No ( called with pass by value option)
INVALIDITYBEGIN - Start date
Data type: BAPIP0006-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
NOCOMMIT - COMMIT control at BAPI interface
Data type: BAPI_STAND-NO_COMMITOptional: Yes
Call by Reference: No ( called with pass by value option)
INVALIDITYEND - End Date
Data type: BAPIP0006-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESSTYPE - Subtype
Data type: BAPIP0006-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
CONAME - C/O name
Data type: BAPIP0006-NAME2Optional: Yes
Call by Reference: No ( called with pass by value option)
STREETANDHOUSENO - House number and street
Data type: BAPIP0006-STRASOptional: Yes
Call by Reference: No ( called with pass by value option)
CITY - City
Data type: BAPIP0006-ORT01Optional: Yes
Call by Reference: No ( called with pass by value option)
SCNDADDRESSLINE - 2nd address line
Data type: BAPIP0006-LOCATOptional: Yes
Call by Reference: No ( called with pass by value option)
HOUSENUMBER - House number
Data type: BAPIP0006-HSNMROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_ADDREMPAU_REQUEST
RETURN - Structure for return code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
EMPLOYEENUMBER - Personnel Number
Data type: BAPIP0006-PERNROptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: BAPIP0006-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID - Object identification
Data type: BAPIP0006-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0006-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Start date
Data type: BAPIP0006-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - End Date
Data type: BAPIP0006-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of infotype record
Data type: BAPIP0006-SEQNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_ADDREMPAU_REQUEST 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_return | TYPE BAPIRETURN1, " | |||
| lv_inemployeenumber | TYPE BAPIP0006-PERNR, " | |||
| lv_apartmentid | TYPE BAPIP0006-POSTA, " | |||
| lv_postalcodecity | TYPE BAPIP0006-PSTLZ, " | |||
| lv_district | TYPE BAPIP0006-ORT02, " | |||
| lv_state | TYPE BAPIP0006-STATE, " | |||
| lv_country | TYPE BAPIP0006-LAND1, " | |||
| lv_telephonenumber | TYPE BAPIP0006-TELNR, " | |||
| lv_distanceinkm | TYPE BAPIP0006-ENTKM, " | |||
| lv_distanceinkm1 | TYPE BAPIP0006-ENTK2, " | |||
| lv_companyownedapt | TYPE BAPIP0006-WKWNG, " | |||
| lv_busroute | TYPE BAPIP0006-BUSRT, " | |||
| lv_employeenumber | TYPE BAPIP0006-PERNR, " | |||
| lv_invaliditybegin | TYPE BAPIP0006-BEGDA, " | |||
| lv_nocommit | TYPE BAPI_STAND-NO_COMMIT, " | |||
| lv_subtype | TYPE BAPIP0006-SUBTY, " | |||
| lv_invalidityend | TYPE BAPIP0006-ENDDA, " | |||
| lv_objectid | TYPE BAPIP0006-OBJPS, " | |||
| lv_addresstype | TYPE BAPIP0006-SUBTY, " | |||
| lv_coname | TYPE BAPIP0006-NAME2, " | |||
| lv_lockindicator | TYPE BAPIP0006-SPRPS, " | |||
| lv_validitybegin | TYPE BAPIP0006-BEGDA, " | |||
| lv_streetandhouseno | TYPE BAPIP0006-STRAS, " | |||
| lv_city | TYPE BAPIP0006-ORT01, " | |||
| lv_validityend | TYPE BAPIP0006-ENDDA, " | |||
| lv_recordnumber | TYPE BAPIP0006-SEQNR, " | |||
| lv_scndaddressline | TYPE BAPIP0006-LOCAT, " | |||
| lv_housenumber | TYPE BAPIP0006-HSNMR. " |
|   CALL FUNCTION 'BAPI_ADDREMPAU_REQUEST' "ESS Address Request - Australia |
| EXPORTING | ||
| INEMPLOYEENUMBER | = lv_inemployeenumber | |
| APARTMENTID | = lv_apartmentid | |
| POSTALCODECITY | = lv_postalcodecity | |
| DISTRICT | = lv_district | |
| STATE | = lv_state | |
| COUNTRY | = lv_country | |
| TELEPHONENUMBER | = lv_telephonenumber | |
| DISTANCEINKM | = lv_distanceinkm | |
| DISTANCEINKM1 | = lv_distanceinkm1 | |
| COMPANYOWNEDAPT | = lv_companyownedapt | |
| BUSROUTE | = lv_busroute | |
| INVALIDITYBEGIN | = lv_invaliditybegin | |
| NOCOMMIT | = lv_nocommit | |
| INVALIDITYEND | = lv_invalidityend | |
| ADDRESSTYPE | = lv_addresstype | |
| CONAME | = lv_coname | |
| STREETANDHOUSENO | = lv_streetandhouseno | |
| CITY | = lv_city | |
| SCNDADDRESSLINE | = lv_scndaddressline | |
| HOUSENUMBER | = lv_housenumber | |
| IMPORTING | ||
| RETURN | = lv_return | |
| EMPLOYEENUMBER | = lv_employeenumber | |
| SUBTYPE | = lv_subtype | |
| OBJECTID | = lv_objectid | |
| LOCKINDICATOR | = lv_lockindicator | |
| VALIDITYBEGIN | = lv_validitybegin | |
| VALIDITYEND | = lv_validityend | |
| RECORDNUMBER | = lv_recordnumber | |
| . " BAPI_ADDREMPAU_REQUEST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_ADDREMPAU_REQUEST
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.| "SELECT single PERNR FROM BAPIP0006 INTO @DATA(ld_inemployeenumber). | ||||
| "SELECT single POSTA FROM BAPIP0006 INTO @DATA(ld_apartmentid). | ||||
| "SELECT single PSTLZ FROM BAPIP0006 INTO @DATA(ld_postalcodecity). | ||||
| "SELECT single ORT02 FROM BAPIP0006 INTO @DATA(ld_district). | ||||
| "SELECT single STATE FROM BAPIP0006 INTO @DATA(ld_state). | ||||
| "SELECT single LAND1 FROM BAPIP0006 INTO @DATA(ld_country). | ||||
| "SELECT single TELNR FROM BAPIP0006 INTO @DATA(ld_telephonenumber). | ||||
| "SELECT single ENTKM FROM BAPIP0006 INTO @DATA(ld_distanceinkm). | ||||
| "SELECT single ENTK2 FROM BAPIP0006 INTO @DATA(ld_distanceinkm1). | ||||
| "SELECT single WKWNG FROM BAPIP0006 INTO @DATA(ld_companyownedapt). | ||||
| "SELECT single BUSRT FROM BAPIP0006 INTO @DATA(ld_busroute). | ||||
| "SELECT single PERNR FROM BAPIP0006 INTO @DATA(ld_employeenumber). | ||||
| "SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_invaliditybegin). | ||||
| "SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit). | ||||
| "SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_subtype). | ||||
| "SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_invalidityend). | ||||
| "SELECT single OBJPS FROM BAPIP0006 INTO @DATA(ld_objectid). | ||||
| "SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_addresstype). | ||||
| "SELECT single NAME2 FROM BAPIP0006 INTO @DATA(ld_coname). | ||||
| "SELECT single SPRPS FROM BAPIP0006 INTO @DATA(ld_lockindicator). | ||||
| "SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single STRAS FROM BAPIP0006 INTO @DATA(ld_streetandhouseno). | ||||
| "SELECT single ORT01 FROM BAPIP0006 INTO @DATA(ld_city). | ||||
| "SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_validityend). | ||||
| "SELECT single SEQNR FROM BAPIP0006 INTO @DATA(ld_recordnumber). | ||||
| "SELECT single LOCAT FROM BAPIP0006 INTO @DATA(ld_scndaddressline). | ||||
| "SELECT single HSNMR FROM BAPIP0006 INTO @DATA(ld_housenumber). | ||||
Search for further information about these or an SAP related objects