SAP BAPI_FAMILYJP_GETDETAIL Function Module for Family Japan: Read record









BAPI_FAMILYJP_GETDETAIL is a standard bapi familyjp 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 Family 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 familyjp getdetail FM, simply by entering the name BAPI_FAMILYJP_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: PFAM_JP
Program Name: SAPLPFAM_JP
Main Program:
Appliation area: P
Release date: 16-Dec-1998
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_FAMILYJP_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_FAMILYJP_GETDETAIL'"Family Japan: Read record
EXPORTING
EMPLOYEENUMBER = "Personnel number
SUBTYPE = "Subtype
OBJECTID = "Object identification
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
NATIONALITY = "Nationality
NAMEOFMEMBERTYPE = "Name of family member type
NAMEOFGENDER = "Name of gender
NAMEOFSTATEOFBIRTH = "Name of prefecture of birthplace
NAMEOFLANDOFBIRTH = "Name of country of birthplace
NAMEOFNATIONALITY = "Name of nationality
FIRSTNAME = "First name
LASTNAME = "Last name
FIRSTNAMEKATAKANA = "First name (Katakana)
LASTNAMEKATAKANA = "Last name (Katakana)
MEMBERTYPE = "Type of family record
CHILDTYPE = "Relationship with employee
REASON = "Reason for changing record
DEPENDENT = "Dependent in taxation
THEOLD = "Old family member in taxation
HANDICAP = "Handicapped family member in taxation
LIVEWITH = "Family member living with in taxation
INSURANCE = "Health insurance in taxation
ALLOWANCE = "Family allowance
YEA = "Year End Adjustment
DEATH = "Death in taxation
FIRSTNAMEROMAJI = "First name (Romaji)
NONRESIDENCE = "Non-residence in taxation
NAMEOFCHILDTYPE = "Name of relationship with employee
NAMEOFREASON = "Name of reason of changing record
NAMEOFDEPENDENT = "Name of dependent intaxation
NAMEOFTHEOLD = "Name of old family member in taxation
NAMEOFHANDICAP = "Name of handicapped family member in taxation
NAMEOFLIVEWITH = "Name of family member living with in taxation
NAMEOFINSURANCE = "Name of health insurance in taxation
NAMEOFALLOWANCE = "Name of family allowance
NAMEOFYEA = "Name of Year End Adjustment
LASTNAMEROMAJI = "Last name (Romaji)
NAMEFORMAT = "Name format
NAMEOFNAMEFORMAT = "Name of name format
GENDER = "Gender
DATEOFBIRTH = "Date of birth
PLACEOFBIRTH = "Birthplace
STATEOFBIRTH = "Prefecture of birthplace
LANDOFBIRTH = "Country of birthplace
.



IMPORTING Parameters details for BAPI_FAMILYJP_GETDETAIL

EMPLOYEENUMBER - Personnel number

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

SUBTYPE - Subtype

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

OBJECTID - Object identification

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

LOCKINDICATOR - Lock indicator for HR master record

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

VALIDITYBEGIN - Valid from date

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

VALIDITYEND - Valid to date

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

RECORDNUMBER - Number of infotype record

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

EXPORTING Parameters details for BAPI_FAMILYJP_GETDETAIL

RETURN - Structure for return code

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

NATIONALITY - Nationality

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

NAMEOFMEMBERTYPE - Name of family member type

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

NAMEOFGENDER - Name of gender

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

NAMEOFSTATEOFBIRTH - Name of prefecture of birthplace

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

NAMEOFLANDOFBIRTH - Name of country of birthplace

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

NAMEOFNATIONALITY - Name of nationality

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

FIRSTNAME - First name

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

LASTNAME - Last name

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

FIRSTNAMEKATAKANA - First name (Katakana)

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

LASTNAMEKATAKANA - Last name (Katakana)

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

MEMBERTYPE - Type of family record

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

CHILDTYPE - Relationship with employee

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

REASON - Reason for changing record

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

DEPENDENT - Dependent in taxation

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

THEOLD - Old family member in taxation

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

HANDICAP - Handicapped family member in taxation

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

LIVEWITH - Family member living with in taxation

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

INSURANCE - Health insurance in taxation

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

