SAP BAPI_ADDRESSEMPFR_REQUEST Function Module for Create Locked French Employee Address
BAPI_ADDRESSEMPFR_REQUEST is a standard bapi addressempfr 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 Create Locked French Employee Address 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 addressempfr request FM, simply by entering the name BAPI_ADDRESSEMPFR_REQUEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: PADR_FR
Program Name: SAPLPADR_FR
Main Program:
Appliation area: P
Release date: 03-Mar-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_ADDRESSEMPFR_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_ADDRESSEMPFR_REQUEST'"Create Locked French Employee Address.
EXPORTING
EMPLOYEENUMBER = "Personnel no.
* CITY = "Area
* DISTRICT = "District
* COUNTRY = "Country key
* TELEPHONENUMBER = "Telephone number
* DISTANCEINKM = "Distance in kilometers
* DISTANCEINKM1 = "Distance in kilometers
* COMPANYAPARTM = "Company housing
* BUSROUTE = "Bus route
* COMMTYPE1 = "Communication method
* COMMNUMBER1 = "Communications number
VALIDITYBEGIN = "Valid from date
* COMMTYPE2 = "Communication method
* COMMNUMBER2 = "Communications number
* COMMTYPE3 = "Communication method
* COMMNUMBER3 = "Communications number
* NOCOMMIT = "COMMIT control at BAPI interface
VALIDITYEND = "Valid to date
ADDRESSTYPE = "Subtype
* CONAME = "C/O name
* HOUSENUMBER = "House number
* NAMEOFSTREET = "Street
* SCNDADDRESSLINE = "2nd address line
* POSTALCODECITY = "Postal Code
IMPORTING
RETURN = "Structure for Return Code
KEYEMPLOYEENUMBER = "Personnel no.
KEYSUBTYPE = "Subtype
KEYOBJECTID = "Object identification
KEYLOCKINDICATOR = "Lock indicator for HR master record
KEYVALIDITYBEGIN = "Valid from date
KEYVALIDITYEND = "Valid to date
KEYRECORDNUMBER = "Number of infotype record
IMPORTING Parameters details for BAPI_ADDRESSEMPFR_REQUEST
EMPLOYEENUMBER - Personnel no.
Data type: BAPIP0006-PERNROptional: No
Call by Reference: No ( called with pass by value option)
CITY - Area
Data type: BAPIP0006-ORT01Optional: 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)
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: BAPIP0006LFR-DISTANCEINKMOptional: Yes
Call by Reference: No ( called with pass by value option)
DISTANCEINKM1 - Distance in kilometers
Data type: BAPIP0006LFR-DISTANCEINKM1Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPANYAPARTM - Company housing
Data type: BAPIP0006LFR-COMPANYAPARTMOptional: Yes
Call by Reference: No ( called with pass by value option)
BUSROUTE - Bus route
Data type: BAPIP0006LFR-BUSROUTEOptional: Yes
Call by Reference: No ( called with pass by value option)
COMMTYPE1 - Communication method
Data type: BAPIP0006LFR-COMMTYPE1Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMNUMBER1 - Communications number
Data type: BAPIP0006LFR-COMMNUMBER1Optional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Valid from date
Data type: BAPIP0006-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
COMMTYPE2 - Communication method
Data type: BAPIP0006LFR-COMMTYPE2Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMNUMBER2 - Communications number
Data type: BAPIP0006LFR-COMMNUMBER2Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMTYPE3 - Communication method
Data type: BAPIP0006LFR-COMMTYPE3Optional: Yes
Call by Reference: No ( called with pass by value option)
COMMNUMBER3 - Communications number
Data type: BAPIP0006LFR-COMMNUMBER3Optional: Yes
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)
VALIDITYEND - Valid to 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)
HOUSENUMBER - House number
Data type: BAPIP0006LFR-HOUSENUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
NAMEOFSTREET - Street
Data type: BAPIP0006LFR-NAMEOFSTREETOptional: 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)
POSTALCODECITY - Postal Code
Data type: BAPIP0006-PSTLZOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_ADDRESSEMPFR_REQUEST
RETURN - Structure for Return Code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
KEYEMPLOYEENUMBER - Personnel no.
Data type: BAPIP0006-PERNROptional: No
Call by Reference: No ( called with pass by value option)
KEYSUBTYPE - Subtype
Data type: BAPIP0006-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
KEYOBJECTID - Object identification
Data type: BAPIP0006-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
KEYLOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0006-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
KEYVALIDITYBEGIN - Valid from date
Data type: BAPIP0006-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
KEYVALIDITYEND - Valid to date
Data type: BAPIP0006-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
KEYRECORDNUMBER - 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_ADDRESSEMPFR_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_employeenumber | TYPE BAPIP0006-PERNR, " | |||
| lv_city | TYPE BAPIP0006-ORT01, " | |||
| lv_district | TYPE BAPIP0006-ORT02, " | |||
| lv_country | TYPE BAPIP0006-LAND1, " | |||
| lv_telephonenumber | TYPE BAPIP0006-TELNR, " | |||
| lv_distanceinkm | TYPE BAPIP0006LFR-DISTANCEINKM, " | |||
| lv_distanceinkm1 | TYPE BAPIP0006LFR-DISTANCEINKM1, " | |||
| lv_companyapartm | TYPE BAPIP0006LFR-COMPANYAPARTM, " | |||
| lv_busroute | TYPE BAPIP0006LFR-BUSROUTE, " | |||
| lv_commtype1 | TYPE BAPIP0006LFR-COMMTYPE1, " | |||
| lv_commnumber1 | TYPE BAPIP0006LFR-COMMNUMBER1, " | |||
| lv_validitybegin | TYPE BAPIP0006-BEGDA, " | |||
| lv_keyemployeenumber | TYPE BAPIP0006-PERNR, " | |||
| lv_commtype2 | TYPE BAPIP0006LFR-COMMTYPE2, " | |||
| lv_commnumber2 | TYPE BAPIP0006LFR-COMMNUMBER2, " | |||
| lv_commtype3 | TYPE BAPIP0006LFR-COMMTYPE3, " | |||
| lv_commnumber3 | TYPE BAPIP0006LFR-COMMNUMBER3, " | |||
| lv_nocommit | TYPE BAPI_STAND-NO_COMMIT, " | |||
| lv_keysubtype | TYPE BAPIP0006-SUBTY, " | |||
| lv_validityend | TYPE BAPIP0006-ENDDA, " | |||
| lv_addresstype | TYPE BAPIP0006-SUBTY, " | |||
| lv_keyobjectid | TYPE BAPIP0006-OBJPS, " | |||
| lv_coname | TYPE BAPIP0006-NAME2, " | |||
| lv_keylockindicator | TYPE BAPIP0006-SPRPS, " | |||
| lv_housenumber | TYPE BAPIP0006LFR-HOUSENUMBER, " | |||
| lv_keyvaliditybegin | TYPE BAPIP0006-BEGDA, " | |||
| lv_nameofstreet | TYPE BAPIP0006LFR-NAMEOFSTREET, " | |||
| lv_keyvalidityend | TYPE BAPIP0006-ENDDA, " | |||
| lv_keyrecordnumber | TYPE BAPIP0006-SEQNR, " | |||
| lv_scndaddressline | TYPE BAPIP0006-LOCAT, " | |||
| lv_postalcodecity | TYPE BAPIP0006-PSTLZ. " |
|   CALL FUNCTION 'BAPI_ADDRESSEMPFR_REQUEST' "Create Locked French Employee Address |
| EXPORTING | ||
| EMPLOYEENUMBER | = lv_employeenumber | |
| CITY | = lv_city | |
| DISTRICT | = lv_district | |
| COUNTRY | = lv_country | |
| TELEPHONENUMBER | = lv_telephonenumber | |
| DISTANCEINKM | = lv_distanceinkm | |
| DISTANCEINKM1 | = lv_distanceinkm1 | |
| COMPANYAPARTM | = lv_companyapartm | |
| BUSROUTE | = lv_busroute | |
| COMMTYPE1 | = lv_commtype1 | |
| COMMNUMBER1 | = lv_commnumber1 | |
| VALIDITYBEGIN | = lv_validitybegin | |
| COMMTYPE2 | = lv_commtype2 | |
| COMMNUMBER2 | = lv_commnumber2 | |
| COMMTYPE3 | = lv_commtype3 | |
| COMMNUMBER3 | = lv_commnumber3 | |
| NOCOMMIT | = lv_nocommit | |
| VALIDITYEND | = lv_validityend | |
| ADDRESSTYPE | = lv_addresstype | |
| CONAME | = lv_coname | |
| HOUSENUMBER | = lv_housenumber | |
| NAMEOFSTREET | = lv_nameofstreet | |
| SCNDADDRESSLINE | = lv_scndaddressline | |
| POSTALCODECITY | = lv_postalcodecity | |
| IMPORTING | ||
| RETURN | = lv_return | |
| KEYEMPLOYEENUMBER | = lv_keyemployeenumber | |
| KEYSUBTYPE | = lv_keysubtype | |
| KEYOBJECTID | = lv_keyobjectid | |
| KEYLOCKINDICATOR | = lv_keylockindicator | |
| KEYVALIDITYBEGIN | = lv_keyvaliditybegin | |
| KEYVALIDITYEND | = lv_keyvalidityend | |
| KEYRECORDNUMBER | = lv_keyrecordnumber | |
| . " BAPI_ADDRESSEMPFR_REQUEST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_ADDRESSEMPFR_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_employeenumber). | ||||
| "SELECT single ORT01 FROM BAPIP0006 INTO @DATA(ld_city). | ||||
| "SELECT single ORT02 FROM BAPIP0006 INTO @DATA(ld_district). | ||||
| "SELECT single LAND1 FROM BAPIP0006 INTO @DATA(ld_country). | ||||
| "SELECT single TELNR FROM BAPIP0006 INTO @DATA(ld_telephonenumber). | ||||
| "SELECT single DISTANCEINKM FROM BAPIP0006LFR INTO @DATA(ld_distanceinkm). | ||||
| "SELECT single DISTANCEINKM1 FROM BAPIP0006LFR INTO @DATA(ld_distanceinkm1). | ||||
| "SELECT single COMPANYAPARTM FROM BAPIP0006LFR INTO @DATA(ld_companyapartm). | ||||
| "SELECT single BUSROUTE FROM BAPIP0006LFR INTO @DATA(ld_busroute). | ||||
| "SELECT single COMMTYPE1 FROM BAPIP0006LFR INTO @DATA(ld_commtype1). | ||||
| "SELECT single COMMNUMBER1 FROM BAPIP0006LFR INTO @DATA(ld_commnumber1). | ||||
| "SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single PERNR FROM BAPIP0006 INTO @DATA(ld_keyemployeenumber). | ||||
| "SELECT single COMMTYPE2 FROM BAPIP0006LFR INTO @DATA(ld_commtype2). | ||||
| "SELECT single COMMNUMBER2 FROM BAPIP0006LFR INTO @DATA(ld_commnumber2). | ||||
| "SELECT single COMMTYPE3 FROM BAPIP0006LFR INTO @DATA(ld_commtype3). | ||||
| "SELECT single COMMNUMBER3 FROM BAPIP0006LFR INTO @DATA(ld_commnumber3). | ||||
| "SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit). | ||||
| "SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_keysubtype). | ||||
| "SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_validityend). | ||||
| "SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_addresstype). | ||||
| "SELECT single OBJPS FROM BAPIP0006 INTO @DATA(ld_keyobjectid). | ||||
| "SELECT single NAME2 FROM BAPIP0006 INTO @DATA(ld_coname). | ||||
| "SELECT single SPRPS FROM BAPIP0006 INTO @DATA(ld_keylockindicator). | ||||
| "SELECT single HOUSENUMBER FROM BAPIP0006LFR INTO @DATA(ld_housenumber). | ||||
| "SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_keyvaliditybegin). | ||||
| "SELECT single NAMEOFSTREET FROM BAPIP0006LFR INTO @DATA(ld_nameofstreet). | ||||
| "SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_keyvalidityend). | ||||
| "SELECT single SEQNR FROM BAPIP0006 INTO @DATA(ld_keyrecordnumber). | ||||
| "SELECT single LOCAT FROM BAPIP0006 INTO @DATA(ld_scndaddressline). | ||||
| "SELECT single PSTLZ FROM BAPIP0006 INTO @DATA(ld_postalcodecity). | ||||
Search for further information about these or an SAP related objects