SAP BAPI_ADDRESSEMPJP_CREATE Function Module for address Japan: Create record









BAPI_ADDRESSEMPJP_CREATE is a standard bapi addressempjp create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for address Japan: Create record 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 addressempjp create FM, simply by entering the name BAPI_ADDRESSEMPJP_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: PADR_JP
Program Name: SAPLPADR_JP
Main Program:
Appliation area: P
Release date: 25-Mar-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_ADDRESSEMPJP_CREATE 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_ADDRESSEMPJP_CREATE'"address Japan: Create record
EXPORTING
EMPLOYEENUMBER = "Personnel number
* STATE = "Prefecture
* SHIKUCHOUSON = "Shikuchouson code
* COUNTRY = "Country
* TELEPHONENUMBER = "Telephone number
* COMMTYPE1 = "Other communication media
* COMMNUMBER1 = "Other comuunication media number
* ADDRESSKANA1ST = "1st line of address (Katakana)
* ADDRESSKANA2ND = "2nd line of address (Katakana)
* ADDRESSKANA3RD = "3rd line of address (Katakana)
* ADDRESSKANA4TH = "4th line of address (Katakana)
VALIDITYBEGIN = "Valid from date
* COMPANYOWNEDAPT = "Shataku
* MUNICIPALCITYCODE = "Municipal city code
* CONTACTNAMEKATAKANA = "Contact name (Katakana)
* RELATIONSHIP = "Relationship with contact person
* NOCOMMIT = "COMMIT control at BAPI interface
* STREETANDHOUSENO = "This is not used in Japan
* SCNDADDRESSLINE = "This is not used in Japan
* CITY = "This is not used in Japan
* DISTRICT = "This is not used in Japan
VALIDITYEND = "Valid to date
ADDRESSTYPE = "Address type
* CONAME = "Contact name
* ADDRESS3RDLINE = "3rd line of address
* ADDRESS1STLINE = "1st line of address
* ADDRESS2NDLINE = "2nd line of address
* POSTALCODECITY = "Postal code

IMPORTING
RETURN = "Structure for return code
EMPLOYEENUMBER = "Personnel number
SUBTYPE = "Subtype
OBJECTID = "Object ID
LOCKINDICATOR = "Lock indicator for HR master record
VALIDITYBEGIN = "Valid from date
VALIDITYEND = "Valid to date
RECORDNUMBER = "Number of infotype record
.



IMPORTING Parameters details for BAPI_ADDRESSEMPJP_CREATE

EMPLOYEENUMBER - Personnel number

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

STATE - Prefecture

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

SHIKUCHOUSON - Shikuchouson code

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

COUNTRY - Country

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

TELEPHONENUMBER - Telephone number

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

COMMTYPE1 - Other communication media

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

COMMNUMBER1 - Other comuunication media number

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

ADDRESSKANA1ST - 1st line of address (Katakana)

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

ADDRESSKANA2ND - 2nd line of address (Katakana)

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

ADDRESSKANA3RD - 3rd line of address (Katakana)

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

ADDRESSKANA4TH - 4th line of address (Katakana)

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

VALIDITYBEGIN - Valid from date

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

COMPANYOWNEDAPT - Shataku

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

MUNICIPALCITYCODE - Municipal city code

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

CONTACTNAMEKATAKANA - Contact name (Katakana)

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

RELATIONSHIP - Relationship with contact person

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

NOCOMMIT - COMMIT control at BAPI interface

Data type: BAPI_STAND-NO_COMMIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

STREETANDHOUSENO - This is not used in Japan

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

SCNDADDRESSLINE - This is not used in Japan

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

CITY - This is not used in Japan

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

DISTRICT - This is not used in Japan

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

VALIDITYEND - Valid to date

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

ADDRESSTYPE - Address type

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

CONAME - Contact name

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

ADDRESS3RDLINE - 3rd line of address

Data type: BAPIP0006JP-ADDRESS3RDLINE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDRESS1STLINE - 1st line of address

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

