SAP BAPI_EMPCAPFODECREATESUCCESSOR Function Module for Create CFS Follow-on Record
BAPI_EMPCAPFODECREATESUCCESSOR is a standard bapi empcapfodecreatesuccessor SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create CFS Follow-on 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 empcapfodecreatesuccessor FM, simply by entering the name BAPI_EMPCAPFODECREATESUCCESSOR into the relevant SAP transaction such as SE37 or SE38.
Function Group: PACF_DE
Program Name: SAPLPACF_DE
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_EMPCAPFODECREATESUCCESSOR 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_EMPCAPFODECREATESUCCESSOR'"Create CFS Follow-on Record.
EXPORTING
EMPLOYEENUMBER = "Personnel Number
FIRSTPAYMENTDATE = "First Payment Date
FIRSTPAYMENTPERIOD = "First Payment Period
INTERVALUNIT = "Number for Determining Further Payment Dates
NEXTPAYMENT = "Time Unit for Determining Next Payment
NUMBERCONTRIBUTION = "Number of ER Contributions
PAYEEKEY = "Payee Key for Bank Transfers
PAYEE = "Payee Text
ZIPCODE = "Postal Code
CITY = "Location
BANKCOUNTRY = "Country Key of Bank
LOCKINDICATOR = "Lock Indicator for HR Master Data Record
BANKNUMBER = "Bank Number
BANKACCOUNTNUMBER = "Bank Account Number
PURPOSE = "Purpose of Bank Transfers
TRANSFERINDICATOR = "Transfer Indicator
PAYMENTPRIORITY = "Payment Priority
ASSETTYPE = "Type of Investment/Asset for Capital Formation
EMPLCONTRIBUTION = "Employer's Contribution to Savings Plan
INVESTCONFIRMATION = "Investment Confirmation
INDTAXCONFIRM = "Indicator: Tax Confirmation
PROCESSINGTYPE = "Processing Type of Capital Formation Record
VALIDITYBEGIN = "Valid from Date
INDCONTINUEDPAYM = "Indicator: Continued Payment w/o Payment Amount
CURRENCY = "Currency of Savings Deposit
PAYMENTMETHOD = "Payment Method
* NO_COMMIT = "COMMIT Control at BAPI Interface
VALIDITYEND = "Valid to Date
CONTRACTNUMBER = "Subtype
WAGETYPE = "Wage Type
OPERATIONINDICATOR = "Operation Indicator for Wage Types
AMOUNT = "Amount for Capital Formation
SPECIALRULE = "Special Rule for Capital Formation
IMPORTING
RETURN = "Return Parameter
REMPLOYEENUMBER = "Personnel Number
RSUBTYPE = "Subtype
ROBJECTID = "Object Identification
RLOCKINDICATOR = "Lock Indicator for HR Master Data Record
RVALIDITYBEGIN = "Valid from Date
RVALIDITYEND = "Valid to Date
RECORDNUMBER = "Number of Infotype Record with Same Key
IMPORTING Parameters details for BAPI_EMPCAPFODECREATESUCCESSOR
EMPLOYEENUMBER - Personnel Number
Data type: BAPIP0010-PERNROptional: No
Call by Reference: No ( called with pass by value option)
FIRSTPAYMENTDATE - First Payment Date
Data type: BAPIP0010-ZDATEOptional: No
Call by Reference: No ( called with pass by value option)
FIRSTPAYMENTPERIOD - First Payment Period
Data type: BAPIP0010-ZFPEROptional: No
Call by Reference: No ( called with pass by value option)
INTERVALUNIT - Number for Determining Further Payment Dates
Data type: BAPIP0010-ZANZLOptional: No
Call by Reference: No ( called with pass by value option)
NEXTPAYMENT - Time Unit for Determining Next Payment
Data type: BAPIP0010-ZEINZOptional: No
Call by Reference: No ( called with pass by value option)
NUMBERCONTRIBUTION - Number of ER Contributions
Data type: BAPIP0010-ANZHLOptional: No
Call by Reference: No ( called with pass by value option)
PAYEEKEY - Payee Key for Bank Transfers
Data type: BAPIP0010-EMFSLOptional: No
Call by Reference: No ( called with pass by value option)
PAYEE - Payee Text
Data type: BAPIP0010-EMFTXOptional: No
Call by Reference: No ( called with pass by value option)
ZIPCODE - Postal Code
Data type: BAPIP0010-BKPLZOptional: No
Call by Reference: No ( called with pass by value option)
CITY - Location
Data type: BAPIP0010-BKORTOptional: No
Call by Reference: No ( called with pass by value option)
BANKCOUNTRY - Country Key of Bank
Data type: BAPIP0010-BANKSOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock Indicator for HR Master Data Record
Data type: BAPIP0010-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
BANKNUMBER - Bank Number
Data type: BAPIP0010-BANKLOptional: No
Call by Reference: No ( called with pass by value option)
BANKACCOUNTNUMBER - Bank Account Number
Data type: BAPIP0010-BANKNOptional: No
Call by Reference: No ( called with pass by value option)
PURPOSE - Purpose of Bank Transfers
Data type: BAPIP0010-ZWECKOptional: No
Call by Reference: No ( called with pass by value option)
TRANSFERINDICATOR - Transfer Indicator
Data type: BAPIP0010-UWKENOptional: No
Call by Reference: No ( called with pass by value option)
PAYMENTPRIORITY - Payment Priority
Data type: BAPIP0010-PRITYOptional: No
Call by Reference: No ( called with pass by value option)
ASSETTYPE - Type of Investment/Asset for Capital Formation
Data type: BAPIP0010-VBAFMOptional: No
Call by Reference: No ( called with pass by value option)
EMPLCONTRIBUTION - Employer's Contribution to Savings Plan
Data type: BAPIP0010-VBAGAOptional: No
Call by Reference: No ( called with pass by value option)
INVESTCONFIRMATION - Investment Confirmation
Data type: BAPIP0010-VBABSOptional: No
Call by Reference: No ( called with pass by value option)
INDTAXCONFIRM - Indicator: Tax Confirmation
Data type: BAPIP0010-STBKNOptional: No
Call by Reference: No ( called with pass by value option)
PROCESSINGTYPE - Processing Type of Capital Formation Record
Data type: BAPIP0010-WZKZ1Optional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Valid from Date
Data type: BAPIP0010-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
INDCONTINUEDPAYM - Indicator: Continued Payment w/o Payment Amount
Data type: BAPIP0010-WZKZ2Optional: No
Call by Reference: No ( called with pass by value option)
CURRENCY - Currency of Savings Deposit
Data type: BAPIP0010-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
PAYMENTMETHOD - Payment Method
Data type: BAPIP0010-ZLSCHOptional: No
Call by Reference: No ( called with pass by value option)
NO_COMMIT - COMMIT Control at BAPI Interface
Data type: BAPI_STAND-NO_COMMITOptional: Yes
Call by Reference: No ( called with pass by value option)
VALIDITYEND - Valid to Date
Data type: BAPIP0010-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
CONTRACTNUMBER - Subtype
Data type: BAPIP0010-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
WAGETYPE - Wage Type
Data type: BAPIP0010-LGARTOptional: No
Call by Reference: No ( called with pass by value option)
OPERATIONINDICATOR - Operation Indicator for Wage Types
Data type: BAPIP0010-OPKENOptional: No
Call by Reference: No ( called with pass by value option)
AMOUNT - Amount for Capital Formation
Data type: BAPIP0010-BETRGOptional: No
Call by Reference: No ( called with pass by value option)
SPECIALRULE - Special Rule for Capital Formation
Data type: BAPIP0010-SONREOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_EMPCAPFODECREATESUCCESSOR
RETURN - Return Parameter
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
REMPLOYEENUMBER - Personnel Number
Data type: BAPIP0010-PERNROptional: No
Call by Reference: No ( called with pass by value option)
RSUBTYPE - Subtype
Data type: BAPIP0010-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
ROBJECTID - Object Identification
Data type: BAPIP0010-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
RLOCKINDICATOR - Lock Indicator for HR Master Data Record
Data type: BAPIP0010-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
RVALIDITYBEGIN - Valid from Date
Data type: BAPIP0010-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
RVALIDITYEND - Valid to Date
Data type: BAPIP0010-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of Infotype Record with Same Key
Data type: BAPIP0010-SEQNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_EMPCAPFODECREATESUCCESSOR 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 BAPIP0010-PERNR, " | |||
| lv_firstpaymentdate | TYPE BAPIP0010-ZDATE, " | |||
| lv_firstpaymentperiod | TYPE BAPIP0010-ZFPER, " | |||
| lv_intervalunit | TYPE BAPIP0010-ZANZL, " | |||
| lv_nextpayment | TYPE BAPIP0010-ZEINZ, " | |||
| lv_numbercontribution | TYPE BAPIP0010-ANZHL, " | |||
| lv_payeekey | TYPE BAPIP0010-EMFSL, " | |||
| lv_payee | TYPE BAPIP0010-EMFTX, " | |||
| lv_zipcode | TYPE BAPIP0010-BKPLZ, " | |||
| lv_city | TYPE BAPIP0010-BKORT, " | |||
| lv_bankcountry | TYPE BAPIP0010-BANKS, " | |||
| lv_lockindicator | TYPE BAPIP0010-SPRPS, " | |||
| lv_remployeenumber | TYPE BAPIP0010-PERNR, " | |||
| lv_banknumber | TYPE BAPIP0010-BANKL, " | |||
| lv_bankaccountnumber | TYPE BAPIP0010-BANKN, " | |||
| lv_purpose | TYPE BAPIP0010-ZWECK, " | |||
| lv_transferindicator | TYPE BAPIP0010-UWKEN, " | |||
| lv_paymentpriority | TYPE BAPIP0010-PRITY, " | |||
| lv_assettype | TYPE BAPIP0010-VBAFM, " | |||
| lv_emplcontribution | TYPE BAPIP0010-VBAGA, " | |||
| lv_investconfirmation | TYPE BAPIP0010-VBABS, " | |||
| lv_indtaxconfirm | TYPE BAPIP0010-STBKN, " | |||
| lv_processingtype | TYPE BAPIP0010-WZKZ1, " | |||
| lv_rsubtype | TYPE BAPIP0010-SUBTY, " | |||
| lv_validitybegin | TYPE BAPIP0010-BEGDA, " | |||
| lv_indcontinuedpaym | TYPE BAPIP0010-WZKZ2, " | |||
| lv_currency | TYPE BAPIP0010-WAERS, " | |||
| lv_paymentmethod | TYPE BAPIP0010-ZLSCH, " | |||
| lv_no_commit | TYPE BAPI_STAND-NO_COMMIT, " | |||
| lv_robjectid | TYPE BAPIP0010-OBJPS, " | |||
| lv_validityend | TYPE BAPIP0010-ENDDA, " | |||
| lv_contractnumber | TYPE BAPIP0010-SUBTY, " | |||
| lv_rlockindicator | TYPE BAPIP0010-SPRPS, " | |||
| lv_wagetype | TYPE BAPIP0010-LGART, " | |||
| lv_rvaliditybegin | TYPE BAPIP0010-BEGDA, " | |||
| lv_rvalidityend | TYPE BAPIP0010-ENDDA, " | |||
| lv_operationindicator | TYPE BAPIP0010-OPKEN, " | |||
| lv_amount | TYPE BAPIP0010-BETRG, " | |||
| lv_recordnumber | TYPE BAPIP0010-SEQNR, " | |||
| lv_specialrule | TYPE BAPIP0010-SONRE. " |
|   CALL FUNCTION 'BAPI_EMPCAPFODECREATESUCCESSOR' "Create CFS Follow-on Record |
| EXPORTING | ||
| EMPLOYEENUMBER | = lv_employeenumber | |
| FIRSTPAYMENTDATE | = lv_firstpaymentdate | |
| FIRSTPAYMENTPERIOD | = lv_firstpaymentperiod | |
| INTERVALUNIT | = lv_intervalunit | |
| NEXTPAYMENT | = lv_nextpayment | |
| NUMBERCONTRIBUTION | = lv_numbercontribution | |
| PAYEEKEY | = lv_payeekey | |
| PAYEE | = lv_payee | |
| ZIPCODE | = lv_zipcode | |
| CITY | = lv_city | |
| BANKCOUNTRY | = lv_bankcountry | |
| LOCKINDICATOR | = lv_lockindicator | |
| BANKNUMBER | = lv_banknumber | |
| BANKACCOUNTNUMBER | = lv_bankaccountnumber | |
| PURPOSE | = lv_purpose | |
| TRANSFERINDICATOR | = lv_transferindicator | |
| PAYMENTPRIORITY | = lv_paymentpriority | |
| ASSETTYPE | = lv_assettype | |
| EMPLCONTRIBUTION | = lv_emplcontribution | |
| INVESTCONFIRMATION | = lv_investconfirmation | |
| INDTAXCONFIRM | = lv_indtaxconfirm | |
| PROCESSINGTYPE | = lv_processingtype | |
| VALIDITYBEGIN | = lv_validitybegin | |
| INDCONTINUEDPAYM | = lv_indcontinuedpaym | |
| CURRENCY | = lv_currency | |
| PAYMENTMETHOD | = lv_paymentmethod | |
| NO_COMMIT | = lv_no_commit | |
| VALIDITYEND | = lv_validityend | |
| CONTRACTNUMBER | = lv_contractnumber | |
| WAGETYPE | = lv_wagetype | |
| OPERATIONINDICATOR | = lv_operationindicator | |
| AMOUNT | = lv_amount | |
| SPECIALRULE | = lv_specialrule | |
| IMPORTING | ||
| RETURN | = lv_return | |
| REMPLOYEENUMBER | = lv_remployeenumber | |
| RSUBTYPE | = lv_rsubtype | |
| ROBJECTID | = lv_robjectid | |
| RLOCKINDICATOR | = lv_rlockindicator | |
| RVALIDITYBEGIN | = lv_rvaliditybegin | |
| RVALIDITYEND | = lv_rvalidityend | |
| RECORDNUMBER | = lv_recordnumber | |
| . " BAPI_EMPCAPFODECREATESUCCESSOR | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_EMPCAPFODECREATESUCCESSOR
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 BAPIP0010 INTO @DATA(ld_employeenumber). | ||||
| "SELECT single ZDATE FROM BAPIP0010 INTO @DATA(ld_firstpaymentdate). | ||||
| "SELECT single ZFPER FROM BAPIP0010 INTO @DATA(ld_firstpaymentperiod). | ||||
| "SELECT single ZANZL FROM BAPIP0010 INTO @DATA(ld_intervalunit). | ||||
| "SELECT single ZEINZ FROM BAPIP0010 INTO @DATA(ld_nextpayment). | ||||
| "SELECT single ANZHL FROM BAPIP0010 INTO @DATA(ld_numbercontribution). | ||||
| "SELECT single EMFSL FROM BAPIP0010 INTO @DATA(ld_payeekey). | ||||
| "SELECT single EMFTX FROM BAPIP0010 INTO @DATA(ld_payee). | ||||
| "SELECT single BKPLZ FROM BAPIP0010 INTO @DATA(ld_zipcode). | ||||
| "SELECT single BKORT FROM BAPIP0010 INTO @DATA(ld_city). | ||||
| "SELECT single BANKS FROM BAPIP0010 INTO @DATA(ld_bankcountry). | ||||
| "SELECT single SPRPS FROM BAPIP0010 INTO @DATA(ld_lockindicator). | ||||
| "SELECT single PERNR FROM BAPIP0010 INTO @DATA(ld_remployeenumber). | ||||
| "SELECT single BANKL FROM BAPIP0010 INTO @DATA(ld_banknumber). | ||||
| "SELECT single BANKN FROM BAPIP0010 INTO @DATA(ld_bankaccountnumber). | ||||
| "SELECT single ZWECK FROM BAPIP0010 INTO @DATA(ld_purpose). | ||||
| "SELECT single UWKEN FROM BAPIP0010 INTO @DATA(ld_transferindicator). | ||||
| "SELECT single PRITY FROM BAPIP0010 INTO @DATA(ld_paymentpriority). | ||||
| "SELECT single VBAFM FROM BAPIP0010 INTO @DATA(ld_assettype). | ||||
| "SELECT single VBAGA FROM BAPIP0010 INTO @DATA(ld_emplcontribution). | ||||
| "SELECT single VBABS FROM BAPIP0010 INTO @DATA(ld_investconfirmation). | ||||
| "SELECT single STBKN FROM BAPIP0010 INTO @DATA(ld_indtaxconfirm). | ||||
| "SELECT single WZKZ1 FROM BAPIP0010 INTO @DATA(ld_processingtype). | ||||
| "SELECT single SUBTY FROM BAPIP0010 INTO @DATA(ld_rsubtype). | ||||
| "SELECT single BEGDA FROM BAPIP0010 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single WZKZ2 FROM BAPIP0010 INTO @DATA(ld_indcontinuedpaym). | ||||
| "SELECT single WAERS FROM BAPIP0010 INTO @DATA(ld_currency). | ||||
| "SELECT single ZLSCH FROM BAPIP0010 INTO @DATA(ld_paymentmethod). | ||||
| "SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_no_commit). | ||||
| "SELECT single OBJPS FROM BAPIP0010 INTO @DATA(ld_robjectid). | ||||
| "SELECT single ENDDA FROM BAPIP0010 INTO @DATA(ld_validityend). | ||||
| "SELECT single SUBTY FROM BAPIP0010 INTO @DATA(ld_contractnumber). | ||||
| "SELECT single SPRPS FROM BAPIP0010 INTO @DATA(ld_rlockindicator). | ||||
| "SELECT single LGART FROM BAPIP0010 INTO @DATA(ld_wagetype). | ||||
| "SELECT single BEGDA FROM BAPIP0010 INTO @DATA(ld_rvaliditybegin). | ||||
| "SELECT single ENDDA FROM BAPIP0010 INTO @DATA(ld_rvalidityend). | ||||
| "SELECT single OPKEN FROM BAPIP0010 INTO @DATA(ld_operationindicator). | ||||
| "SELECT single BETRG FROM BAPIP0010 INTO @DATA(ld_amount). | ||||
| "SELECT single SEQNR FROM BAPIP0010 INTO @DATA(ld_recordnumber). | ||||
| "SELECT single SONRE FROM BAPIP0010 INTO @DATA(ld_specialrule). | ||||
Search for further information about these or an SAP related objects