SAP BAPI_ADDREMPSG_GETDETAIL Function Module for ESS Address Get Detail - Singapore









BAPI_ADDREMPSG_GETDETAIL is a standard bapi addrempsg getdetail 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 Get Detail - Singapore 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 addrempsg getdetail FM, simply by entering the name BAPI_ADDREMPSG_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: PADR_SG
Program Name: SAPLPADR_SG
Main Program:
Appliation area: P
Release date: 11-Feb-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_ADDREMPSG_GETDETAIL 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_ADDREMPSG_GETDETAIL'"ESS Address Get Detail - Singapore
EXPORTING
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 with same key

IMPORTING
RETURN = "Structure for return code
COUNTRY = "Country key
TELEPHONENUMBER = "Telephone number
NAMEOFADDRESSTYPE = "Name of subtype
NAMEOFSTATE = "Name of State
NAMEOFCOUNTRY = "Country name
COMMTYPE1 = "Communication type
COMMNUMBER1 = "Communications number
COMMTYPE2 = "Communication type
COMMNUMBER2 = "Communications number
COMMTYPE3 = "Communication type
ADDRESSTYPE = "Subtype
COMMNUMBER3 = "Communications number
COMMTYPE4 = "Communication type
COMMNUMBER4 = "Communications number
STREET2 = "Street 2
STREET3 = "Street 3
BLOCKNUMBER = "Block Number
STOREY = "Storey/Floor in building
UNITNUMBER = "Unit Number
STREETCODE = "Street Code
CONAME = "C/O name
STREETANDHOUSENO = "House number and street
SCNDADDRESSLINE = "2nd address line
CITY = "City
DISTRICT = "District
POSTALCODECITY = "Postal code
STATE = "State
.



IMPORTING Parameters details for BAPI_ADDREMPSG_GETDETAIL

EMPLOYEENUMBER - Personnel Number

Data type: BAPIP0006-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

SUBTYPE - Subtype

Data type: BAPIP0006-SUBTY
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECTID - Object identification

Data type: BAPIP0006-OBJPS
Optional: No
Call by Reference: No ( called with pass by value option)

LOCKINDICATOR - Lock indicator for HR master record

Data type: BAPIP0006-SPRPS
Optional: No
Call by Reference: No ( called with pass by value option)

VALIDITYBEGIN - Start date

Data type: BAPIP0006-BEGDA
Optional: No
Call by Reference: No ( called with pass by value option)

VALIDITYEND - End Date

Data type: BAPIP0006-ENDDA
Optional: No
Call by Reference: No ( called with pass by value option)

RECORDNUMBER - Number of infotype record with same key

Data type: BAPIP0006-SEQNR
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_ADDREMPSG_GETDETAIL

RETURN - Structure for return code

Data type: BAPIRETURN1
Optional: No
Call by Reference: No ( called with pass by value option)

COUNTRY - Country key

Data type: BAPIP0006-LAND1
Optional: No
Call by Reference: No ( called with pass by value option)

TELEPHONENUMBER - Telephone number

Data type: BAPIP0006-TELNR
Optional: No
Call by Reference: No ( called with pass by value option)

NAMEOFADDRESSTYPE - Name of subtype

Data type: BAPIP0006-NAMEOFANSSA
Optional: No
Call by Reference: No ( called with pass by value option)

NAMEOFSTATE - Name of State

Data type: BAPIP0006-NAMEOFSTATE
Optional: No
Call by Reference: No ( called with pass by value option)

NAMEOFCOUNTRY - Country name

Data type: BAPIP0006-NAMEOFLAND1
Optional: No
Call by Reference: No ( called with pass by value option)

COMMTYPE1 - Communication type

Data type: BAPIP0006SG-COMMTYPE1
Optional: No
Call by Reference: No ( called with pass by value option)

COMMNUMBER1 - Communications number

Data type: BAPIP0006SG-COMMNUMBER1
Optional: No
Call by Reference: No ( called with pass by value option)

COMMTYPE2 - Communication type

Data type: BAPIP0006SG-COMMTYPE2
Optional: No
Call by Reference: No ( called with pass by value option)

COMMNUMBER2 - Communications number

Data type: BAPIP0006SG-COMMNUMBER2
Optional: No
Call by Reference: No ( called with pass by value option)

COMMTYPE3 - Communication type

Data type: BAPIP0006SG-COMMTYPE3
Optional: No
Call by Reference: No ( called with pass by value option)

ADDRESSTYPE - Subtype

Data type: BAPIP0006-SUBTY
Optional: No
Call by Reference: No ( called with pass by value option)

COMMNUMBER3 - Communications number

Data type: BAPIP0006SG-COMMNUMBER3
Optional: No
Call by Reference: No ( called with pass by value option)