ADDRESS2NDLINE - 2nd line of address

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

POSTALCODECITY - Postal code

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

EXPORTING Parameters details for BAPI_ADDRESSEMPJP_CREATE

RETURN - Structure for return code

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

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 ID

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 - Valid from date

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

VALIDITYEND - Valid to date

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

RECORDNUMBER - Number of infotype record

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

Copy and paste ABAP code example for BAPI_ADDRESSEMPJP_CREATE 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_state  TYPE BAPIP0006-STATE, "   
lv_shikuchouson  TYPE BAPIP0006-COUNC, "   
lv_country  TYPE BAPIP0006-LAND1, "   
lv_telephonenumber  TYPE BAPIP0006-TELNR, "   
lv_commtype1  TYPE BAPIP0006-COM01, "   
lv_commnumber1  TYPE BAPIP0006-NUM01, "   
lv_addresskana1st  TYPE BAPIP0006-OR1KK, "   
lv_addresskana2nd  TYPE BAPIP0006-OR2KK, "   
lv_addresskana3rd  TYPE BAPIP0006-LOCAT, "   
lv_addresskana4th  TYPE BAPIP0006-ADR04, "   
lv_validitybegin  TYPE BAPIP0006-BEGDA, "   
lv_employeenumber  TYPE BAPIP0006-PERNR, "   
lv_companyownedapt  TYPE BAPIP0006-WKWNG, "   
lv_municipalcitycode  TYPE BAPIP0006-RCTVC, "   
lv_contactnamekatakana  TYPE BAPIP0006-CONKK, "   
lv_relationship  TYPE BAPIP0006-INDRL, "   
lv_nocommit  TYPE BAPI_STAND-NO_COMMIT, "   
lv_streetandhouseno  TYPE BAPIP0006-STRAS, "   
lv_scndaddressline  TYPE BAPIP0006-LOCAT, "   
lv_city  TYPE BAPIP0006-ORT01, "   
lv_district  TYPE BAPIP0006-ORT02, "   
lv_subtype  TYPE BAPIP0006-SUBTY, "   
lv_validityend  TYPE BAPIP0006-ENDDA, "   
lv_objectid  TYPE BAPIP0006-OBJPS, "   
lv_addresstype  TYPE BAPIP0006-SUBTY, "   
lv_coname  TYPE BAPIP0006-NAME2, "   
lv_lockindicator  TYPE BAPIP0006-SPRPS, "   
lv_validitybegin  TYPE BAPIP0006-BEGDA, "   
lv_address3rdline  TYPE BAPIP0006JP-ADDRESS3RDLINE, "   
lv_validityend  TYPE BAPIP0006-ENDDA, "   
lv_address1stline  TYPE BAPIP0006-ORT01, "   
lv_recordnumber  TYPE BAPIP0006-SEQNR, "   
lv_address2ndline  TYPE BAPIP0006-ORT02, "   
lv_postalcodecity  TYPE BAPIP0006-PSTLZ. "   

  CALL FUNCTION 'BAPI_ADDRESSEMPJP_CREATE'  "address Japan: Create record
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         STATE = lv_state
         SHIKUCHOUSON = lv_shikuchouson
         COUNTRY = lv_country
         TELEPHONENUMBER = lv_telephonenumber
         COMMTYPE1 = lv_commtype1
         COMMNUMBER1 = lv_commnumber1
         ADDRESSKANA1ST = lv_addresskana1st
         ADDRESSKANA2ND = lv_addresskana2nd
         ADDRESSKANA3RD = lv_addresskana3rd
         ADDRESSKANA4TH = lv_addresskana4th
         VALIDITYBEGIN = lv_validitybegin
         COMPANYOWNEDAPT = lv_companyownedapt
         MUNICIPALCITYCODE = lv_municipalcitycode
         CONTACTNAMEKATAKANA = lv_contactnamekatakana
         RELATIONSHIP = lv_relationship
         NOCOMMIT = lv_nocommit
         STREETANDHOUSENO = lv_streetandhouseno
         SCNDADDRESSLINE = lv_scndaddressline
         CITY = lv_city
         DISTRICT = lv_district
         VALIDITYEND = lv_validityend
         ADDRESSTYPE = lv_addresstype
         CONAME = lv_coname
         ADDRESS3RDLINE = lv_address3rdline
         ADDRESS1STLINE = lv_address1stline
         ADDRESS2NDLINE = lv_address2ndline
         POSTALCODECITY = lv_postalcodecity
    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
