SAP BAPI_PERSDATAJP_SIMULACREATION Function Module for Personal data Japan: Simulate Create record









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

Function Group: PERS_JP
Program Name: SAPLPERS_JP
Main Program:
Appliation area: P
Release date: 23-Feb-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_PERSDATAJP_SIMULACREATION 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_PERSDATAJP_SIMULACREATION'"Personal data Japan: Simulate Create record
EXPORTING
EMPLOYEENUMBER = "Personnel number
* NAMEATBIRTH = "Name at birth
* NAMEATBIRTHKATAKANA = "Name at birth (Katakana)
* NAMEATBIRTHROMAJI = "Name at birth (Romaji)
* KOSEKINAME = "Name in Koseki
* KOSEKINAMEKATAKANA = "Name in Koseki (Katakana)
* KOSEKINAMEROMAJI = "Name in Koseki (Romaji)
* ACADEMICGRADE = "Title
* SECONDACADGRADE = "Second title
* GENDER = "Gender
* DATEOFBIRTH = "Date of birth
VALIDITYBEGIN = "Valid from date
* BIRTHPLACE = "Birthplace
* STATEOFBIRTH = "Prefecture of birthplace
* COUNTRYOFBIRTH = "Country of birthplace
* MARITALSTATUS = "Marital status
* MARITALSTATUSSINCE = "Valid from date of current marital status
* LANGUAGE = "Language
* LANGUAGEISO = "Language according to ISO 639
* NATIONALITY = "Nationality
* NAMEFORMAT = "Name format
* NOCOMMIT = "COMMIT control at BAPI interface
VALIDITYEND = "Valid to date
* FIRSTNAME = "First name
* LASTNAME = "Last name
* FIRSTNAMEKATAKANA = "First name (Katakana)
* LASTNAMEKATAKANA = "Last name (Katakana)
* FIRSTNAMEROMAJI = "First name (Romaji)
* LASTNAMEROMAJI = "Last name (Romaji)

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_PERSDATAJP_SIMULACREATION

EMPLOYEENUMBER - Personnel number

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

NAMEATBIRTH - Name at birth

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

NAMEATBIRTHKATAKANA - Name at birth (Katakana)

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

NAMEATBIRTHROMAJI - Name at birth (Romaji)

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

KOSEKINAME - Name in Koseki

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

KOSEKINAMEKATAKANA - Name in Koseki (Katakana)

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

KOSEKINAMEROMAJI - Name in Koseki (Romaji)

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

ACADEMICGRADE - Title

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

SECONDACADGRADE - Second title

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

GENDER - Gender

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

DATEOFBIRTH - Date of birth

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

VALIDITYBEGIN - Valid from date

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

BIRTHPLACE - Birthplace

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

STATEOFBIRTH - Prefecture of birthplace

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

COUNTRYOFBIRTH - Country of birthplace

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

MARITALSTATUS - Marital status

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

MARITALSTATUSSINCE - Valid from date of current marital status

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

LANGUAGE - Language

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

LANGUAGEISO - Language according to ISO 639

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

NATIONALITY - Nationality

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

NAMEFORMAT - Name format

Data type: BAPIP0002-KNZNM
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)

VALIDITYEND - Valid to date

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

FIRSTNAME - First name

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

LASTNAME - Last name

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

FIRSTNAMEKATAKANA - First name (Katakana)

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

LASTNAMEKATAKANA - Last name (Katakana)

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

FIRSTNAMEROMAJI - First name (Romaji)

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

LASTNAMEROMAJI - Last name (Romaji)

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

EXPORTING Parameters details for BAPI_PERSDATAJP_SIMULACREATION

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: BAPIP0002-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

SUBTYPE - Subtype

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

OBJECTID - Object ID

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

LOCKINDICATOR - Lock indicator for HR master record

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

VALIDITYBEGIN - Valid from date

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

VALIDITYEND - Valid to date

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

RECORDNUMBER - Number of infotype record

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