ALLOWANCE - Family allowance

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

YEA - Year End Adjustment

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

DEATH - Death in taxation

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

FIRSTNAMEROMAJI - First name (Romaji)

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

NONRESIDENCE - Non-residence in taxation

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

NAMEOFCHILDTYPE - Name of relationship with employee

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

NAMEOFREASON - Name of reason of changing record

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

NAMEOFDEPENDENT - Name of dependent intaxation

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

NAMEOFTHEOLD - Name of old family member in taxation

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

NAMEOFHANDICAP - Name of handicapped family member in taxation

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

NAMEOFLIVEWITH - Name of family member living with in taxation

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

NAMEOFINSURANCE - Name of health insurance in taxation

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

NAMEOFALLOWANCE - Name of family allowance

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

NAMEOFYEA - Name of Year End Adjustment

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

LASTNAMEROMAJI - Last name (Romaji)

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

NAMEFORMAT - Name format

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

NAMEOFNAMEFORMAT - Name of name format

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

GENDER - Gender

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

DATEOFBIRTH - Date of birth

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

PLACEOFBIRTH - Birthplace

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

STATEOFBIRTH - Prefecture of birthplace

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

LANDOFBIRTH - Country of birthplace

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

Copy and paste ABAP code example for BAPI_FAMILYJP_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 BAPIP0021-PERNR, "   
lv_nationality  TYPE BAPIP0021-FANAT, "   
lv_nameofmembertype  TYPE BAPIP0021-NAMEOFFAMSA, "   
lv_nameofgender  TYPE BAPIP0021-NAMEOFGESCH, "   
lv_nameofstateofbirth  TYPE BAPIP0021-NAMEOFGBDEP, "   
lv_nameoflandofbirth  TYPE BAPIP0021-NAMEOFGBLND, "   
lv_nameofnationality  TYPE BAPIP0021-NAMEOFNATIO, "   
lv_firstname  TYPE BAPIP0148-FIRSTNAME, "   
lv_lastname  TYPE BAPIP0148-LASTNAME, "   
lv_firstnamekatakana  TYPE BAPIP0148-FIRSTNAMEKANA, "   
lv_lastnamekatakana  TYPE BAPIP0148-LASTNAMEKANA, "   
lv_subtype  TYPE BAPIP0021-SUBTY, "   
lv_membertype  TYPE BAPIP0021-FAMSA, "   
lv_childtype  TYPE BAPIP0148-CHILDTYPE, "   
lv_reason  TYPE BAPIP0148-REASON, "   
lv_dependent  TYPE BAPIP0148-DEPENDENT, "   
lv_theold  TYPE BAPIP0148-THEOLD, "   
lv_handicap  TYPE BAPIP0148-HANDICAP, "   
lv_livewith  TYPE BAPIP0148-LIVEWITH, "   
lv_insurance  TYPE BAPIP0148-INSURANCE, "   
lv_allowance  TYPE BAPIP0148-ALLOWANCE, "   
lv_yea  TYPE BAPIP0148-YEA, "   
lv_death  TYPE BAPIP0148-DEATH, "   
lv_objectid  TYPE BAPIP0021-OBJPS, "   
lv_firstnameromaji  TYPE BAPIP0021-FAVOR, "   
lv_nonresidence  TYPE BAPIP0148-NONRESIDENCE, "   
lv_nameofchildtype  TYPE BAPIP0148-NAMEOFCHILDTYPE, "   
lv_nameofreason  TYPE BAPIP0148-NAMEOFREASON, "   
lv_nameofdependent  TYPE BAPIP0148-NAMEOFDEPENDENT, "   
lv_nameoftheold  TYPE BAPIP0148-NAMEOFTHEOLD, "   
lv_nameofhandicap  TYPE BAPIP0148-NAMEOFHANDICAP, "   
lv_nameoflivewith  TYPE BAPIP0148-NAMEOFLIVEWITH, "   
lv_nameofinsurance  TYPE BAPIP0148-NAMEOFINSURANCE, "   
lv_nameofallowance  TYPE BAPIP0148-NAMEOFALLOWANCE, "   
lv_nameofyea  TYPE BAPIP0148-NAMEOFYEA, "   
lv_lockindicator  TYPE BAPIP0021-SPRPS, "   
lv_lastnameromaji  TYPE BAPIP0021-FANAM, "   
lv_nameformat  TYPE BAPIP0148-NAMEFORMAT, "   
lv_nameofnameformat  TYPE BAPIP0148-NAMEOFNAMEFORM, "   
lv_gender  TYPE BAPIP0021-FASEX, "   
lv_validitybegin  TYPE BAPIP0021-BEGDA, "   
lv_dateofbirth  TYPE BAPIP0021-FGBDT, "   
lv_validityend  TYPE BAPIP0021-ENDDA, "   
lv_placeofbirth  TYPE BAPIP0021-FGBOT, "   
lv_recordnumber  TYPE BAPIP0021-SEQNR, "   
lv_stateofbirth  TYPE BAPIP0021-FGDEP, "   
lv_landofbirth  TYPE BAPIP0021-FGBLD. "   

  CALL FUNCTION 'BAPI_FAMILYJP_GETDETAIL'  "Family 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
         NATIONALITY = lv_nationality
         NAMEOFMEMBERTYPE = lv_nameofmembertype
         NAMEOFGENDER = lv_nameofgender
         NAMEOFSTATEOFBIRTH = lv_nameofstateofbirth
         NAMEOFLANDOFBIRTH = lv_nameoflandofbirth
         NAMEOFNATIONALITY = lv_nameofnationality
         FIRSTNAME = lv_firstname
         LASTNAME = lv_lastname
         FIRSTNAMEKATAKANA = lv_firstnamekatakana
         LASTNAMEKATAKANA = lv_lastnamekatakana
         MEMBERTYPE = lv_membertype
         CHILDTYPE = lv_childtype
         REASON = lv_reason
         DEPENDENT = lv_dependent
         THEOLD = lv_theold
         HANDICAP = lv_handicap
         LIVEWITH = lv_livewith
         INSURANCE = lv_insurance
         ALLOWANCE = lv_allowance
         YEA = lv_yea
         DEATH = lv_death
         FIRSTNAMEROMAJI = lv_firstnameromaji
         NONRESIDENCE = lv_nonresidence
         NAMEOFCHILDTYPE = lv_nameofchildtype
         NAMEOFREASON = lv_nameofreason
         NAMEOFDEPENDENT = lv_nameofdependent
         NAMEOFTHEOLD = lv_nameoftheold
         NAMEOFHANDICAP = lv_nameofhandicap
         NAMEOFLIVEWITH = lv_nameoflivewith
         NAMEOFINSURANCE = lv_nameofinsurance
         NAMEOFALLOWANCE = lv_nameofallowance
         NAMEOFYEA = lv_nameofyea
         LASTNAMEROMAJI = lv_lastnameromaji
         NAMEFORMAT = lv_nameformat
         NAMEOFNAMEFORMAT = lv_nameofnameformat
         GENDER = lv_gender
         DATEOFBIRTH = lv_dateofbirth
         PLACEOFBIRTH = lv_placeofbirth
         STATEOFBIRTH = lv_stateofbirth
         LANDOFBIRTH = lv_landofbirth
