BAPI_FAMILYJP_SIMULATECREATION 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_FAMILYJP_SIMULATECREATION into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
PFAM_JP
Released Date:
16.12.1998
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_FAMILYJP_SIMULATECREATION' "Family Japan: Simulate Create 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
* firstnameromaji = " bapip0021-favor First name (Romaji)
* lastnameromaji = " bapip0021-fanam Last name (Romaji)
* gender = " bapip0021-fasex Gender
* dateofbirth = " bapip0021-fgbdt Date of birth
* placeofbirth = " bapip0021-fgbot Birthplace
* stateofbirth = " bapip0021-fgdep State
* landofbirth = " bapip0021-fgbld Country of birth
* nationality = " bapip0021-fanat Nationality
* firstname = " bapip0148-firstname First name
* lastname = " bapip0148-lastname Last name
* firstnamekatakana = " bapip0148-firstnamekana First name (Katakana)
* lastnamekatakana = " bapip0148-lastnamekana Last name (Katakana)
* childtype = " bapip0148-childtype Child type
* reason = " bapip0148-reason Reason for changing record
* dependent = " bapip0148-dependent Dependent in taxation
* theold = " bapip0148-theold Old family member in taxation
* handicap = " bapip0148-handicap Handicapped family member in taxation
* livewith = " bapip0148-livewith Family member living with in taxation
* insurance = " bapip0148-insurance Health insurance in taxation
* allowance = " bapip0148-allowance Family allowance
* yea = " bapip0148-yea Year End Adjustment
* death = " bapip0148-death Death in taxation
* nonresidence = " bapip0148-nonresidence Non-residence in taxation
* nameformat = " bapip0148-nameformat Name format
* nocommit = " bapi_stand-no_commit COMMIT control at BAPI interface
IMPORTING
return = " bapireturn1 Structure for return code
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_FAMILYJP_SIMULATECREATION
The ABAP code below is a full code listing to execute function module BAPI_FAMILYJP_SIMULATECREATION 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_firstnameromaji | TYPE BAPIP0021-FAVOR , |
| ld_validitybegin | TYPE BAPIP0021-BEGDA , |
| ld_lastnameromaji | TYPE BAPIP0021-FANAM , |
| ld_validityend | TYPE BAPIP0021-ENDDA , |
| ld_gender | TYPE BAPIP0021-FASEX , |
| ld_recordnumber | TYPE BAPIP0021-SEQNR , |
| ld_dateofbirth | TYPE BAPIP0021-FGBDT , |
| ld_placeofbirth | TYPE BAPIP0021-FGBOT , |
| ld_stateofbirth | TYPE BAPIP0021-FGDEP , |
| ld_landofbirth | TYPE BAPIP0021-FGBLD , |
| ld_nationality | TYPE BAPIP0021-FANAT , |
| ld_firstname | TYPE BAPIP0148-FIRSTNAME , |
| ld_lastname | TYPE BAPIP0148-LASTNAME , |
| ld_firstnamekatakana | TYPE BAPIP0148-FIRSTNAMEKANA , |
| ld_lastnamekatakana | TYPE BAPIP0148-LASTNAMEKANA , |
| ld_childtype | TYPE BAPIP0148-CHILDTYPE , |
| ld_reason | TYPE BAPIP0148-REASON , |
| ld_dependent | TYPE BAPIP0148-DEPENDENT , |
| ld_theold | TYPE BAPIP0148-THEOLD , |
| ld_handicap | TYPE BAPIP0148-HANDICAP , |
| ld_livewith | TYPE BAPIP0148-LIVEWITH , |
| ld_insurance | TYPE BAPIP0148-INSURANCE , |
| ld_allowance | TYPE BAPIP0148-ALLOWANCE , |
| ld_yea | TYPE BAPIP0148-YEA , |
| ld_death | TYPE BAPIP0148-DEATH , |
| ld_nonresidence | TYPE BAPIP0148-NONRESIDENCE , |
| ld_nameformat | TYPE BAPIP0148-NAMEFORMAT , |
| ld_nocommit | TYPE BAPI_STAND-NO_COMMIT . |
You can use this method to create a locked Family/Related Person record
(0021 and 0148) for an employee in Japan.
...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_FAMILYJP_SIMULATECREATION or its description.
BAPI_FAMILYJP_SIMULATECREATION - Family Japan: Simulate Create record BAPI_FAMILYJP_REQUEST - Family Japan: Create locked record BAPI_FAMILYJP_GETDETAILEDLIST - Family Japan: Read instances with record BAPI_FAMILYJP_GETDETAIL - Family Japan: Read record BAPI_FAMILYJP_CREATESUCCESSOR - Family Japan: Create succeeding record BAPI_FAMILYJP_CREATE - Family Japan: Create record