Copy and paste ABAP code example for BAPI_PERSDATAJP_SIMULACREATION 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 BAPIP0002-PERNR, "   
lv_nameatbirth  TYPE BAPIP0002-NAME2, "   
lv_nameatbirthkatakana  TYPE BAPIP0002-NABIK, "   
lv_nameatbirthromaji  TYPE BAPIP0002-NABIR, "   
lv_kosekiname  TYPE BAPIP0002-RUFNM, "   
lv_kosekinamekatakana  TYPE BAPIP0002-NICKK, "   
lv_kosekinameromaji  TYPE BAPIP0002-NICKR, "   
lv_academicgrade  TYPE BAPIP0002-TITEL, "   
lv_secondacadgrade  TYPE BAPIP0002-TITL2, "   
lv_gender  TYPE BAPIP0002-GESCH, "   
lv_dateofbirth  TYPE BAPIP0002-GBDAT, "   
lv_validitybegin  TYPE BAPIP0002-BEGDA, "   
lv_employeenumber  TYPE BAPIP0002-PERNR, "   
lv_birthplace  TYPE BAPIP0002-GBORT, "   
lv_stateofbirth  TYPE BAPIP0002-GBDEP, "   
lv_countryofbirth  TYPE BAPIP0002-GBLND, "   
lv_maritalstatus  TYPE BAPIP0002-FAMST, "   
lv_maritalstatussince  TYPE BAPIP0002-FAMDT, "   
lv_language  TYPE BAPIP0002-SPRSL, "   
lv_languageiso  TYPE BAPIP0002-SPRSL_ISO, "   
lv_nationality  TYPE BAPIP0002-NATIO, "   
lv_nameformat  TYPE BAPIP0002-KNZNM, "   
lv_nocommit  TYPE BAPI_STAND-NO_COMMIT, "   
lv_subtype  TYPE BAPIP0002-SUBTY, "   
lv_validityend  TYPE BAPIP0002-ENDDA, "   
lv_objectid  TYPE BAPIP0002-OBJPS, "   
lv_firstname  TYPE BAPIP0002-VORNA, "   
lv_lastname  TYPE BAPIP0002-NACHN, "   
lv_lockindicator  TYPE BAPIP0002-SPRPS, "   
lv_validitybegin  TYPE BAPIP0002-BEGDA, "   
lv_firstnamekatakana  TYPE BAPIP0002-FNAMK, "   
lv_validityend  TYPE BAPIP0002-ENDDA, "   
lv_lastnamekatakana  TYPE BAPIP0002-LNAMK, "   
lv_recordnumber  TYPE BAPIP0002-SEQNR, "   
lv_firstnameromaji  TYPE BAPIP0002-FNAMR, "   
lv_lastnameromaji  TYPE BAPIP0002-LNAMR. "   

  CALL FUNCTION 'BAPI_PERSDATAJP_SIMULACREATION'  "Personal data Japan: Simulate Create record
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         NAMEATBIRTH = lv_nameatbirth
         NAMEATBIRTHKATAKANA = lv_nameatbirthkatakana
         NAMEATBIRTHROMAJI = lv_nameatbirthromaji
         KOSEKINAME = lv_kosekiname
         KOSEKINAMEKATAKANA = lv_kosekinamekatakana
         KOSEKINAMEROMAJI = lv_kosekinameromaji
         ACADEMICGRADE = lv_academicgrade
         SECONDACADGRADE = lv_secondacadgrade
         GENDER = lv_gender
         DATEOFBIRTH = lv_dateofbirth
         VALIDITYBEGIN = lv_validitybegin
         BIRTHPLACE = lv_birthplace
         STATEOFBIRTH = lv_stateofbirth
         COUNTRYOFBIRTH = lv_countryofbirth
         MARITALSTATUS = lv_maritalstatus
         MARITALSTATUSSINCE = lv_maritalstatussince
         LANGUAGE = lv_language
         LANGUAGEISO = lv_languageiso
         NATIONALITY = lv_nationality
         NAMEFORMAT = lv_nameformat
         NOCOMMIT = lv_nocommit
         VALIDITYEND = lv_validityend
         FIRSTNAME = lv_firstname
         LASTNAME = lv_lastname
         FIRSTNAMEKATAKANA = lv_firstnamekatakana
         LASTNAMEKATAKANA = lv_lastnamekatakana
         FIRSTNAMEROMAJI = lv_firstnameromaji
         LASTNAMEROMAJI = lv_lastnameromaji
    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_PERSDATAJP_SIMULACREATION