COMMTYPE4 - Communication type

Data type: BAPIP0006SG-COMMTYPE4
Optional: No
Call by Reference: No ( called with pass by value option)

COMMNUMBER4 - Communications number

Data type: BAPIP0006SG-COMMNUMBER4
Optional: No
Call by Reference: No ( called with pass by value option)

STREET2 - Street 2

Data type: BAPIP0006SG-STREET2
Optional: No
Call by Reference: No ( called with pass by value option)

STREET3 - Street 3

Data type: BAPIP0006SG-STREET3
Optional: No
Call by Reference: No ( called with pass by value option)

BLOCKNUMBER - Block Number

Data type: BAPIP0006-BLDNG
Optional: No
Call by Reference: No ( called with pass by value option)

STOREY - Storey/Floor in building

Data type: BAPIP0006-FLOOR
Optional: No
Call by Reference: No ( called with pass by value option)

UNITNUMBER - Unit Number

Data type: BAPIP0006-HSNMR
Optional: No
Call by Reference: No ( called with pass by value option)

STREETCODE - Street Code

Data type: BAPIP0006-POSTA
Optional: No
Call by Reference: No ( called with pass by value option)

CONAME - C/O name

Data type: BAPIP0006-NAME2
Optional: No
Call by Reference: No ( called with pass by value option)

STREETANDHOUSENO - House number and street

Data type: BAPIP0006-STRAS
Optional: No
Call by Reference: No ( called with pass by value option)

SCNDADDRESSLINE - 2nd address line

Data type: BAPIP0006-LOCAT
Optional: No
Call by Reference: No ( called with pass by value option)

CITY - City

Data type: BAPIP0006-ORT01
Optional: No
Call by Reference: No ( called with pass by value option)

DISTRICT - District

Data type: BAPIP0006-ORT02
Optional: No
Call by Reference: No ( called with pass by value option)

POSTALCODECITY - Postal code

Data type: BAPIP0006-PSTLZ
Optional: No
Call by Reference: No ( called with pass by value option)

STATE - State

Data type: BAPIP0006-STATE
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_ADDREMPSG_GETDETAIL 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_country  TYPE BAPIP0006-LAND1, "   
lv_telephonenumber  TYPE BAPIP0006-TELNR, "   
lv_nameofaddresstype  TYPE BAPIP0006-NAMEOFANSSA, "   
lv_nameofstate  TYPE BAPIP0006-NAMEOFSTATE, "   
lv_nameofcountry  TYPE BAPIP0006-NAMEOFLAND1, "   
lv_commtype1  TYPE BAPIP0006SG-COMMTYPE1, "   
lv_commnumber1  TYPE BAPIP0006SG-COMMNUMBER1, "   
lv_commtype2  TYPE BAPIP0006SG-COMMTYPE2, "   
lv_commnumber2  TYPE BAPIP0006SG-COMMNUMBER2, "   
lv_commtype3  TYPE BAPIP0006SG-COMMTYPE3, "   
lv_subtype  TYPE BAPIP0006-SUBTY, "   
lv_addresstype  TYPE BAPIP0006-SUBTY, "   
lv_commnumber3  TYPE BAPIP0006SG-COMMNUMBER3, "   
lv_commtype4  TYPE BAPIP0006SG-COMMTYPE4, "   
lv_commnumber4  TYPE BAPIP0006SG-COMMNUMBER4, "   
lv_street2  TYPE BAPIP0006SG-STREET2, "   
lv_street3  TYPE BAPIP0006SG-STREET3, "   
lv_blocknumber  TYPE BAPIP0006-BLDNG, "   
lv_storey  TYPE BAPIP0006-FLOOR, "   
lv_unitnumber  TYPE BAPIP0006-HSNMR, "   
lv_streetcode  TYPE BAPIP0006-POSTA, "   
lv_coname  TYPE BAPIP0006-NAME2, "   
lv_objectid  TYPE BAPIP0006-OBJPS, "   
lv_lockindicator  TYPE BAPIP0006-SPRPS, "   
lv_streetandhouseno  TYPE BAPIP0006-STRAS, "   
lv_validitybegin  TYPE BAPIP0006-BEGDA, "   
lv_scndaddressline  TYPE BAPIP0006-LOCAT, "   
lv_city  TYPE BAPIP0006-ORT01, "   
lv_validityend  TYPE BAPIP0006-ENDDA, "   
lv_district  TYPE BAPIP0006-ORT02, "   
lv_recordnumber  TYPE BAPIP0006-SEQNR, "   
lv_postalcodecity  TYPE BAPIP0006-PSTLZ, "   
lv_state  TYPE BAPIP0006-STATE. "   

  CALL FUNCTION 'BAPI_ADDREMPSG_GETDETAIL'  "ESS Address Get Detail - Singapore
    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
         COUNTRY = lv_country
         TELEPHONENUMBER = lv_telephonenumber
         NAMEOFADDRESSTYPE = lv_nameofaddresstype
         NAMEOFSTATE = lv_nameofstate
         NAMEOFCOUNTRY = lv_nameofcountry
         COMMTYPE1 = lv_commtype1
         COMMNUMBER1 = lv_commnumber1
         COMMTYPE2 = lv_commtype2
         COMMNUMBER2 = lv_commnumber2
         COMMTYPE3 = lv_commtype3
         ADDRESSTYPE = lv_addresstype
         COMMNUMBER3 = lv_commnumber3
         COMMTYPE4 = lv_commtype4
         COMMNUMBER4 = lv_commnumber4
         STREET2 = lv_street2
         STREET3 = lv_street3
         BLOCKNUMBER = lv_blocknumber
         STOREY = lv_storey
         UNITNUMBER = lv_unitnumber
         STREETCODE = lv_streetcode
         CONAME = lv_coname
         STREETANDHOUSENO = lv_streetandhouseno
         SCNDADDRESSLINE = lv_scndaddressline
         CITY = lv_city
         DISTRICT = lv_district
         POSTALCODECITY = lv_postalcodecity
         STATE = lv_state
