SAP FKK_S_SECURITY_CHANGE Function Module for EXTERNAL: Change a Security Deposit









FKK_S_SECURITY_CHANGE is a standard fkk s security 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 EXTERNAL: Change a 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 fkk s security change FM, simply by entering the name FKK_S_SECURITY_CHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKK_SEC
Program Name: SAPLFKK_SEC
Main Program: SAPLFKK_SEC
Appliation area: F
Release date: 26-Jul-2004
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_S_SECURITY_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 'FKK_S_SECURITY_CHANGE'"EXTERNAL: Change a Security Deposit
EXPORTING
X_SECURITY = "Security
* X_UPD_ONLINE = "Indicator: Update Online
* X_NO_DIALOG = "Indicator: No Dialog
* X_AUTO = "Automation Data
* X_OBJ = "Object Data (From Previous OPEN Call)
* X_NO_OTHER = "Indicator: Other Object Permitted

IMPORTING
Y_DB_UPDATE = "Indicator: Data Change
Y_NEW_SECURITY = "Security Deposit
Y_EXIT_TYPE = "Return Mode
Y_NEW_SEC = "New Record
Y_CURFIELD = "Name of a Screen Element

EXCEPTIONS
NOT_FOUND = 1 FOREIGN_LOCK = 2 NOT_AUTHORIZED = 3 GENERAL_FAULT = 4 INPUT_ERROR = 5
.



IMPORTING Parameters details for FKK_S_SECURITY_CHANGE

X_SECURITY - Security

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

X_UPD_ONLINE - Indicator: Update Online

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

X_NO_DIALOG - Indicator: No Dialog

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

X_AUTO - Automation Data

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

X_OBJ - Object Data (From Previous OPEN Call)

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

X_NO_OTHER - Indicator: Other Object Permitted

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

EXPORTING Parameters details for FKK_S_SECURITY_CHANGE

Y_DB_UPDATE - Indicator: Data Change

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

Y_NEW_SECURITY - Security Deposit

Data type: FKK_SEC-SECURITY
Optional: No
Call by Reference: Yes

Y_EXIT_TYPE - Return Mode

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

Y_NEW_SEC - New Record

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

Y_CURFIELD - Name of a Screen Element

Data type: FELD-NAME
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND - Object Does Not Exist

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

FOREIGN_LOCK - Object Currently Locked

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

NOT_AUTHORIZED - No Authorization

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

GENERAL_FAULT - General Error

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

INPUT_ERROR - Error During Entry Check

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

Copy and paste ABAP code example for FKK_S_SECURITY_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:
lv_not_found  TYPE STRING, "   
lv_x_security  TYPE FKK_SEC-SECURITY, "   
lv_y_db_update  TYPE SY-DATAR, "   
lv_foreign_lock  TYPE SY, "   
lv_x_upd_online  TYPE SY-DATAR, "   
lv_y_new_security  TYPE FKK_SEC-SECURITY, "   
lv_x_no_dialog  TYPE SY-DATAR, "   
lv_y_exit_type  TYPE EENO_GEN-OKCODE, "   
lv_not_authorized  TYPE EENO_GEN, "   
lv_x_auto  TYPE FKKSE_SECURITY_AUTO, "   
lv_y_new_sec  TYPE FKKSE_SEC, "   
lv_general_fault  TYPE FKKSE_SEC, "   
lv_x_obj  TYPE FKKSE_SECURITY, "   
lv_y_curfield  TYPE FELD-NAME, "   
lv_input_error  TYPE FELD, "   
lv_x_no_other  TYPE SY-DATAR. "   

  CALL FUNCTION 'FKK_S_SECURITY_CHANGE'  "EXTERNAL: Change a Security Deposit
    EXPORTING
         X_SECURITY = lv_x_security
         X_UPD_ONLINE = lv_x_upd_online
         X_NO_DIALOG = lv_x_no_dialog
         X_AUTO = lv_x_auto
         X_OBJ = lv_x_obj
         X_NO_OTHER = lv_x_no_other
    IMPORTING
         Y_DB_UPDATE = lv_y_db_update
         Y_NEW_SECURITY = lv_y_new_security
         Y_EXIT_TYPE = lv_y_exit_type
         Y_NEW_SEC = lv_y_new_sec
         Y_CURFIELD = lv_y_curfield
    EXCEPTIONS
        NOT_FOUND = 1
        FOREIGN_LOCK = 2
        NOT_AUTHORIZED = 3
        GENERAL_FAULT = 4
        INPUT_ERROR = 5
. " FKK_S_SECURITY_CHANGE




ABAP code using 7.40 inline data declarations to call FM FKK_S_SECURITY_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 SECURITY FROM FKK_SEC INTO @DATA(ld_x_security).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_y_db_update).
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_x_upd_online).
 
"SELECT single SECURITY FROM FKK_SEC INTO @DATA(ld_y_new_security).
 
"SELECT single DATAR FROM SY INTO @DATA(ld_x_no_dialog).
 
"SELECT single OKCODE FROM EENO_GEN INTO @DATA(ld_y_exit_type).
 
 
 
 
 
 
"SELECT single NAME FROM FELD INTO @DATA(ld_y_curfield).
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_x_no_other).
 


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!