HCM BAPI RFC Used the same way in S/4HANA

BAPI_ADDRESSEMP_GETDETAIL Read Employee Address (Infotype 0006)

Reads one address record (infotype 0006) by its full key and returns the address fields with country and region names. It is used by portals and interfaces that display or forward address data. The standard HR authorization check applies; check RETURN.

Function group
PADR
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
EMPLOYEENUMBERBAPIP0006-PERNRPersonnel numberYes
SUBTYPEBAPIP0006-SUBTYSubtypeYes
OBJECTIDBAPIP0006-OBJPSObject identificationYes
LOCKINDICATORBAPIP0006-SPRPSLock indicatorYes
VALIDITYBEGINBAPIP0006-BEGDAValid fromYes
VALIDITYENDBAPIP0006-ENDDAValid toYes
RECORDNUMBERBAPIP0006-SEQNRRecord numberYes

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message
ADDRESSTYPEBAPIP0006-SUBTYAddress type
NAMEOFADDRESSTYPEBAPIP0006-NAMEOFANSSAAddress type text
CONAMEBAPIP0006-NAME2c/o name
STREETANDHOUSENOBAPIP0006-STRASStreet and house number
SCNDADDRESSLINEBAPIP0006-LOCATSecond address line
CITYBAPIP0006-ORT01City
DISTRICTBAPIP0006-ORT02District
POSTALCODECITYBAPIP0006-PSTLZPostal code
STATEBAPIP0006-STATERegion
NAMEOFSTATEBAPIP0006-NAMEOFSTATERegion text
COUNTRYBAPIP0006-LAND1Country key
NAMEOFCOUNTRYBAPIP0006-NAMEOFLAND1Country name
TELEPHONENUMBERBAPIP0006-TELNRTelephone number

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_ADDRESSEMP_GETDETAIL'
  EXPORTING
    employeenumber = lv_employeenumber
    subtype = lv_subtype
    objectid = lv_objectid
    lockindicator = lv_lockindicator
    validitybegin = lv_validitybegin
    validityend = lv_validityend
    recordnumber = lv_recordnumber
  IMPORTING
    return = lv_return
    addresstype = lv_addresstype
    nameofaddresstype = lv_nameofaddresstype
    coname = lv_coname
    streetandhouseno = lv_streetandhouseno
    scndaddressline = lv_scndaddressline
    city = lv_city
    district = lv_district
    postalcodecity = lv_postalcodecity
    state = lv_state.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report