SAP BAPI_FAMILYHK_CREATE Function Module for Family Hong Kong: Create record
BAPI_FAMILYHK_CREATE is a standard bapi familyhk create 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 Hong Kong: 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 familyhk create FM, simply by entering the name BAPI_FAMILYHK_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: PFAM_HK
Program Name: SAPLPFAM_HK
Main Program:
Appliation area: P
Release date: 11-Feb-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_FAMILYHK_CREATE 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_FAMILYHK_CREATE'"Family Hong Kong: Create record.
EXPORTING
EMPLOYEENUMBER = "Personnel number
* NATIONALITY = "First nationality
* NATIONALITY2 = "Second nationality
* NATIONALITY3 = "Third nationality
* DATEOFBIRTH = "Date of birth
* PLACEOFBIRTH = "Place of birth
* STATEOFBIRTH = "State
* COUNTRYOFBIRTH = "Country
* MARITALSTATUS = "Marital status
* SEPARATIONDATE = "Separate date
* EDUCATION = "Education
VALIDITYBEGIN = "Valid from date
* INSTITUTE = "Institute
* AMOUNT = "Amount
* OCCUPATIONCODE = "Occupation code
* OCCUPATIONSTAT = "Employment percentage
* NAMEOFEMPLOYER = "Employer name
* ID1TYPE = "Identification type 1
* ID1NUMBER = "Identification number 1
* ID1ISSUEBY = "Issue by place 1
* ID1ISSUEDATE = "Issue date 1
* ID1EXPIRYDATE = "Expiry date 1
VALIDITYEND = "Valid to date
* COUNTRYOFID1 = "Which country ID1
* COUNTRYISSUEI1 = "Issue by country 1
* ID2TYPE = "Identification type 2
* ID2NUMBER = "Identification number 2
* ID2ISSUEBY = "Issue by where 2
* ID2ISSUEDATE = "Issue date 2
* ID2EXPIRYDATE = "Expiry date 2
* COUNTRYOFID2 = "Which country ID2
* COUNTRYISSUEI2 = "Issue by which country 2
* OTHERNAME1TYPE = "Other name type 1
MEMBERTYPE = "Type of family record
* OTHERFSTNAME1 = "Other First name 1
* OTHERLASTNAME1 = "Other last name 1
* OTHERNAME2TYPE = "Other name type 2
* OTHERFSTNAME2 = "Other First name 2
* OTHERLASTNAME2 = "Other last name 2
* CONAME = "CO name
* ADDRESSLINE1 = "Addrese line 1
* ADDRESSLINE2 = "Addrese line 2
* ADDRESSLINE3 = "Addrese line 3
* DISTRICTCODE = "District code
* FIRSTNAME = "First name
* AREACODE = "Area code
* COUNTRYCODE = "Country code
* CONTACT1TYPE = "Communication type 1
* CONTACT1NUMBER = "Communication number 1
* CONTACT2TYPE = "Communication type 2
* CONTACT2NUMBER = "Communication number 2
* CONTACT3TYPE = "Communication type 3
* CONTACT3NUMBER = "Communication number 3
* CONTACT4TYPE = "Communication type 4
* CONTACT4NUMBER = "Communication number 4
* LASTNAME = "Last name
* CONTACT5TYPE = "Communication type 5
* CONTACT5NUMBER = "Communication number 5
* CONTACT6TYPE = "Communication type 6
* CONTACT6NUMBER = "Communication number 6
* REFEREMPLOYEENUMBER = "Reference personnel number of family member
* EMPLOYERADDRESS = "Employer of family member
* NOCOMMIT = "COMMIT control at BAPI interface
* BIRTHNAME = "Birth name
* INITIALS = "Initials
* GENDER = "Gender
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_FAMILYHK_CREATE
EMPLOYEENUMBER - Personnel number
Data type: BAPIP0021HK-EMPLOYEENOOptional: No
Call by Reference: No ( called with pass by value option)
NATIONALITY - First nationality
Data type: BAPIP0021HK-NATIONALITYOptional: Yes
Call by Reference: No ( called with pass by value option)
NATIONALITY2 - Second nationality
Data type: BAPIP0021HK-NATIONALITY2Optional: Yes
Call by Reference: No ( called with pass by value option)
NATIONALITY3 - Third nationality
Data type: BAPIP0021HK-NATIONALITY3Optional: Yes
Call by Reference: No ( called with pass by value option)
DATEOFBIRTH - Date of birth
Data type: BAPIP0021HK-DATEOFBIRTHOptional: Yes
Call by Reference: No ( called with pass by value option)
PLACEOFBIRTH - Place of birth
Data type: BAPIP0021HK-PLACEOFBIRTHOptional: Yes
Call by Reference: No ( called with pass by value option)
STATEOFBIRTH - State
Data type: BAPIP0021HK-STATEOFBIRTHOptional: Yes
Call by Reference: No ( called with pass by value option)
COUNTRYOFBIRTH - Country
Data type: BAPIP0021HK-COUNTRYOFBIRTHOptional: Yes
Call by Reference: No ( called with pass by value option)
MARITALSTATUS - Marital status
Data type: BAPIP0021HK-MARITALSTATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
SEPARATIONDATE - Separate date
Data type: BAPIP0021HK-SEPARATIONDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
EDUCATION - Education
Data type: BAPIP0021HK-EDUCATIONOptional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Valid from date
Data type: BAPIP0021HK-VALIDBEGINOptional: No
Call by Reference: No ( called with pass by value option)
INSTITUTE - Institute
Data type: BAPIP0021HK-INSTITUTEOptional: Yes
Call by Reference: No ( called with pass by value option)
AMOUNT - Amount
Data type: BAPIP0021HK-AMOUNTOptional: Yes
Call by Reference: No ( called with pass by value option)
OCCUPATIONCODE - Occupation code
Data type: BAPIP0021HK-OCCUPATIONCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
OCCUPATIONSTAT - Employment percentage
Data type: BAPIP0021HK-OCCUPATIONSTATOptional: Yes
Call by Reference: No ( called with pass by value option)
NAMEOFEMPLOYER - Employer name
Data type: BAPIP0021HK-NAMEOFEMPLOYEROptional: Yes
Call by Reference: No ( called with pass by value option)
ID1TYPE - Identification type 1
Data type: BAPIP0021HK-ID1TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
ID1NUMBER - Identification number 1
Data type: BAPIP0021HK-ID1NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
ID1ISSUEBY - Issue by place 1
Data type: BAPIP0021HK-ID1ISSUEBYOptional: Yes
Call by Reference: No ( called with pass by value option)
ID1ISSUEDATE - Issue date 1
Data type: BAPIP0021HK-ID1ISSUEDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
ID1EXPIRYDATE - Expiry date 1
Data type: BAPIP0021HK-ID1EXPIRYDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYEND - Valid to date
Data type: BAPIP0021HK-VALIDENDOptional: No
Call by Reference: No ( called with pass by value option)
COUNTRYOFID1 - Which country ID1
Data type: BAPIP0021HK-COUNTRYOFID1Optional: Yes
Call by Reference: No ( called with pass by value option)
COUNTRYISSUEI1 - Issue by country 1
Data type: BAPIP0021HK-COUNTRYISSUEI1Optional: Yes
Call by Reference: No ( called with pass by value option)
ID2TYPE - Identification type 2
Data type: BAPIP0021HK-ID2TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
ID2NUMBER - Identification number 2
Data type: BAPIP0021HK-ID2NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
ID2ISSUEBY - Issue by where 2
Data type: BAPIP0021HK-ID2ISSUEBYOptional: Yes
Call by Reference: No ( called with pass by value option)
ID2ISSUEDATE - Issue date 2
Data type: BAPIP0021HK-ID2ISSUEDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
ID2EXPIRYDATE - Expiry date 2
Data type: BAPIP0021HK-ID2EXPIRYDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
COUNTRYOFID2 - Which country ID2
Data type: BAPIP0021HK-COUNTRYOFID2Optional: Yes
Call by Reference: No ( called with pass by value option)
COUNTRYISSUEI2 - Issue by which country 2
Data type: BAPIP0021HK-COUNTRYISSUEI2Optional: Yes
Call by Reference: No ( called with pass by value option)
OTHERNAME1TYPE - Other name type 1
Data type: BAPIP0021HK-OTHERNAME1TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
MEMBERTYPE - Type of family record
Data type: BAPIP0021HK-MEMBERTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OTHERFSTNAME1 - Other First name 1
Data type: BAPIP0021HK-OTHERFSTNAME1Optional: Yes
Call by Reference: No ( called with pass by value option)
OTHERLASTNAME1 - Other last name 1
Data type: BAPIP0021HK-OTHERLASTNAME1Optional: Yes
Call by Reference: No ( called with pass by value option)
OTHERNAME2TYPE - Other name type 2
Data type: BAPIP0021HK-OTHERNAME2TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
OTHERFSTNAME2 - Other First name 2
Data type: BAPIP0021HK-OTHERFSTNAME2Optional: Yes
Call by Reference: No ( called with pass by value option)
OTHERLASTNAME2 - Other last name 2
Data type: BAPIP0021HK-OTHERLASTNAME2Optional: Yes
Call by Reference: No ( called with pass by value option)
CONAME - CO name
Data type: BAPIP0021HK-CONAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSLINE1 - Addrese line 1
Data type: BAPIP0021HK-ADDRESSLINE1Optional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSLINE2 - Addrese line 2
Data type: BAPIP0021HK-ADDRESSLINE2Optional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSLINE3 - Addrese line 3
Data type: BAPIP0021HK-ADDRESSLINE3Optional: Yes
Call by Reference: No ( called with pass by value option)
DISTRICTCODE - District code
Data type: BAPIP0021HK-DISTRICTCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
FIRSTNAME - First name
Data type: BAPIP0021HK-FIRSTNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
AREACODE - Area code
Data type: BAPIP0021HK-AREACODEOptional: Yes
Call by Reference: No ( called with pass by value option)
COUNTRYCODE - Country code
Data type: BAPIP0021HK-COUNTRYCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT1TYPE - Communication type 1
Data type: BAPIP0021HK-CONTACT1TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT1NUMBER - Communication number 1
Data type: BAPIP0021HK-CONTACT1NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT2TYPE - Communication type 2
Data type: BAPIP0021HK-CONTACT2TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT2NUMBER - Communication number 2
Data type: BAPIP0021HK-CONTACT2NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT3TYPE - Communication type 3
Data type: BAPIP0021HK-CONTACT3TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT3NUMBER - Communication number 3
Data type: BAPIP0021HK-CONTACT3NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT4TYPE - Communication type 4
Data type: BAPIP0021HK-CONTACT4TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT4NUMBER - Communication number 4
Data type: BAPIP0021HK-CONTACT4NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
LASTNAME - Last name
Data type: BAPIP0021HK-LASTNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT5TYPE - Communication type 5
Data type: BAPIP0021HK-CONTACT5TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT5NUMBER - Communication number 5
Data type: BAPIP0021HK-CONTACT5NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT6TYPE - Communication type 6
Data type: BAPIP0021HK-CONTACT6TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
CONTACT6NUMBER - Communication number 6
Data type: BAPIP0021HK-CONTACT6NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
REFEREMPLOYEENUMBER - Reference personnel number of family member
Data type: BAPIP0021HK-REFEREMPLOYEEOptional: Yes
Call by Reference: No ( called with pass by value option)
EMPLOYERADDRESS - Employer of family member
Data type: BAPIP0021HK-EMPLOYERADDROptional: Yes
Call by Reference: No ( called with pass by value option)
NOCOMMIT - COMMIT control at BAPI interface
Data type: BAPI_STAND-NO_COMMITOptional: Yes
Call by Reference: No ( called with pass by value option)
BIRTHNAME - Birth name
Data type: BAPIP0021HK-BIRTHNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
INITIALS - Initials
Data type: BAPIP0021HK-INITIALSOptional: Yes
Call by Reference: No ( called with pass by value option)
GENDER - Gender
Data type: BAPIP0021HK-GENDEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_FAMILYHK_CREATE
RETURN - Structure for return code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
EMPLOYEENUMBER - Personnel number
Data type: BAPIP0021HK-EMPLOYEENOOptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: BAPIP0021HK-SUBTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID - Object identification
Data type: BAPIP0021HK-OBJECTIDOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0021HK-LOCKINDICOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Valid from date
Data type: BAPIP0021HK-VALIDBEGINOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - Valid to date
Data type: BAPIP0021HK-VALIDENDOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of infotype record
Data type: BAPIP0021HK-RECORDNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_FAMILYHK_CREATE 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 BAPIP0021HK-EMPLOYEENO, " | |||
| lv_nationality | TYPE BAPIP0021HK-NATIONALITY, " | |||
| lv_nationality2 | TYPE BAPIP0021HK-NATIONALITY2, " | |||
| lv_nationality3 | TYPE BAPIP0021HK-NATIONALITY3, " | |||
| lv_dateofbirth | TYPE BAPIP0021HK-DATEOFBIRTH, " | |||
| lv_placeofbirth | TYPE BAPIP0021HK-PLACEOFBIRTH, " | |||
| lv_stateofbirth | TYPE BAPIP0021HK-STATEOFBIRTH, " | |||
| lv_countryofbirth | TYPE BAPIP0021HK-COUNTRYOFBIRTH, " | |||
| lv_maritalstatus | TYPE BAPIP0021HK-MARITALSTATUS, " | |||
| lv_separationdate | TYPE BAPIP0021HK-SEPARATIONDATE, " | |||
| lv_education | TYPE BAPIP0021HK-EDUCATION, " | |||
| lv_validitybegin | TYPE BAPIP0021HK-VALIDBEGIN, " | |||
| lv_employeenumber | TYPE BAPIP0021HK-EMPLOYEENO, " | |||
| lv_institute | TYPE BAPIP0021HK-INSTITUTE, " | |||
| lv_amount | TYPE BAPIP0021HK-AMOUNT, " | |||
| lv_occupationcode | TYPE BAPIP0021HK-OCCUPATIONCODE, " | |||
| lv_occupationstat | TYPE BAPIP0021HK-OCCUPATIONSTAT, " | |||
| lv_nameofemployer | TYPE BAPIP0021HK-NAMEOFEMPLOYER, " | |||
| lv_id1type | TYPE BAPIP0021HK-ID1TYPE, " | |||
| lv_id1number | TYPE BAPIP0021HK-ID1NUMBER, " | |||
| lv_id1issueby | TYPE BAPIP0021HK-ID1ISSUEBY, " | |||
| lv_id1issuedate | TYPE BAPIP0021HK-ID1ISSUEDATE, " | |||
| lv_id1expirydate | TYPE BAPIP0021HK-ID1EXPIRYDATE, " | |||
| lv_subtype | TYPE BAPIP0021HK-SUBTYPE, " | |||
| lv_validityend | TYPE BAPIP0021HK-VALIDEND, " | |||
| lv_countryofid1 | TYPE BAPIP0021HK-COUNTRYOFID1, " | |||
| lv_countryissuei1 | TYPE BAPIP0021HK-COUNTRYISSUEI1, " | |||
| lv_id2type | TYPE BAPIP0021HK-ID2TYPE, " | |||
| lv_id2number | TYPE BAPIP0021HK-ID2NUMBER, " | |||
| lv_id2issueby | TYPE BAPIP0021HK-ID2ISSUEBY, " | |||
| lv_id2issuedate | TYPE BAPIP0021HK-ID2ISSUEDATE, " | |||
| lv_id2expirydate | TYPE BAPIP0021HK-ID2EXPIRYDATE, " | |||
| lv_countryofid2 | TYPE BAPIP0021HK-COUNTRYOFID2, " | |||
| lv_countryissuei2 | TYPE BAPIP0021HK-COUNTRYISSUEI2, " | |||
| lv_othername1type | TYPE BAPIP0021HK-OTHERNAME1TYPE, " | |||
| lv_objectid | TYPE BAPIP0021HK-OBJECTID, " | |||
| lv_membertype | TYPE BAPIP0021HK-MEMBERTYPE, " | |||
| lv_otherfstname1 | TYPE BAPIP0021HK-OTHERFSTNAME1, " | |||
| lv_otherlastname1 | TYPE BAPIP0021HK-OTHERLASTNAME1, " | |||
| lv_othername2type | TYPE BAPIP0021HK-OTHERNAME2TYPE, " | |||
| lv_otherfstname2 | TYPE BAPIP0021HK-OTHERFSTNAME2, " | |||
| lv_otherlastname2 | TYPE BAPIP0021HK-OTHERLASTNAME2, " | |||
| lv_coname | TYPE BAPIP0021HK-CONAME, " | |||
| lv_addressline1 | TYPE BAPIP0021HK-ADDRESSLINE1, " | |||
| lv_addressline2 | TYPE BAPIP0021HK-ADDRESSLINE2, " | |||
| lv_addressline3 | TYPE BAPIP0021HK-ADDRESSLINE3, " | |||
| lv_districtcode | TYPE BAPIP0021HK-DISTRICTCODE, " | |||
| lv_firstname | TYPE BAPIP0021HK-FIRSTNAME, " | |||
| lv_lockindicator | TYPE BAPIP0021HK-LOCKINDIC, " | |||
| lv_areacode | TYPE BAPIP0021HK-AREACODE, " | |||
| lv_countrycode | TYPE BAPIP0021HK-COUNTRYCODE, " | |||
| lv_contact1type | TYPE BAPIP0021HK-CONTACT1TYPE, " | |||
| lv_contact1number | TYPE BAPIP0021HK-CONTACT1NUMBER, " | |||
| lv_contact2type | TYPE BAPIP0021HK-CONTACT2TYPE, " | |||
| lv_contact2number | TYPE BAPIP0021HK-CONTACT2NUMBER, " | |||
| lv_contact3type | TYPE BAPIP0021HK-CONTACT3TYPE, " | |||
| lv_contact3number | TYPE BAPIP0021HK-CONTACT3NUMBER, " | |||
| lv_contact4type | TYPE BAPIP0021HK-CONTACT4TYPE, " | |||
| lv_contact4number | TYPE BAPIP0021HK-CONTACT4NUMBER, " | |||
| lv_lastname | TYPE BAPIP0021HK-LASTNAME, " | |||
| lv_validitybegin | TYPE BAPIP0021HK-VALIDBEGIN, " | |||
| lv_contact5type | TYPE BAPIP0021HK-CONTACT5TYPE, " | |||
| lv_contact5number | TYPE BAPIP0021HK-CONTACT5NUMBER, " | |||
| lv_contact6type | TYPE BAPIP0021HK-CONTACT6TYPE, " | |||
| lv_contact6number | TYPE BAPIP0021HK-CONTACT6NUMBER, " | |||
| lv_referemployeenumber | TYPE BAPIP0021HK-REFEREMPLOYEE, " | |||
| lv_employeraddress | TYPE BAPIP0021HK-EMPLOYERADDR, " | |||
| lv_nocommit | TYPE BAPI_STAND-NO_COMMIT, " | |||
| lv_birthname | TYPE BAPIP0021HK-BIRTHNAME, " | |||
| lv_validityend | TYPE BAPIP0021HK-VALIDEND, " | |||
| lv_initials | TYPE BAPIP0021HK-INITIALS, " | |||
| lv_recordnumber | TYPE BAPIP0021HK-RECORDNR, " | |||
| lv_gender | TYPE BAPIP0021HK-GENDER. " |
|   CALL FUNCTION 'BAPI_FAMILYHK_CREATE' "Family Hong Kong: Create record |
| EXPORTING | ||
| EMPLOYEENUMBER | = lv_employeenumber | |
| NATIONALITY | = lv_nationality | |
| NATIONALITY2 | = lv_nationality2 | |
| NATIONALITY3 | = lv_nationality3 | |
| DATEOFBIRTH | = lv_dateofbirth | |
| PLACEOFBIRTH | = lv_placeofbirth | |
| STATEOFBIRTH | = lv_stateofbirth | |
| COUNTRYOFBIRTH | = lv_countryofbirth | |
| MARITALSTATUS | = lv_maritalstatus | |
| SEPARATIONDATE | = lv_separationdate | |
| EDUCATION | = lv_education | |
| VALIDITYBEGIN | = lv_validitybegin | |
| INSTITUTE | = lv_institute | |
| AMOUNT | = lv_amount | |
| OCCUPATIONCODE | = lv_occupationcode | |
| OCCUPATIONSTAT | = lv_occupationstat | |
| NAMEOFEMPLOYER | = lv_nameofemployer | |
| ID1TYPE | = lv_id1type | |
| ID1NUMBER | = lv_id1number | |
| ID1ISSUEBY | = lv_id1issueby | |
| ID1ISSUEDATE | = lv_id1issuedate | |
| ID1EXPIRYDATE | = lv_id1expirydate | |
| VALIDITYEND | = lv_validityend | |
| COUNTRYOFID1 | = lv_countryofid1 | |
| COUNTRYISSUEI1 | = lv_countryissuei1 | |
| ID2TYPE | = lv_id2type | |
| ID2NUMBER | = lv_id2number | |
| ID2ISSUEBY | = lv_id2issueby | |
| ID2ISSUEDATE | = lv_id2issuedate | |
| ID2EXPIRYDATE | = lv_id2expirydate | |
| COUNTRYOFID2 | = lv_countryofid2 | |
| COUNTRYISSUEI2 | = lv_countryissuei2 | |
| OTHERNAME1TYPE | = lv_othername1type | |
| MEMBERTYPE | = lv_membertype | |
| OTHERFSTNAME1 | = lv_otherfstname1 | |
| OTHERLASTNAME1 | = lv_otherlastname1 | |
| OTHERNAME2TYPE | = lv_othername2type | |
| OTHERFSTNAME2 | = lv_otherfstname2 | |
| OTHERLASTNAME2 | = lv_otherlastname2 | |
| CONAME | = lv_coname | |
| ADDRESSLINE1 | = lv_addressline1 | |
| ADDRESSLINE2 | = lv_addressline2 | |
| ADDRESSLINE3 | = lv_addressline3 | |
| DISTRICTCODE | = lv_districtcode | |
| FIRSTNAME | = lv_firstname | |
| AREACODE | = lv_areacode | |
| COUNTRYCODE | = lv_countrycode | |
| CONTACT1TYPE | = lv_contact1type | |
| CONTACT1NUMBER | = lv_contact1number | |
| CONTACT2TYPE | = lv_contact2type | |
| CONTACT2NUMBER | = lv_contact2number | |
| CONTACT3TYPE | = lv_contact3type | |
| CONTACT3NUMBER | = lv_contact3number | |
| CONTACT4TYPE | = lv_contact4type | |
| CONTACT4NUMBER | = lv_contact4number | |
| LASTNAME | = lv_lastname | |
| CONTACT5TYPE | = lv_contact5type | |
| CONTACT5NUMBER | = lv_contact5number | |
| CONTACT6TYPE | = lv_contact6type | |
| CONTACT6NUMBER | = lv_contact6number | |
| REFEREMPLOYEENUMBER | = lv_referemployeenumber | |
| EMPLOYERADDRESS | = lv_employeraddress | |
| NOCOMMIT | = lv_nocommit | |
| BIRTHNAME | = lv_birthname | |
| INITIALS | = lv_initials | |
| GENDER | = lv_gender | |
| 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_FAMILYHK_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_FAMILYHK_CREATE
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 EMPLOYEENO FROM BAPIP0021HK INTO @DATA(ld_employeenumber). | ||||
| "SELECT single NATIONALITY FROM BAPIP0021HK INTO @DATA(ld_nationality). | ||||
| "SELECT single NATIONALITY2 FROM BAPIP0021HK INTO @DATA(ld_nationality2). | ||||
| "SELECT single NATIONALITY3 FROM BAPIP0021HK INTO @DATA(ld_nationality3). | ||||
| "SELECT single DATEOFBIRTH FROM BAPIP0021HK INTO @DATA(ld_dateofbirth). | ||||
| "SELECT single PLACEOFBIRTH FROM BAPIP0021HK INTO @DATA(ld_placeofbirth). | ||||
| "SELECT single STATEOFBIRTH FROM BAPIP0021HK INTO @DATA(ld_stateofbirth). | ||||
| "SELECT single COUNTRYOFBIRTH FROM BAPIP0021HK INTO @DATA(ld_countryofbirth). | ||||
| "SELECT single MARITALSTATUS FROM BAPIP0021HK INTO @DATA(ld_maritalstatus). | ||||
| "SELECT single SEPARATIONDATE FROM BAPIP0021HK INTO @DATA(ld_separationdate). | ||||
| "SELECT single EDUCATION FROM BAPIP0021HK INTO @DATA(ld_education). | ||||
| "SELECT single VALIDBEGIN FROM BAPIP0021HK INTO @DATA(ld_validitybegin). | ||||
| "SELECT single EMPLOYEENO FROM BAPIP0021HK INTO @DATA(ld_employeenumber). | ||||
| "SELECT single INSTITUTE FROM BAPIP0021HK INTO @DATA(ld_institute). | ||||
| "SELECT single AMOUNT FROM BAPIP0021HK INTO @DATA(ld_amount). | ||||
| "SELECT single OCCUPATIONCODE FROM BAPIP0021HK INTO @DATA(ld_occupationcode). | ||||
| "SELECT single OCCUPATIONSTAT FROM BAPIP0021HK INTO @DATA(ld_occupationstat). | ||||
| "SELECT single NAMEOFEMPLOYER FROM BAPIP0021HK INTO @DATA(ld_nameofemployer). | ||||
| "SELECT single ID1TYPE FROM BAPIP0021HK INTO @DATA(ld_id1type). | ||||
| "SELECT single ID1NUMBER FROM BAPIP0021HK INTO @DATA(ld_id1number). | ||||
| "SELECT single ID1ISSUEBY FROM BAPIP0021HK INTO @DATA(ld_id1issueby). | ||||
| "SELECT single ID1ISSUEDATE FROM BAPIP0021HK INTO @DATA(ld_id1issuedate). | ||||
| "SELECT single ID1EXPIRYDATE FROM BAPIP0021HK INTO @DATA(ld_id1expirydate). | ||||
| "SELECT single SUBTYPE FROM BAPIP0021HK INTO @DATA(ld_subtype). | ||||
| "SELECT single VALIDEND FROM BAPIP0021HK INTO @DATA(ld_validityend). | ||||
| "SELECT single COUNTRYOFID1 FROM BAPIP0021HK INTO @DATA(ld_countryofid1). | ||||
| "SELECT single COUNTRYISSUEI1 FROM BAPIP0021HK INTO @DATA(ld_countryissuei1). | ||||
| "SELECT single ID2TYPE FROM BAPIP0021HK INTO @DATA(ld_id2type). | ||||
| "SELECT single ID2NUMBER FROM BAPIP0021HK INTO @DATA(ld_id2number). | ||||
| "SELECT single ID2ISSUEBY FROM BAPIP0021HK INTO @DATA(ld_id2issueby). | ||||
| "SELECT single ID2ISSUEDATE FROM BAPIP0021HK INTO @DATA(ld_id2issuedate). | ||||
| "SELECT single ID2EXPIRYDATE FROM BAPIP0021HK INTO @DATA(ld_id2expirydate). | ||||
| "SELECT single COUNTRYOFID2 FROM BAPIP0021HK INTO @DATA(ld_countryofid2). | ||||
| "SELECT single COUNTRYISSUEI2 FROM BAPIP0021HK INTO @DATA(ld_countryissuei2). | ||||
| "SELECT single OTHERNAME1TYPE FROM BAPIP0021HK INTO @DATA(ld_othername1type). | ||||
| "SELECT single OBJECTID FROM BAPIP0021HK INTO @DATA(ld_objectid). | ||||
| "SELECT single MEMBERTYPE FROM BAPIP0021HK INTO @DATA(ld_membertype). | ||||
| "SELECT single OTHERFSTNAME1 FROM BAPIP0021HK INTO @DATA(ld_otherfstname1). | ||||
| "SELECT single OTHERLASTNAME1 FROM BAPIP0021HK INTO @DATA(ld_otherlastname1). | ||||
| "SELECT single OTHERNAME2TYPE FROM BAPIP0021HK INTO @DATA(ld_othername2type). | ||||
| "SELECT single OTHERFSTNAME2 FROM BAPIP0021HK INTO @DATA(ld_otherfstname2). | ||||
| "SELECT single OTHERLASTNAME2 FROM BAPIP0021HK INTO @DATA(ld_otherlastname2). | ||||
| "SELECT single CONAME FROM BAPIP0021HK INTO @DATA(ld_coname). | ||||
| "SELECT single ADDRESSLINE1 FROM BAPIP0021HK INTO @DATA(ld_addressline1). | ||||
| "SELECT single ADDRESSLINE2 FROM BAPIP0021HK INTO @DATA(ld_addressline2). | ||||
| "SELECT single ADDRESSLINE3 FROM BAPIP0021HK INTO @DATA(ld_addressline3). | ||||
| "SELECT single DISTRICTCODE FROM BAPIP0021HK INTO @DATA(ld_districtcode). | ||||
| "SELECT single FIRSTNAME FROM BAPIP0021HK INTO @DATA(ld_firstname). | ||||
| "SELECT single LOCKINDIC FROM BAPIP0021HK INTO @DATA(ld_lockindicator). | ||||
| "SELECT single AREACODE FROM BAPIP0021HK INTO @DATA(ld_areacode). | ||||
| "SELECT single COUNTRYCODE FROM BAPIP0021HK INTO @DATA(ld_countrycode). | ||||
| "SELECT single CONTACT1TYPE FROM BAPIP0021HK INTO @DATA(ld_contact1type). | ||||
| "SELECT single CONTACT1NUMBER FROM BAPIP0021HK INTO @DATA(ld_contact1number). | ||||
| "SELECT single CONTACT2TYPE FROM BAPIP0021HK INTO @DATA(ld_contact2type). | ||||
| "SELECT single CONTACT2NUMBER FROM BAPIP0021HK INTO @DATA(ld_contact2number). | ||||
| "SELECT single CONTACT3TYPE FROM BAPIP0021HK INTO @DATA(ld_contact3type). | ||||
| "SELECT single CONTACT3NUMBER FROM BAPIP0021HK INTO @DATA(ld_contact3number). | ||||
| "SELECT single CONTACT4TYPE FROM BAPIP0021HK INTO @DATA(ld_contact4type). | ||||
| "SELECT single CONTACT4NUMBER FROM BAPIP0021HK INTO @DATA(ld_contact4number). | ||||
| "SELECT single LASTNAME FROM BAPIP0021HK INTO @DATA(ld_lastname). | ||||
| "SELECT single VALIDBEGIN FROM BAPIP0021HK INTO @DATA(ld_validitybegin). | ||||
| "SELECT single CONTACT5TYPE FROM BAPIP0021HK INTO @DATA(ld_contact5type). | ||||
| "SELECT single CONTACT5NUMBER FROM BAPIP0021HK INTO @DATA(ld_contact5number). | ||||
| "SELECT single CONTACT6TYPE FROM BAPIP0021HK INTO @DATA(ld_contact6type). | ||||
| "SELECT single CONTACT6NUMBER FROM BAPIP0021HK INTO @DATA(ld_contact6number). | ||||
| "SELECT single REFEREMPLOYEE FROM BAPIP0021HK INTO @DATA(ld_referemployeenumber). | ||||
| "SELECT single EMPLOYERADDR FROM BAPIP0021HK INTO @DATA(ld_employeraddress). | ||||
| "SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit). | ||||
| "SELECT single BIRTHNAME FROM BAPIP0021HK INTO @DATA(ld_birthname). | ||||
| "SELECT single VALIDEND FROM BAPIP0021HK INTO @DATA(ld_validityend). | ||||
| "SELECT single INITIALS FROM BAPIP0021HK INTO @DATA(ld_initials). | ||||
| "SELECT single RECORDNR FROM BAPIP0021HK INTO @DATA(ld_recordnumber). | ||||
| "SELECT single GENDER FROM BAPIP0021HK INTO @DATA(ld_gender). | ||||
Search for further information about these or an SAP related objects