SAP BAPI_PERSDATAJP_GETDETAIL Function Module for Personal data Japan: Read record
BAPI_PERSDATAJP_GETDETAIL is a standard bapi persdatajp 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 Personal data Japan: Read 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 getdetail FM, simply by entering the name BAPI_PERSDATAJP_GETDETAIL 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_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_PERSDATAJP_GETDETAIL'"Personal data Japan: Read record.
EXPORTING
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
RETURN = "Structure for return code
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
BIRTHPLACE = "Birthplace
STATEOFBIRTH = "Prefecture of birthplace
FIRSTNAME = "First name
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
NAMEOFGENDER = "Name of gender
NAMEOFSTATEOFBIRTH = "Name of prefecture of birthplace
NAMEOFCOUNTRYOFBIRTH = "Name of country of birthplace
NAMEOFMARITALSTATUS = "Name of marital status
LASTNAME = "Last name
NAMEOFLANGUAGE = "Name of language
NAMEOFNATIONALITY = "Name of nationality
NAMEFORMAT = "Name format
NAMEOFNAMEFORMAT = "Name of name format
FORMATTEDNAME = "Formatted name
FIRSTNAMEKATAKANA = "First name (Katakana)
LASTNAMEKATAKANA = "Last name (Katakana)
FIRSTNAMEROMAJI = "First name (Romaji)
LASTNAMEROMAJI = "Last name (Romaji)
NAMEATBIRTH = "Name at birth
NAMEATBIRTHKATAKANA = "Name at birth (Katakana)
IMPORTING Parameters details for BAPI_PERSDATAJP_GETDETAIL
EMPLOYEENUMBER - Personnel number
Data type: BAPIP0002-PERNROptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: BAPIP0002-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID - Object ID
Data type: BAPIP0002-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0002-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Valid from date
Data type: BAPIP0002-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - Valid to date
Data type: BAPIP0002-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of infotype record
Data type: BAPIP0002-SEQNROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_PERSDATAJP_GETDETAIL
RETURN - Structure for return code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
NAMEATBIRTHROMAJI - Name at birth (Romaji)
Data type: BAPIP0002-NABIROptional: No
Call by Reference: No ( called with pass by value option)
KOSEKINAME - Name in Koseki
Data type: BAPIP0002-RUFNMOptional: No
Call by Reference: No ( called with pass by value option)
KOSEKINAMEKATAKANA - Name in Koseki (Katakana)
Data type: BAPIP0002-NICKKOptional: No
Call by Reference: No ( called with pass by value option)
KOSEKINAMEROMAJI - Name in Koseki (Romaji)
Data type: BAPIP0002-NICKROptional: No
Call by Reference: No ( called with pass by value option)
ACADEMICGRADE - Title
Data type: BAPIP0002-TITELOptional: No
Call by Reference: No ( called with pass by value option)
SECONDACADGRADE - Second title
Data type: BAPIP0002-TITL2Optional: No
Call by Reference: No ( called with pass by value option)
GENDER - Gender
Data type: BAPIP0002-GESCHOptional: No
Call by Reference: No ( called with pass by value option)
DATEOFBIRTH - Date of birth
Data type: BAPIP0002-GBDATOptional: No
Call by Reference: No ( called with pass by value option)
BIRTHPLACE - Birthplace
Data type: BAPIP0002-GBORTOptional: No
Call by Reference: No ( called with pass by value option)
STATEOFBIRTH - Prefecture of birthplace
Data type: BAPIP0002-GBDEPOptional: No
Call by Reference: No ( called with pass by value option)
FIRSTNAME - First name
Data type: BAPIP0002-VORNAOptional: No
Call by Reference: No ( called with pass by value option)
COUNTRYOFBIRTH - Country of birthplace
Data type: BAPIP0002-GBLNDOptional: No
Call by Reference: No ( called with pass by value option)
MARITALSTATUS - Marital status
Data type: BAPIP0002-FAMSTOptional: No
Call by Reference: No ( called with pass by value option)
MARITALSTATUSSINCE - Valid from date of current marital status
Data type: BAPIP0002-FAMDTOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language
Data type: BAPIP0002-SPRSLOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGEISO - Language according to ISO 639
Data type: BAPIP0002-SPRSL_ISOOptional: No
Call by Reference: No ( called with pass by value option)
NATIONALITY - Nationality
Data type: BAPIP0002-NATIOOptional: No
Call by Reference: No ( called with pass by value option)
NAMEOFGENDER - Name of gender
Data type: BAPIP0002-NAMEOFGESCHOptional: No
Call by Reference: No ( called with pass by value option)
NAMEOFSTATEOFBIRTH - Name of prefecture of birthplace
Data type: BAPIP0002-NAMEOFGBDEPOptional: No
Call by Reference: No ( called with pass by value option)
NAMEOFCOUNTRYOFBIRTH - Name of country of birthplace
Data type: BAPIP0002-NAMEOFGBLNDOptional: No
Call by Reference: No ( called with pass by value option)
NAMEOFMARITALSTATUS - Name of marital status
Data type: BAPIP0002-NAMEOFFAMSTOptional: No
Call by Reference: No ( called with pass by value option)
LASTNAME - Last name
Data type: BAPIP0002-NACHNOptional: No
Call by Reference: No ( called with pass by value option)
NAMEOFLANGUAGE - Name of language
Data type: BAPIP0002-NAMEOFSPRSLOptional: No
Call by Reference: No ( called with pass by value option)
NAMEOFNATIONALITY - Name of nationality
Data type: BAPIP0002-NAMEOFNATIOOptional: No
Call by Reference: No ( called with pass by value option)
NAMEFORMAT - Name format
Data type: BAPIP0002-KNZNMOptional: No
Call by Reference: No ( called with pass by value option)
NAMEOFNAMEFORMAT - Name of name format
Data type: BAPIP0002JP-NAMEOFNAMEFORMOptional: No
Call by Reference: No ( called with pass by value option)
FORMATTEDNAME - Formatted name
Data type: BAPIP0002JP-FORMATTEDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
FIRSTNAMEKATAKANA - First name (Katakana)
Data type: BAPIP0002-FNAMKOptional: No
Call by Reference: No ( called with pass by value option)
LASTNAMEKATAKANA - Last name (Katakana)
Data type: BAPIP0002-LNAMKOptional: No
Call by Reference: No ( called with pass by value option)
FIRSTNAMEROMAJI - First name (Romaji)
Data type: BAPIP0002-FNAMROptional: No
Call by Reference: No ( called with pass by value option)
LASTNAMEROMAJI - Last name (Romaji)
Data type: BAPIP0002-LNAMROptional: No
Call by Reference: No ( called with pass by value option)
NAMEATBIRTH - Name at birth
Data type: BAPIP0002-NAME2Optional: No
Call by Reference: No ( called with pass by value option)
NAMEATBIRTHKATAKANA - Name at birth (Katakana)
Data type: BAPIP0002-NABIKOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_PERSDATAJP_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 BAPIP0002-PERNR, " | |||
| 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_birthplace | TYPE BAPIP0002-GBORT, " | |||
| lv_stateofbirth | TYPE BAPIP0002-GBDEP, " | |||
| lv_subtype | TYPE BAPIP0002-SUBTY, " | |||
| lv_firstname | TYPE BAPIP0002-VORNA, " | |||
| 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_nameofgender | TYPE BAPIP0002-NAMEOFGESCH, " | |||
| lv_nameofstateofbirth | TYPE BAPIP0002-NAMEOFGBDEP, " | |||
| lv_nameofcountryofbirth | TYPE BAPIP0002-NAMEOFGBLND, " | |||
| lv_nameofmaritalstatus | TYPE BAPIP0002-NAMEOFFAMST, " | |||
| lv_lastname | TYPE BAPIP0002-NACHN, " | |||
| lv_objectid | TYPE BAPIP0002-OBJPS, " | |||
| lv_nameoflanguage | TYPE BAPIP0002-NAMEOFSPRSL, " | |||
| lv_nameofnationality | TYPE BAPIP0002-NAMEOFNATIO, " | |||
| lv_nameformat | TYPE BAPIP0002-KNZNM, " | |||
| lv_nameofnameformat | TYPE BAPIP0002JP-NAMEOFNAMEFORM, " | |||
| lv_formattedname | TYPE BAPIP0002JP-FORMATTEDNAME, " | |||
| lv_lockindicator | TYPE BAPIP0002-SPRPS, " | |||
| lv_firstnamekatakana | TYPE BAPIP0002-FNAMK, " | |||
| lv_validitybegin | TYPE BAPIP0002-BEGDA, " | |||
| lv_lastnamekatakana | TYPE BAPIP0002-LNAMK, " | |||
| lv_validityend | TYPE BAPIP0002-ENDDA, " | |||
| lv_firstnameromaji | TYPE BAPIP0002-FNAMR, " | |||
| lv_recordnumber | TYPE BAPIP0002-SEQNR, " | |||
| lv_lastnameromaji | TYPE BAPIP0002-LNAMR, " | |||
| lv_nameatbirth | TYPE BAPIP0002-NAME2, " | |||
| lv_nameatbirthkatakana | TYPE BAPIP0002-NABIK. " |
|   CALL FUNCTION 'BAPI_PERSDATAJP_GETDETAIL' "Personal data Japan: Read record |
| 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 | |
| NAMEATBIRTHROMAJI | = lv_nameatbirthromaji | |
| KOSEKINAME | = lv_kosekiname | |
| KOSEKINAMEKATAKANA | = lv_kosekinamekatakana | |
| KOSEKINAMEROMAJI | = lv_kosekinameromaji | |
| ACADEMICGRADE | = lv_academicgrade | |
| SECONDACADGRADE | = lv_secondacadgrade | |
| GENDER | = lv_gender | |
| DATEOFBIRTH | = lv_dateofbirth | |
| BIRTHPLACE | = lv_birthplace | |
| STATEOFBIRTH | = lv_stateofbirth | |
| FIRSTNAME | = lv_firstname | |
| COUNTRYOFBIRTH | = lv_countryofbirth | |
| MARITALSTATUS | = lv_maritalstatus | |
| MARITALSTATUSSINCE | = lv_maritalstatussince | |
| LANGUAGE | = lv_language | |
| LANGUAGEISO | = lv_languageiso | |
| NATIONALITY | = lv_nationality | |
| NAMEOFGENDER | = lv_nameofgender | |
| NAMEOFSTATEOFBIRTH | = lv_nameofstateofbirth | |
| NAMEOFCOUNTRYOFBIRTH | = lv_nameofcountryofbirth | |
| NAMEOFMARITALSTATUS | = lv_nameofmaritalstatus | |
| LASTNAME | = lv_lastname | |
| NAMEOFLANGUAGE | = lv_nameoflanguage | |
| NAMEOFNATIONALITY | = lv_nameofnationality | |
| NAMEFORMAT | = lv_nameformat | |
| NAMEOFNAMEFORMAT | = lv_nameofnameformat | |
| FORMATTEDNAME | = lv_formattedname | |
| FIRSTNAMEKATAKANA | = lv_firstnamekatakana | |
| LASTNAMEKATAKANA | = lv_lastnamekatakana | |
| FIRSTNAMEROMAJI | = lv_firstnameromaji | |
| LASTNAMEROMAJI | = lv_lastnameromaji | |
| NAMEATBIRTH | = lv_nameatbirth | |
| NAMEATBIRTHKATAKANA | = lv_nameatbirthkatakana | |
| . " BAPI_PERSDATAJP_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PERSDATAJP_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 BAPIP0002 INTO @DATA(ld_employeenumber). | ||||
| "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 GBORT FROM BAPIP0002 INTO @DATA(ld_birthplace). | ||||
| "SELECT single GBDEP FROM BAPIP0002 INTO @DATA(ld_stateofbirth). | ||||
| "SELECT single SUBTY FROM BAPIP0002 INTO @DATA(ld_subtype). | ||||
| "SELECT single VORNA FROM BAPIP0002 INTO @DATA(ld_firstname). | ||||
| "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 NAMEOFGESCH FROM BAPIP0002 INTO @DATA(ld_nameofgender). | ||||
| "SELECT single NAMEOFGBDEP FROM BAPIP0002 INTO @DATA(ld_nameofstateofbirth). | ||||
| "SELECT single NAMEOFGBLND FROM BAPIP0002 INTO @DATA(ld_nameofcountryofbirth). | ||||
| "SELECT single NAMEOFFAMST FROM BAPIP0002 INTO @DATA(ld_nameofmaritalstatus). | ||||
| "SELECT single NACHN FROM BAPIP0002 INTO @DATA(ld_lastname). | ||||
| "SELECT single OBJPS FROM BAPIP0002 INTO @DATA(ld_objectid). | ||||
| "SELECT single NAMEOFSPRSL FROM BAPIP0002 INTO @DATA(ld_nameoflanguage). | ||||
| "SELECT single NAMEOFNATIO FROM BAPIP0002 INTO @DATA(ld_nameofnationality). | ||||
| "SELECT single KNZNM FROM BAPIP0002 INTO @DATA(ld_nameformat). | ||||
| "SELECT single NAMEOFNAMEFORM FROM BAPIP0002JP INTO @DATA(ld_nameofnameformat). | ||||
| "SELECT single FORMATTEDNAME FROM BAPIP0002JP INTO @DATA(ld_formattedname). | ||||
| "SELECT single SPRPS FROM BAPIP0002 INTO @DATA(ld_lockindicator). | ||||
| "SELECT single FNAMK FROM BAPIP0002 INTO @DATA(ld_firstnamekatakana). | ||||
| "SELECT single BEGDA FROM BAPIP0002 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single LNAMK FROM BAPIP0002 INTO @DATA(ld_lastnamekatakana). | ||||
| "SELECT single ENDDA FROM BAPIP0002 INTO @DATA(ld_validityend). | ||||
| "SELECT single FNAMR FROM BAPIP0002 INTO @DATA(ld_firstnameromaji). | ||||
| "SELECT single SEQNR FROM BAPIP0002 INTO @DATA(ld_recordnumber). | ||||
| "SELECT single LNAMR FROM BAPIP0002 INTO @DATA(ld_lastnameromaji). | ||||
| "SELECT single NAME2 FROM BAPIP0002 INTO @DATA(ld_nameatbirth). | ||||
| "SELECT single NABIK FROM BAPIP0002 INTO @DATA(ld_nameatbirthkatakana). | ||||
Search for further information about these or an SAP related objects