SAP BAPI_CTRACSECURITY_CHANGE Function Module for Change Security Deposit









BAPI_CTRACSECURITY_CHANGE is a standard bapi ctracsecurity change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change 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 change FM, simply by entering the name BAPI_CTRACSECURITY_CHANGE 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_CHANGE 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_CHANGE'"Change Security Deposit
EXPORTING
SECURITYNUMBER = "Security Deposit
SECURITYHEADER = "BAPI: Input Structure for Security Deposits (Header)
SECURITYHEADERX = "BAPI: Change Structure for Security Deposits (Header)
* NOTESUPDATEFLAG = "Security Notes Update Flags (Language and Update Type)

TABLES
* REQUESTAMOUNT = "BAPI: Amounts for Security Deposits (Change Indicator)
* NOTESLINE = "BAPI: Input Structure for the Line Items of Security Notes
RETURN = "Return Parameter(s)
.



IMPORTING Parameters details for BAPI_CTRACSECURITY_CHANGE

SECURITYNUMBER - Security Deposit

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

SECURITYHEADER - BAPI: Input Structure for Security Deposits (Header)

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

SECURITYHEADERX - BAPI: Change Structure for Security Deposits (Header)

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

NOTESUPDATEFLAG - Security Notes Update Flags (Language and Update Type)

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

TABLES Parameters details for BAPI_CTRACSECURITY_CHANGE

REQUESTAMOUNT - BAPI: Amounts for Security Deposits (Change Indicator)

Data type: BAPIFKKSECC_CHGCODE
Optional: Yes
Call by Reference: Yes

NOTESLINE - BAPI: Input Structure for the Line Items of Security Notes

Data type: BAPIFKKNOTESLINE
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter(s)

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

Copy and paste ABAP code example for BAPI_CTRACSECURITY_CHANGE 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:
lt_requestamount  TYPE STANDARD TABLE OF BAPIFKKSECC_CHGCODE, "   
lv_securitynumber  TYPE BAPIFKKSEC-SEC_NO, "   
lt_notesline  TYPE STANDARD TABLE OF BAPIFKKNOTESLINE, "   
lv_securityheader  TYPE BAPIFKKSECH, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_securityheaderx  TYPE BAPIFKKSECHX, "   
lv_notesupdateflag  TYPE BAPIFKKNOTESUPDFLG. "   

  CALL FUNCTION 'BAPI_CTRACSECURITY_CHANGE'  "Change Security Deposit
    EXPORTING
         SECURITYNUMBER = lv_securitynumber
         SECURITYHEADER = lv_securityheader
         SECURITYHEADERX = lv_securityheaderx
         NOTESUPDATEFLAG = lv_notesupdateflag
    TABLES
         REQUESTAMOUNT = lt_requestamount
         NOTESLINE = lt_notesline
         RETURN = lt_return
. " BAPI_CTRACSECURITY_CHANGE




ABAP code using 7.40 inline data declarations to call FM BAPI_CTRACSECURITY_CHANGE

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 SEC_NO FROM BAPIFKKSEC INTO @DATA(ld_securitynumber).
 
 
 
 
 
 


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!