SAP BAPI_CTRACSECURITY_CREATE Function Module for BAPI: Create security deposit
BAPI_CTRACSECURITY_CREATE is a standard bapi ctracsecurity 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 BAPI: Create security deposit 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 ctracsecurity create FM, simply by entering the name BAPI_CTRACSECURITY_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKK_BOR_CSD
Program Name: SAPLFKK_BOR_CSD
Main Program: SAPLFKK_BOR_CSD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_CTRACSECURITY_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_CTRACSECURITY_CREATE'"BAPI: Create security deposit.
EXPORTING
CONT_ACCT = "Contract Account Number
* NON_CASH = "Choose: noncash security deposit
* NC_STATUS = "Noncash security deposit status
* NC_TYPE = "Noncash security deposit category
* NC_REFNO = "Reference number for non-cash security deposit
* NC_EXPIRE = "Expiration date of noncash security deposit
* NC_GUARANTOR = "Guarantor of a noncash security deposit
* NC_PRIVATE = "Indicator: Guarantor is a Private Person
* NC_CONT_ACCT = "Contract Account Number
* NOTESLANG = "Language Key
REQ_REASON = "Reason for Requesting a Security Deposit
* CURRENCY = "Currency Key
* CURRENCY_ISO = "ISO Currency Code
* INT_KEY = "Interest Key
* START_DATE = "Start date for security deposit
* RETURN_DATE = "Return date for security deposit
* EXT_REF_NO = "External Reference Number of Security Deposit
* AUTH_GROUP = "Authorization Group
IMPORTING
SECURITYNUMBER = "Security Deposit
TABLES
REQUESTAMOUNT = "BAPI: Input Structure for Cash Security Deposits (Amount)
* NOTESLINE = "BAPI: Input Structure for the Line Items of Security Notes
RETURN = "Return Parameter(s)
IMPORTING Parameters details for BAPI_CTRACSECURITY_CREATE
CONT_ACCT - Contract Account Number
Data type: BAPIFKKSECH-CONT_ACCTOptional: No
Call by Reference: No ( called with pass by value option)
NON_CASH - Choose: noncash security deposit
Data type: BAPIFKKSECH-NON_CASHOptional: Yes
Call by Reference: No ( called with pass by value option)
NC_STATUS - Noncash security deposit status
Data type: BAPIFKKSECH-NC_STATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
NC_TYPE - Noncash security deposit category
Data type: BAPIFKKSECH-NC_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
NC_REFNO - Reference number for non-cash security deposit
Data type: BAPIFKKSECH-NC_REFNOOptional: Yes
Call by Reference: No ( called with pass by value option)
NC_EXPIRE - Expiration date of noncash security deposit
Data type: BAPIFKKSECH-NC_EXPIREOptional: Yes
Call by Reference: No ( called with pass by value option)
NC_GUARANTOR - Guarantor of a noncash security deposit
Data type: BAPIFKKSECH-NC_GUARANTOROptional: Yes
Call by Reference: No ( called with pass by value option)
NC_PRIVATE - Indicator: Guarantor is a Private Person
Data type: BAPIFKKSECH-NC_PRIVATEOptional: Yes
Call by Reference: No ( called with pass by value option)
NC_CONT_ACCT - Contract Account Number
Data type: BAPIFKKSECH-NC_CONT_ACCTOptional: Yes
Call by Reference: No ( called with pass by value option)
NOTESLANG - Language Key
Data type: BAPIFKKSECH-NOTESLANGOptional: Yes
Call by Reference: No ( called with pass by value option)
REQ_REASON - Reason for Requesting a Security Deposit
Data type: BAPIFKKSECH-REQ_REASONOptional: No
Call by Reference: No ( called with pass by value option)
CURRENCY - Currency Key
Data type: BAPIFKKSECH-CURRENCYOptional: Yes
Call by Reference: No ( called with pass by value option)
CURRENCY_ISO - ISO Currency Code
Data type: BAPIFKKSECH-CURRENCY_ISOOptional: Yes
Call by Reference: No ( called with pass by value option)
INT_KEY - Interest Key
Data type: BAPIFKKSECH-INT_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
START_DATE - Start date for security deposit
Data type: BAPIFKKSECH-START_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN_DATE - Return date for security deposit
Data type: BAPIFKKSECH-RETURN_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXT_REF_NO - External Reference Number of Security Deposit
Data type: BAPIFKKSECH-EXT_REF_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
AUTH_GROUP - Authorization Group
Data type: BAPIFKKSECH-AUTH_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_CTRACSECURITY_CREATE
SECURITYNUMBER - Security Deposit
Data type: BAPIFKKSEC-SEC_NOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_CTRACSECURITY_CREATE
REQUESTAMOUNT - BAPI: Input Structure for Cash Security Deposits (Amount)
Data type: BAPIFKKSECCOptional: No
Call by Reference: Yes
NOTESLINE - BAPI: Input Structure for the Line Items of Security Notes
Data type: BAPIFKKNOTESLINEOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_CTRACSECURITY_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_cont_acct | TYPE BAPIFKKSECH-CONT_ACCT, " | |||
| lt_requestamount | TYPE STANDARD TABLE OF BAPIFKKSECC, " | |||
| lv_securitynumber | TYPE BAPIFKKSEC-SEC_NO, " | |||
| lv_non_cash | TYPE BAPIFKKSECH-NON_CASH, " | |||
| lv_nc_status | TYPE BAPIFKKSECH-NC_STATUS, " | |||
| lv_nc_type | TYPE BAPIFKKSECH-NC_TYPE, " | |||
| lv_nc_refno | TYPE BAPIFKKSECH-NC_REFNO, " | |||
| lv_nc_expire | TYPE BAPIFKKSECH-NC_EXPIRE, " | |||
| lv_nc_guarantor | TYPE BAPIFKKSECH-NC_GUARANTOR, " | |||
| lv_nc_private | TYPE BAPIFKKSECH-NC_PRIVATE, " | |||
| lv_nc_cont_acct | TYPE BAPIFKKSECH-NC_CONT_ACCT, " | |||
| lv_noteslang | TYPE BAPIFKKSECH-NOTESLANG, " | |||
| lt_notesline | TYPE STANDARD TABLE OF BAPIFKKNOTESLINE, " | |||
| lv_req_reason | TYPE BAPIFKKSECH-REQ_REASON, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_currency | TYPE BAPIFKKSECH-CURRENCY, " | |||
| lv_currency_iso | TYPE BAPIFKKSECH-CURRENCY_ISO, " | |||
| lv_int_key | TYPE BAPIFKKSECH-INT_KEY, " | |||
| lv_start_date | TYPE BAPIFKKSECH-START_DATE, " | |||
| lv_return_date | TYPE BAPIFKKSECH-RETURN_DATE, " | |||
| lv_ext_ref_no | TYPE BAPIFKKSECH-EXT_REF_NO, " | |||
| lv_auth_group | TYPE BAPIFKKSECH-AUTH_GROUP. " |
|   CALL FUNCTION 'BAPI_CTRACSECURITY_CREATE' "BAPI: Create security deposit |
| EXPORTING | ||
| CONT_ACCT | = lv_cont_acct | |
| NON_CASH | = lv_non_cash | |
| NC_STATUS | = lv_nc_status | |
| NC_TYPE | = lv_nc_type | |
| NC_REFNO | = lv_nc_refno | |
| NC_EXPIRE | = lv_nc_expire | |
| NC_GUARANTOR | = lv_nc_guarantor | |
| NC_PRIVATE | = lv_nc_private | |
| NC_CONT_ACCT | = lv_nc_cont_acct | |
| NOTESLANG | = lv_noteslang | |
| REQ_REASON | = lv_req_reason | |
| CURRENCY | = lv_currency | |
| CURRENCY_ISO | = lv_currency_iso | |
| INT_KEY | = lv_int_key | |
| START_DATE | = lv_start_date | |
| RETURN_DATE | = lv_return_date | |
| EXT_REF_NO | = lv_ext_ref_no | |
| AUTH_GROUP | = lv_auth_group | |
| IMPORTING | ||
| SECURITYNUMBER | = lv_securitynumber | |
| TABLES | ||
| REQUESTAMOUNT | = lt_requestamount | |
| NOTESLINE | = lt_notesline | |
| RETURN | = lt_return | |
| . " BAPI_CTRACSECURITY_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_CTRACSECURITY_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 CONT_ACCT FROM BAPIFKKSECH INTO @DATA(ld_cont_acct). | ||||
| "SELECT single SEC_NO FROM BAPIFKKSEC INTO @DATA(ld_securitynumber). | ||||
| "SELECT single NON_CASH FROM BAPIFKKSECH INTO @DATA(ld_non_cash). | ||||
| "SELECT single NC_STATUS FROM BAPIFKKSECH INTO @DATA(ld_nc_status). | ||||
| "SELECT single NC_TYPE FROM BAPIFKKSECH INTO @DATA(ld_nc_type). | ||||
| "SELECT single NC_REFNO FROM BAPIFKKSECH INTO @DATA(ld_nc_refno). | ||||
| "SELECT single NC_EXPIRE FROM BAPIFKKSECH INTO @DATA(ld_nc_expire). | ||||
| "SELECT single NC_GUARANTOR FROM BAPIFKKSECH INTO @DATA(ld_nc_guarantor). | ||||
| "SELECT single NC_PRIVATE FROM BAPIFKKSECH INTO @DATA(ld_nc_private). | ||||
| "SELECT single NC_CONT_ACCT FROM BAPIFKKSECH INTO @DATA(ld_nc_cont_acct). | ||||
| "SELECT single NOTESLANG FROM BAPIFKKSECH INTO @DATA(ld_noteslang). | ||||
| "SELECT single REQ_REASON FROM BAPIFKKSECH INTO @DATA(ld_req_reason). | ||||
| "SELECT single CURRENCY FROM BAPIFKKSECH INTO @DATA(ld_currency). | ||||
| "SELECT single CURRENCY_ISO FROM BAPIFKKSECH INTO @DATA(ld_currency_iso). | ||||
| "SELECT single INT_KEY FROM BAPIFKKSECH INTO @DATA(ld_int_key). | ||||
| "SELECT single START_DATE FROM BAPIFKKSECH INTO @DATA(ld_start_date). | ||||
| "SELECT single RETURN_DATE FROM BAPIFKKSECH INTO @DATA(ld_return_date). | ||||
| "SELECT single EXT_REF_NO FROM BAPIFKKSECH INTO @DATA(ld_ext_ref_no). | ||||
| "SELECT single AUTH_GROUP FROM BAPIFKKSECH INTO @DATA(ld_auth_group). | ||||
Search for further information about these or an SAP related objects