. " BAPI_FAMILYJP_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_FAMILYJP_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 BAPIP0021 INTO @DATA(ld_employeenumber).
 
"SELECT single FANAT FROM BAPIP0021 INTO @DATA(ld_nationality).
 
"SELECT single NAMEOFFAMSA FROM BAPIP0021 INTO @DATA(ld_nameofmembertype).
 
"SELECT single NAMEOFGESCH FROM BAPIP0021 INTO @DATA(ld_nameofgender).
 
"SELECT single NAMEOFGBDEP FROM BAPIP0021 INTO @DATA(ld_nameofstateofbirth).
 
"SELECT single NAMEOFGBLND FROM BAPIP0021 INTO @DATA(ld_nameoflandofbirth).
 
"SELECT single NAMEOFNATIO FROM BAPIP0021 INTO @DATA(ld_nameofnationality).
 
"SELECT single FIRSTNAME FROM BAPIP0148 INTO @DATA(ld_firstname).
 
"SELECT single LASTNAME FROM BAPIP0148 INTO @DATA(ld_lastname).
 
"SELECT single FIRSTNAMEKANA FROM BAPIP0148 INTO @DATA(ld_firstnamekatakana).
 
"SELECT single LASTNAMEKANA FROM BAPIP0148 INTO @DATA(ld_lastnamekatakana).
 