ABAP code using 7.40 inline data declarations to call FM BAPI_PERSDATAJP_SIMULACREATION

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 BAPIP0002 INTO @DATA(ld_employeenumber).
 
"SELECT single NAME2 FROM BAPIP0002 INTO @DATA(ld_nameatbirth).
 
"SELECT single NABIK FROM BAPIP0002 INTO @DATA(ld_nameatbirthkatakana).
 
"SELECT single NABIR FROM BAPIP0002 INTO @DATA(ld_nameatbirthromaji).
 
"SELECT single RUFNM FROM BAPIP0002 INTO @DATA(ld_kosekiname).
 
"SELECT single NICKK FROM BAPIP0002 INTO @DATA(ld_kosekinamekatakana).
 
"SELECT single NICKR FROM BAPIP0002 INTO @DATA(ld_kosekinameromaji).
 
"SELECT single TITEL FROM BAPIP0002 INTO @DATA(ld_academicgrade).
 
"SELECT single TITL2 FROM BAPIP0002 INTO @DATA(ld_secondacadgrade).
 
"SELECT single GESCH FROM BAPIP0002 INTO @DATA(ld_gender).
 
"SELECT single GBDAT FROM BAPIP0002 INTO @DATA(ld_dateofbirth).
 
"SELECT single BEGDA FROM BAPIP0002 INTO @DATA(ld_validitybegin).
 
"SELECT single PERNR FROM BAPIP0002 INTO @DATA(ld_employeenumber).
 
"SELECT single GBORT FROM BAPIP0002 INTO @DATA(ld_birthplace).
 
"SELECT single GBDEP FROM BAPIP0002 INTO @DATA(ld_stateofbirth).
 
"SELECT single GBLND FROM BAPIP0002 INTO @DATA(ld_countryofbirth).
 
"SELECT single FAMST FROM BAPIP0002 INTO @DATA(ld_maritalstatus).
 
"SELECT single FAMDT FROM BAPIP0002 INTO @DATA(ld_maritalstatussince).
 
"SELECT single SPRSL FROM BAPIP0002 INTO @DATA(ld_language).
 
"SELECT single SPRSL_ISO FROM BAPIP0002 INTO @DATA(ld_languageiso).
 
"SELECT single NATIO FROM BAPIP0002 INTO @DATA(ld_nationality).
 
"SELECT single KNZNM FROM BAPIP0002 INTO @DATA(ld_nameformat).
 
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit).
 
"SELECT single SUBTY FROM BAPIP0002 INTO @DATA(ld_subtype).
 
"SELECT single ENDDA FROM BAPIP0002 INTO @DATA(ld_validityend).
 
"SELECT single OBJPS FROM BAPIP0002 INTO @DATA(ld_objectid).
 
"SELECT single VORNA FROM BAPIP0002 INTO @DATA(ld_firstname).
 
"SELECT single NACHN FROM BAPIP0002 INTO @DATA(ld_lastname).
 
"SELECT single SPRPS FROM BAPIP0002 INTO @DATA(ld_lockindicator).
 
"SELECT single BEGDA FROM BAPIP0002 INTO @DATA(ld_validitybegin).
 
"SELECT single FNAMK FROM BAPIP0002 INTO @DATA(ld_firstnamekatakana).
 
"SELECT single ENDDA FROM BAPIP0002 INTO @DATA(ld_validityend).
 
"SELECT single LNAMK FROM BAPIP0002 INTO @DATA(ld_lastnamekatakana).
 
"SELECT single SEQNR FROM BAPIP0002 INTO @DATA(ld_recordnumber).
 
"SELECT single FNAMR FROM BAPIP0002 INTO @DATA(ld_firstnameromaji).
 
"SELECT single LNAMR FROM BAPIP0002 INTO @DATA(ld_lastnameromaji).
 


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!