SAP BAPI_FAMILYJP_REQUEST Function Module for Family Japan: Create locked record









BAPI_FAMILYJP_REQUEST is a standard bapi familyjp request 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: Create locked 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 request FM, simply by entering the name BAPI_FAMILYJP_REQUEST 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_REQUEST 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_REQUEST'"Family Japan: Create locked record
EXPORTING
EMPLOYEENUMBER = "Personnel number
* STATEOFBIRTH = "State
* LANDOFBIRTH = "Country of birth
* NATIONALITY = "Nationality
* FIRSTNAME = "First name
* LASTNAME = "Last name
* FIRSTNAMEKATAKANA = "First name (Katakana)
* LASTNAMEKATAKANA = "Last name (Katakana)
* CHILDTYPE = "Child type
* REASON = "Reason for changing record
* DEPENDENT = "Dependent in taxation
VALIDITYBEGIN = "Valid from date
* 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
* NONRESIDENCE = "Non-residence in taxation
* NAMEFORMAT = "Name format
* NOCOMMIT = "COMMIT control at BAPI interface
VALIDITYEND = "Valid to date
MEMBERTYPE = "Type of family record
* FIRSTNAMEROMAJI = "First name (Romaji)
* LASTNAMEROMAJI = "Last name (Romaji)
* GENDER = "Gender
* DATEOFBIRTH = "Date of birth
* PLACEOFBIRTH = "Birthplace

IMPORTING
RETURN = "Structure for return code
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 Parameters details for BAPI_FAMILYJP_REQUEST

EMPLOYEENUMBER - Personnel number

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

STATEOFBIRTH - State

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

LANDOFBIRTH - Country of birth

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

NATIONALITY - Nationality

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

FIRSTNAME - First name

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

LASTNAME - Last name

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

FIRSTNAMEKATAKANA - First name (Katakana)

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

LASTNAMEKATAKANA - Last name (Katakana)

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

CHILDTYPE - Child type

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

REASON - Reason for changing record

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

DEPENDENT - Dependent in taxation

Data type: BAPIP0148-DEPENDENT
Optional: Yes
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)

THEOLD - Old family member in taxation

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

HANDICAP - Handicapped family member in taxation

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

LIVEWITH - Family member living with in taxation

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

INSURANCE - Health insurance in taxation

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

ALLOWANCE - Family allowance

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

YEA - Year End Adjustment

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

DEATH - Death in taxation

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

NONRESIDENCE - Non-residence in taxation

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

NAMEFORMAT - Name format

Data type: BAPIP0148-NAMEFORMAT
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: BAPIP0021-ENDDA
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)

FIRSTNAMEROMAJI - First name (Romaji)

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

LASTNAMEROMAJI - Last name (Romaji)

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

GENDER - Gender

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

DATEOFBIRTH - Date of birth

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

PLACEOFBIRTH - Birthplace

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

EXPORTING Parameters details for BAPI_FAMILYJP_REQUEST

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: 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)