"SELECT single SUBTY FROM BAPIP0021 INTO @DATA(ld_subtype).
 
"SELECT single FAMSA FROM BAPIP0021 INTO @DATA(ld_membertype).
 
"SELECT single CHILDTYPE FROM BAPIP0148 INTO @DATA(ld_childtype).
 
"SELECT single REASON FROM BAPIP0148 INTO @DATA(ld_reason).
 
"SELECT single DEPENDENT FROM BAPIP0148 INTO @DATA(ld_dependent).
 
"SELECT single THEOLD FROM BAPIP0148 INTO @DATA(ld_theold).
 
"SELECT single HANDICAP FROM BAPIP0148 INTO @DATA(ld_handicap).
 
"SELECT single LIVEWITH FROM BAPIP0148 INTO @DATA(ld_livewith).
 
"SELECT single INSURANCE FROM BAPIP0148 INTO @DATA(ld_insurance).
 
"SELECT single ALLOWANCE FROM BAPIP0148 INTO @DATA(ld_allowance).
 
"SELECT single YEA FROM BAPIP0148 INTO @DATA(ld_yea).
 
"SELECT single DEATH FROM BAPIP0148 INTO @DATA(ld_death).
 
"SELECT single OBJPS FROM BAPIP0021 INTO @DATA(ld_objectid).
 
"SELECT single FAVOR FROM BAPIP0021 INTO @DATA(ld_firstnameromaji).
 
"SELECT single NONRESIDENCE FROM BAPIP0148 INTO @DATA(ld_nonresidence).
 
"SELECT single NAMEOFCHILDTYPE FROM BAPIP0148 INTO @DATA(ld_nameofchildtype).
 
"SELECT single NAMEOFREASON FROM BAPIP0148 INTO @DATA(ld_nameofreason).
 
"SELECT single NAMEOFDEPENDENT FROM BAPIP0148 INTO @DATA(ld_nameofdependent).
 
"SELECT single NAMEOFTHEOLD FROM BAPIP0148 INTO @DATA(ld_nameoftheold).
 
"SELECT single NAMEOFHANDICAP FROM BAPIP0148 INTO @DATA(ld_nameofhandicap).
 
"SELECT single NAMEOFLIVEWITH FROM BAPIP0148 INTO @DATA(ld_nameoflivewith).
 
"SELECT single NAMEOFINSURANCE FROM BAPIP0148 INTO @DATA(ld_nameofinsurance).
 
"SELECT single NAMEOFALLOWANCE FROM BAPIP0148 INTO @DATA(ld_nameofallowance).
 
"SELECT single NAMEOFYEA FROM BAPIP0148 INTO @DATA(ld_nameofyea).
 
"SELECT single SPRPS FROM BAPIP0021 INTO @DATA(ld_lockindicator).
 
"SELECT single FANAM FROM BAPIP0021 INTO @DATA(ld_lastnameromaji).
 
"SELECT single NAMEFORMAT FROM BAPIP0148 INTO @DATA(ld_nameformat).
 
"SELECT single NAMEOFNAMEFORM FROM BAPIP0148 INTO @DATA(ld_nameofnameformat).
 
"SELECT single FASEX FROM BAPIP0021 INTO @DATA(ld_gender).
 
"SELECT single BEGDA FROM BAPIP0021 INTO @DATA(ld_validitybegin).
 
"SELECT single FGBDT FROM BAPIP0021 INTO @DATA(ld_dateofbirth).
 
"SELECT single ENDDA FROM BAPIP0021 INTO @DATA(ld_validityend).
 
"SELECT single FGBOT FROM BAPIP0021 INTO @DATA(ld_placeofbirth).
 
"SELECT single SEQNR FROM BAPIP0021 INTO @DATA(ld_recordnumber).
 
"SELECT single FGDEP FROM BAPIP0021 INTO @DATA(ld_stateofbirth).
 
"SELECT single FGBLD FROM BAPIP0021 INTO @DATA(ld_landofbirth).
 


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!