Fonction SAP BAPI_ADDRESSEMPCH_GETDETAIL - Read Employee Address

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EMPLOYEENUMBER BAPIP0006-PERNR N 8 Personnel number
LOCKINDICATOR BAPIP0006-SPRPS C 1 Lock indicator for HR master record
OBJECTID BAPIP0006-OBJPS C 2 Object identification
RECORDNUMBER BAPIP0006-SEQNR N 3 Number of Infotype Record
SUBTYPE BAPIP0006-SUBTY C 4 Subtype
VALIDITYBEGIN BAPIP0006-BEGDA D 8 Valid from date
VALIDITYEND BAPIP0006-ENDDA D 8 Valid to date

Paramètre Reférence Type Long. Description
ADDRESSTYPE BAPIP0006-SUBTY C 4 Subtype
BUSROUTE BAPIP0006LCH-BUSROUTE C 3
CITY BAPIP0006-ORT01 C 40 Location
COMMNUMBER1 BAPIP0006LCH-COMMNUMBER1 C 20 Communication number 1
COMMNUMBER2 BAPIP0006LCH-COMMNUMBER2 C 20 Communication number 2
COMMNUMBER3 BAPIP0006LCH-COMMNUMBER3 C 20 Communication number 3
COMMTYPE1 BAPIP0006LCH-COMMTYPE1 C 4 Communication type 1
COMMTYPE2 BAPIP0006LCH-COMMTYPE2 C 4 Communication type 2
COMMTYPE3 BAPIP0006LCH-COMMTYPE3 C 4 Communication type 3
COMPANYOWNEDAPT BAPIP0006-WKWNG C 1
CONAME BAPIP0006-NAME2 C 40 C/O name
COUNTRY BAPIP0006-LAND1 C 3 Country key
DISTANCEINKM BAPIP0006LCH-DISTANCEINKM P 2
DISTANCEINKM1 BAPIP0006LCH-DISTANCEINKM1 P 2
DISTRICT BAPIP0006-ORT02 C 40 District
NAMEOFADDRESSTYPE BAPIP0006-NAMEOFANSSA C 40 Name of address type
NAMEOFCOUNTRY BAPIP0006-NAMEOFLAND1 C 15 Country Name
NAMEOFSTATE BAPIP0006-NAMEOFSTATE C 20 Name of region
POSTALCODECITY BAPIP0006-PSTLZ C 10 Postal code
RETURN BAPIRETURN1 u 470 Structure for return code
STATE BAPIP0006-STATE C 3 Region
STREETANDHOUSENO BAPIP0006-STRAS C 60 House number and street
TELEPHONENUMBER BAPIP0006-TELNR C 14 Telephone number

Functionality
You can use this method to read an Addresses record (0006).

Notes
Messages are transferred to the RETURN parameter. The relevantparameter documentation contains the return values and their meanings.
The key fields used by the method are described in the parameterdocumentation.

Description
For information on the subtype, read the relevant data elementdocumentation: Subtype.

Description
City

Description
Communication number corresponding to the communication type in thepreceding field, such as fax, telephone, pager, etc.

Description
Communication number corresponding to the communication type in thepreceding field, such as fax, telephone, pager, etc.

Description
Communication number corresponding to the communication type in thepreceding field, such as fax, telephone, pager, etc.

Description
Communication type

Description
Communication type

Description
Communication type

Description
For information on the C/O name, read the relevant data elementdocumentation: C/O name.

Description
For information on the country key, read the relevant data elementdocumentation: Country key.

Description
District

Description
The address type specifies whether the address in question is theemployee's permanent address, temporary place of residence, anemergency address, or some other type of address.
It is part of personal data.

Description
Name of country

Description
Name of state

Description
Postal code

Description
INCLUDE BAPI_TABLE

Value range
Authorization messages
Type,,ID,,Code,,Message
E,,PG,,185,,No read authorization for record.
Messages on data input
Type,,ID,,Code,,Message
E,,PG,,009,,No data stored for record in selected period.

Description
For information on the region (state, province, county), read therelevant data element documentation: Region.

Description
Use this field to identify the street name and house number.
To do so:

  • Type in the street address, up to a maximum of 30 characters.
  • Description
    Telephone number
    INCLUDE BAPI_KEYFIELD
    INCLUDE BAPI_KEYFIELD
    INCLUDE BAPI_KEYFIELD
    INCLUDE BAPI_KEYFIELD
    INCLUDE BAPI_KEYFIELD
    INCLUDE BAPI_KEYFIELD
    INCLUDE BAPI_KEYFIELD