SAP BAPI_EMPCAPFODE_CREATE Function Module for Create CFS









BAPI_EMPCAPFODE_CREATE is a standard bapi empcapfode 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 Create CFS 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 empcapfode create FM, simply by entering the name BAPI_EMPCAPFODE_CREATE 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_EMPCAPFODE_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_EMPCAPFODE_CREATE'"Create CFS
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 = "Regular Contract for Capital Formation
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_EMPCAPFODE_CREATE

EMPLOYEENUMBER - Personnel Number

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

FIRSTPAYMENTDATE - First Payment Date

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

FIRSTPAYMENTPERIOD - First Payment Period

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

INTERVALUNIT - Number for Determining Further Payment Dates

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

NEXTPAYMENT - Time Unit for Determining Next Payment

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

NUMBERCONTRIBUTION - Number of ER Contributions

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

PAYEEKEY - Payee Key for Bank Transfers

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

PAYEE - Payee Text

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

ZIPCODE - Postal Code

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

CITY - Location

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

BANKCOUNTRY - Country Key of Bank

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

LOCKINDICATOR - Lock Indicator for HR Master Data Record

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

BANKNUMBER - Bank Number

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

BANKACCOUNTNUMBER - Bank Account Number

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

PURPOSE - Purpose of Bank Transfers

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

TRANSFERINDICATOR - Transfer Indicator

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

PAYMENTPRIORITY - Payment Priority

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

ASSETTYPE - Type of Investment/Asset for Capital Formation

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

EMPLCONTRIBUTION - Employer's Contribution to Savings Plan

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

INVESTCONFIRMATION - Investment Confirmation

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

INDTAXCONFIRM - Indicator: Tax Confirmation

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

PROCESSINGTYPE - Processing Type of Capital Formation Record

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

VALIDITYBEGIN - Valid from Date

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

INDCONTINUEDPAYM - Indicator: Continued Payment w/o Payment Amount

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

CURRENCY - Currency of Savings Deposit

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

PAYMENTMETHOD - Payment Method

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

NO_COMMIT - 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: BAPIP0010-ENDDA
Optional: No
Call by Reference: No ( called with pass by value option)

CONTRACTNUMBER - Regular Contract for Capital Formation

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

WAGETYPE - Wage Type

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

OPERATIONINDICATOR - Operation Indicator for Wage Types

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

AMOUNT - Amount for Capital Formation

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

SPECIALRULE - Special Rule for Capital Formation

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

EXPORTING Parameters details for BAPI_EMPCAPFODE_CREATE

RETURN - Return Parameter

Data type: BAPIRETURN1
Optional: No
Call by Reference: No ( called with pass by value option)

REMPLOYEENUMBER - Personnel Number

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

RSUBTYPE - Subtype

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

ROBJECTID - Object Identification

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

RLOCKINDICATOR - Lock Indicator for HR Master Data Record

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

RVALIDITYBEGIN - Valid from Date

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

RVALIDITYEND - Valid to Date

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

RECORDNUMBER - Number of Infotype Record with Same Key

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

Copy and paste ABAP code example for BAPI_EMPCAPFODE_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 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_EMPCAPFODE_CREATE'  "Create CFS
    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_EMPCAPFODE_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_EMPCAPFODE_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 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



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!