Copy and paste ABAP code example for BAPI_FAMILYJP_REQUEST 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_stateofbirth  TYPE BAPIP0021-FGDEP, "   
lv_landofbirth  TYPE BAPIP0021-FGBLD, "   
lv_nationality  TYPE BAPIP0021-FANAT, "   
lv_firstname  TYPE BAPIP0148-FIRSTNAME, "   
lv_lastname  TYPE BAPIP0148-LASTNAME, "   
lv_firstnamekatakana  TYPE BAPIP0148-FIRSTNAMEKANA, "   
lv_lastnamekatakana  TYPE BAPIP0148-LASTNAMEKANA, "   
lv_childtype  TYPE BAPIP0148-CHILDTYPE, "   
lv_reason  TYPE BAPIP0148-REASON, "   
lv_dependent  TYPE BAPIP0148-DEPENDENT, "   
lv_validitybegin  TYPE BAPIP0021-BEGDA, "   
lv_employeenumber  TYPE BAPIP0021-PERNR, "   
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_nonresidence  TYPE BAPIP0148-NONRESIDENCE, "   
lv_nameformat  TYPE BAPIP0148-NAMEFORMAT, "   
lv_nocommit  TYPE BAPI_STAND-NO_COMMIT, "   
lv_subtype  TYPE BAPIP0021-SUBTY, "   
lv_validityend  TYPE BAPIP0021-ENDDA, "   
lv_objectid  TYPE BAPIP0021-OBJPS, "   
lv_membertype  TYPE BAPIP0021-FAMSA, "   
lv_lockindicator  TYPE BAPIP0021-SPRPS, "   
lv_firstnameromaji  TYPE BAPIP0021-FAVOR, "   
lv_validitybegin  TYPE BAPIP0021-BEGDA, "   
lv_lastnameromaji  TYPE BAPIP0021-FANAM, "   
lv_gender  TYPE BAPIP0021-FASEX, "   
lv_validityend  TYPE BAPIP0021-ENDDA, "   
lv_dateofbirth  TYPE BAPIP0021-FGBDT, "   
lv_recordnumber  TYPE BAPIP0021-SEQNR, "   
lv_placeofbirth  TYPE BAPIP0021-FGBOT. "   

  CALL FUNCTION 'BAPI_FAMILYJP_REQUEST'  "Family Japan: Create locked record
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         STATEOFBIRTH = lv_stateofbirth
         LANDOFBIRTH = lv_landofbirth
         NATIONALITY = lv_nationality
         FIRSTNAME = lv_firstname
         LASTNAME = lv_lastname
         FIRSTNAMEKATAKANA = lv_firstnamekatakana
         LASTNAMEKATAKANA = lv_lastnamekatakana
         CHILDTYPE = lv_childtype
         REASON = lv_reason
         DEPENDENT = lv_dependent
         VALIDITYBEGIN = lv_validitybegin
         THEOLD = lv_theold
         HANDICAP = lv_handicap
         LIVEWITH = lv_livewith
         INSURANCE = lv_insurance
         ALLOWANCE = lv_allowance
         YEA = lv_yea
         DEATH = lv_death
         NONRESIDENCE = lv_nonresidence
         NAMEFORMAT = lv_nameformat
         NOCOMMIT = lv_nocommit
         VALIDITYEND = lv_validityend
         MEMBERTYPE = lv_membertype
         FIRSTNAMEROMAJI = lv_firstnameromaji
         LASTNAMEROMAJI = lv_lastnameromaji
         GENDER = lv_gender
         DATEOFBIRTH = lv_dateofbirth
         PLACEOFBIRTH = lv_placeofbirth
    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_FAMILYJP_REQUEST




ABAP code using 7.40 inline data declarations to call FM BAPI_FAMILYJP_REQUEST

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 FGDEP FROM BAPIP0021 INTO @DATA(ld_stateofbirth).
 
"SELECT single FGBLD FROM BAPIP0021 INTO @DATA(ld_landofbirth).
 
"SELECT single FANAT FROM BAPIP0021 INTO @DATA(ld_nationality).
 
"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 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 BEGDA FROM BAPIP0021 INTO @DATA(ld_validitybegin).
 
"SELECT single PERNR FROM BAPIP0021 INTO @DATA(ld_employeenumber).
 
"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 NONRESIDENCE FROM BAPIP0148 INTO @DATA(ld_nonresidence).
 
"SELECT single NAMEFORMAT FROM BAPIP0148 INTO @DATA(ld_nameformat).
 
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit).
 
"SELECT single SUBTY FROM BAPIP0021 INTO @DATA(ld_subtype).
 
"SELECT single ENDDA FROM BAPIP0021 INTO @DATA(ld_validityend).
 
"SELECT single OBJPS FROM BAPIP0021 INTO @DATA(ld_objectid).
 
"SELECT single FAMSA FROM BAPIP0021 INTO @DATA(ld_membertype).
 
"SELECT single SPRPS FROM BAPIP0021 INTO @DATA(ld_lockindicator).
 
"SELECT single FAVOR FROM BAPIP0021 INTO @DATA(ld_firstnameromaji).
 
"SELECT single BEGDA FROM BAPIP0021 INTO @DATA(ld_validitybegin).
 
"SELECT single FANAM FROM BAPIP0021 INTO @DATA(ld_lastnameromaji).
 
"SELECT single FASEX FROM BAPIP0021 INTO @DATA(ld_gender).
 
"SELECT single ENDDA FROM BAPIP0021 INTO @DATA(ld_validityend).
 
"SELECT single FGBDT FROM BAPIP0021 INTO @DATA(ld_dateofbirth).
 
"SELECT single SEQNR FROM BAPIP0021 INTO @DATA(ld_recordnumber).
 
"SELECT single FGBOT FROM BAPIP0021 INTO @DATA(ld_placeofbirth).
 


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!