BAPI_FAMILYID_REQUEST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_FAMILYID_REQUEST into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PFAM_ID
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_FAMILYID_REQUEST' "Family ID: Create locked record
EXPORTING
employeenumber = " bapip0021-pernr Personnel number
validitybegin = " bapip0021-begda Valid from date
validityend = " bapip0021-endda Valid to date
* membertype = " bapip0021-famsa Type of family record
* completename = " bapip0021-fcnam Complete name
* titel = " bapip0021-titel Title
* addltitle = " bapip0021-fnmzu Other Title
* nameformat = " bapip0021-fknzn Name format indicator for employee in a list
* gender = " bapip0021-fasex Gender key
* birthplace = " bapip0021-fgbot Birthplace
* dateofbirth = " bapip0021-fgbdt Date of birth
* nationality = " bapip0021-fanat Nationality
* countryofbirth = " bapip0021-fgbld Country of birth
* marriagecert = " bapip0021id-marriagecert Marriage certificate
* jobtitle = " bapip0021id-jobtitle Job title
* employername = " bapip0021id-employername Employer of family member (Indonesia)
* taxdependent = " bapip0021id-taxdependent Dependent for Tax purposes (Yes/No) (Indonesia)
* idnumber = " bapip0021id-idnumber Identity Card Number
* idtype = " bapip0021id-idtype Type of Identity Card (Indonesia)
* idissuedate = " bapip0021id-idissuedate Date of Issue of Identity Card (Indonesia)
* idissueplace = " bapip0021id-idissueplace Place of Issue of Identity Card
* idexpirydate = " bapip0021id-idexpirydate Expiry Date of Identity Card (Indonesia)
* phonenumber = " bapip0021id-phonenumber Telephone number
* street = " bapip0021id-street House number and street
* 2ndstreet = " bapip0021id-2ndstreet 2nd address line
* city = " bapip0021id-city City
* postalcode = " bapip0021id-postalcode Postal code
* district = " bapip0021id-district District
* addrcountrykey = " bapip0021id-addrcountrykey Country key
* passportnumber = " bapip0021id-passportnumber Passport Number
* passporttype = " bapip0021id-passporttype Passport Type
* passissuedate = " bapip0021id-passissuedate Date of issue of Passport (Indonesia)
* passexpirydate = " bapip0021id-passexpirydate Date of expiry of Passport (Indonesia)
* passissueplace = " bapip0021id-passissueplace Place of Issue of Passport
* passcountrykey = " bapip0021id-passcountrykey Country key
* nocommit = " bapi_stand-no_commit COMMIT control at BAPI interface
IMPORTING
return = " bapireturn1 Return messages
employeenumber = " bapip0021-pernr Personnel number
subtype = " bapip0021-subty Subtype
objectid = " bapip0021-objps Object identification
lockindicator = " bapip0021-sprps Lock indicator for HR master record
validitybegin = " bapip0021-begda Valid from date
validityend = " bapip0021-endda Valid to date
recordnumber = " bapip0021-seqnr Number of infotype record
. " BAPI_FAMILYID_REQUEST
The ABAP code below is a full code listing to execute function module BAPI_FAMILYID_REQUEST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_return | TYPE BAPIRETURN1 , |
| ld_employeenumber | TYPE BAPIP0021-PERNR , |
| ld_subtype | TYPE BAPIP0021-SUBTY , |
| ld_objectid | TYPE BAPIP0021-OBJPS , |
| ld_lockindicator | TYPE BAPIP0021-SPRPS , |
| ld_validitybegin | TYPE BAPIP0021-BEGDA , |
| ld_validityend | TYPE BAPIP0021-ENDDA , |
| ld_recordnumber | TYPE BAPIP0021-SEQNR . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_return | TYPE BAPIRETURN1 , |
| ld_employeenumber | TYPE BAPIP0021-PERNR , |
| ld_employeenumber | TYPE BAPIP0021-PERNR , |
| ld_validitybegin | TYPE BAPIP0021-BEGDA , |
| ld_subtype | TYPE BAPIP0021-SUBTY , |
| ld_validityend | TYPE BAPIP0021-ENDDA , |
| ld_objectid | TYPE BAPIP0021-OBJPS , |
| ld_membertype | TYPE BAPIP0021-FAMSA , |
| ld_lockindicator | TYPE BAPIP0021-SPRPS , |
| ld_completename | TYPE BAPIP0021-FCNAM , |
| ld_validitybegin | TYPE BAPIP0021-BEGDA , |
| ld_titel | TYPE BAPIP0021-TITEL , |
| ld_validityend | TYPE BAPIP0021-ENDDA , |
| ld_addltitle | TYPE BAPIP0021-FNMZU , |
| ld_recordnumber | TYPE BAPIP0021-SEQNR , |
| ld_nameformat | TYPE BAPIP0021-FKNZN , |
| ld_gender | TYPE BAPIP0021-FASEX , |
| ld_birthplace | TYPE BAPIP0021-FGBOT , |
| ld_dateofbirth | TYPE BAPIP0021-FGBDT , |
| ld_nationality | TYPE BAPIP0021-FANAT , |
| ld_countryofbirth | TYPE BAPIP0021-FGBLD , |
| ld_marriagecert | TYPE BAPIP0021ID-MARRIAGECERT , |
| ld_jobtitle | TYPE BAPIP0021ID-JOBTITLE , |
| ld_employername | TYPE BAPIP0021ID-EMPLOYERNAME , |
| ld_taxdependent | TYPE BAPIP0021ID-TAXDEPENDENT , |
| ld_idnumber | TYPE BAPIP0021ID-IDNUMBER , |
| ld_idtype | TYPE BAPIP0021ID-IDTYPE , |
| ld_idissuedate | TYPE BAPIP0021ID-IDISSUEDATE , |
| ld_idissueplace | TYPE BAPIP0021ID-IDISSUEPLACE , |
| ld_idexpirydate | TYPE BAPIP0021ID-IDEXPIRYDATE , |
| ld_phonenumber | TYPE BAPIP0021ID-PHONENUMBER , |
| ld_street | TYPE BAPIP0021ID-STREET , |
| ld_2ndstreet | TYPE BAPIP0021ID-2NDSTREET , |
| ld_city | TYPE BAPIP0021ID-CITY , |
| ld_postalcode | TYPE BAPIP0021ID-POSTALCODE , |
| ld_district | TYPE BAPIP0021ID-DISTRICT , |
| ld_addrcountrykey | TYPE BAPIP0021ID-ADDRCOUNTRYKEY , |
| ld_passportnumber | TYPE BAPIP0021ID-PASSPORTNUMBER , |
| ld_passporttype | TYPE BAPIP0021ID-PASSPORTTYPE , |
| ld_passissuedate | TYPE BAPIP0021ID-PASSISSUEDATE , |
| ld_passexpirydate | TYPE BAPIP0021ID-PASSEXPIRYDATE , |
| ld_passissueplace | TYPE BAPIP0021ID-PASSISSUEPLACE , |
| ld_passcountrykey | TYPE BAPIP0021ID-PASSCOUNTRYKEY , |
| ld_nocommit | TYPE BAPI_STAND-NO_COMMIT . |
You can use this method to create locked family/related-person records
for ID employees (infotypes 0021/0318).
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_FAMILYID_REQUEST or its description.
BAPI_FAMILYID_REQUEST - Family ID: Create locked record BAPI_FAMILYID_GETDETAILEDLIST - Family ID: Read instances with data BAPI_FAMILYID_GETDETAIL1 - Family ID: Read Record BAPI_FAMILYID_GETDETAIL - Family ID: Read Record BAPI_FAMILYID_CREATESUCCESSOR1 - Family ID: Create subsequent family record BAPI_FAMILYID_CREATESUCCESSOR - Family ID: Create subsequent family record