. " BAPI_ADDREMPSG_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_ADDREMPSG_GETDETAIL

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 LAND1 FROM BAPIP0006 INTO @DATA(ld_country).
 
"SELECT single TELNR FROM BAPIP0006 INTO @DATA(ld_telephonenumber).
 
"SELECT single NAMEOFANSSA FROM BAPIP0006 INTO @DATA(ld_nameofaddresstype).
 
"SELECT single NAMEOFSTATE FROM BAPIP0006 INTO @DATA(ld_nameofstate).
 
"SELECT single NAMEOFLAND1 FROM BAPIP0006 INTO @DATA(ld_nameofcountry).
 
"SELECT single COMMTYPE1 FROM BAPIP0006SG INTO @DATA(ld_commtype1).
 
"SELECT single COMMNUMBER1 FROM BAPIP0006SG INTO @DATA(ld_commnumber1).
 
"SELECT single COMMTYPE2 FROM BAPIP0006SG INTO @DATA(ld_commtype2).
 
"SELECT single COMMNUMBER2 FROM BAPIP0006SG INTO @DATA(ld_commnumber2).
 
"SELECT single COMMTYPE3 FROM BAPIP0006SG INTO @DATA(ld_commtype3).
 
"SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_subtype).
 
"SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_addresstype).
 
"SELECT single COMMNUMBER3 FROM BAPIP0006SG INTO @DATA(ld_commnumber3).
 
"SELECT single COMMTYPE4 FROM BAPIP0006SG INTO @DATA(ld_commtype4).
 
"SELECT single COMMNUMBER4 FROM BAPIP0006SG INTO @DATA(ld_commnumber4).
 
"SELECT single STREET2 FROM BAPIP0006SG INTO @DATA(ld_street2).
 
"SELECT single STREET3 FROM BAPIP0006SG INTO @DATA(ld_street3).
 
"SELECT single BLDNG FROM BAPIP0006 INTO @DATA(ld_blocknumber).
 
"SELECT single FLOOR FROM BAPIP0006 INTO @DATA(ld_storey).
 
"SELECT single HSNMR FROM BAPIP0006 INTO @DATA(ld_unitnumber).
 
"SELECT single POSTA FROM BAPIP0006 INTO @DATA(ld_streetcode).
 
"SELECT single NAME2 FROM BAPIP0006 INTO @DATA(ld_coname).
 
"SELECT single OBJPS FROM BAPIP0006 INTO @DATA(ld_objectid).
 
"SELECT single SPRPS FROM BAPIP0006 INTO @DATA(ld_lockindicator).
 
"SELECT single STRAS FROM BAPIP0006 INTO @DATA(ld_streetandhouseno).
 
"SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_validitybegin).
 
"SELECT single LOCAT FROM BAPIP0006 INTO @DATA(ld_scndaddressline).
 
"SELECT single ORT01 FROM BAPIP0006 INTO @DATA(ld_city).
 
"SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_validityend).
 
"SELECT single ORT02 FROM BAPIP0006 INTO @DATA(ld_district).
 
"SELECT single SEQNR FROM BAPIP0006 INTO @DATA(ld_recordnumber).
 
"SELECT single PSTLZ FROM BAPIP0006 INTO @DATA(ld_postalcodecity).
 
"SELECT single STATE FROM BAPIP0006 INTO @DATA(ld_state).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!