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

BAPI_ADDRESSEMP_CREATE Create Employee Address (Infotype 0006)

Creates an address record (infotype 0006) of the given address type for an employee. It is used in data transfer and self-service interfaces. Lock the employee with BAPI_EMPLOYEE_ENQUEUE first and check RETURN; existing records of the same type are delimited according to the time constraint.

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

Importing parameters

ParameterTypeDescriptionRequired
EMPLOYEENUMBERBAPIP0006-PERNRPersonnel numberYes
ADDRESSTYPEBAPIP0006-SUBTYAddress typeYes
VALIDITYBEGINBAPIP0006-BEGDAValid fromYes
VALIDITYENDBAPIP0006-ENDDAValid toYes
CONAMEBAPIP0006-NAME2c/o name—
STREETANDHOUSENOBAPIP0006-STRASStreet and house number—
SCNDADDRESSLINEBAPIP0006-LOCATSecond address line—
CITYBAPIP0006-ORT01City—
DISTRICTBAPIP0006-ORT02District—
POSTALCODECITYBAPIP0006-PSTLZPostal code—
STATEBAPIP0006-STATERegion—
COUNTRYBAPIP0006-LAND1Country key—
TELEPHONENUMBERBAPIP0006-TELNRTelephone number—
NOCOMMITBAPI_STAND-NO_COMMITNo commit (caller commits)—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message
EMPLOYEENUMBERBAPIP0006-PERNRPersonnel number
SUBTYPEBAPIP0006-SUBTYSubtype
OBJECTIDBAPIP0006-OBJPSObject identification
LOCKINDICATORBAPIP0006-SPRPSLock indicator
VALIDITYBEGINBAPIP0006-BEGDAValid from
VALIDITYENDBAPIP0006-ENDDAValid to
RECORDNUMBERBAPIP0006-SEQNRRecord 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_CREATE'
  EXPORTING
    employeenumber = lv_employeenumber
    addresstype = lv_addresstype
    validitybegin = lv_validitybegin
    validityend = lv_validityend
  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.

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