. " BAPI_ADDRESSEMPJP_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_ADDRESSEMPJP_CREATE

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 STATE FROM BAPIP0006 INTO @DATA(ld_state).
 
"SELECT single COUNC FROM BAPIP0006 INTO @DATA(ld_shikuchouson).
 
"SELECT single LAND1 FROM BAPIP0006 INTO @DATA(ld_country).
 
"SELECT single TELNR FROM BAPIP0006 INTO @DATA(ld_telephonenumber).
 
"SELECT single COM01 FROM BAPIP0006 INTO @DATA(ld_commtype1).
 
"SELECT single NUM01 FROM BAPIP0006 INTO @DATA(ld_commnumber1).
 
"SELECT single OR1KK FROM BAPIP0006 INTO @DATA(ld_addresskana1st).
 
"SELECT single OR2KK FROM BAPIP0006 INTO @DATA(ld_addresskana2nd).
 
"SELECT single LOCAT FROM BAPIP0006 INTO @DATA(ld_addresskana3rd).
 
"SELECT single ADR04 FROM BAPIP0006 INTO @DATA(ld_addresskana4th).
 
"SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_validitybegin).
 
"SELECT single PERNR FROM BAPIP0006 INTO @DATA(ld_employeenumber).
 
"SELECT single WKWNG FROM BAPIP0006 INTO @DATA(ld_companyownedapt).
 
"SELECT single RCTVC FROM BAPIP0006 INTO @DATA(ld_municipalcitycode).
 
"SELECT single CONKK FROM BAPIP0006 INTO @DATA(ld_contactnamekatakana).
 
"SELECT single INDRL FROM BAPIP0006 INTO @DATA(ld_relationship).
 
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit).
 
"SELECT single STRAS FROM BAPIP0006 INTO @DATA(ld_streetandhouseno).
 
"SELECT single LOCAT FROM BAPIP0006 INTO @DATA(ld_scndaddressline).
 
"SELECT single ORT01 FROM BAPIP0006 INTO @DATA(ld_city).
 
"SELECT single ORT02 FROM BAPIP0006 INTO @DATA(ld_district).
 
"SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_subtype).
 
"SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_validityend).
 
"SELECT single OBJPS FROM BAPIP0006 INTO @DATA(ld_objectid).
 
"SELECT single SUBTY FROM BAPIP0006 INTO @DATA(ld_addresstype).
 
"SELECT single NAME2 FROM BAPIP0006 INTO @DATA(ld_coname).
 
"SELECT single SPRPS FROM BAPIP0006 INTO @DATA(ld_lockindicator).
 
"SELECT single BEGDA FROM BAPIP0006 INTO @DATA(ld_validitybegin).
 
"SELECT single ADDRESS3RDLINE FROM BAPIP0006JP INTO @DATA(ld_address3rdline).
 
"SELECT single ENDDA FROM BAPIP0006 INTO @DATA(ld_validityend).
 
"SELECT single ORT01 FROM BAPIP0006 INTO @DATA(ld_address1stline).
 
"SELECT single SEQNR FROM BAPIP0006 INTO @DATA(ld_recordnumber).
 
"SELECT single ORT02 FROM BAPIP0006 INTO @DATA(ld_address2ndline).
 
"SELECT single PSTLZ FROM BAPIP0006 INTO @DATA(ld_postalcodecity).
 


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!