SAP FKK_O_SECURITY_OPEN Function Module for
FKK_O_SECURITY_OPEN is a standard fkk o security open SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 o security open FM, simply by entering the name FKK_O_SECURITY_OPEN 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: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_O_SECURITY_OPEN 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_O_SECURITY_OPEN'".
EXPORTING
X_SECURITY = "Key field
X_WMODE = "Processing Type: 1=Display 2=Change 3=Create
* X_UPD_ONLINE = "Flag: Update directly online
* X_NO_DIALOG = "Indicator: no dialog
* X_AUTO = "Automation data for controlling of object
* X_DB_SEC = "
* X_NO_CHANGE = "Switch to change mode not possible in display mode
* X_NO_OTHER = "Indicator: 'Other object' not permitted
IMPORTING
Y_OBJ = "Object Data
Y_AUTO = "Automation data
EXCEPTIONS
NOT_FOUND = 1 EXISTING = 2 FOREIGN_LOCK = 3 NOT_AUTHORIZED = 4 NUMBER_ERROR = 5 SYSTEM_ERROR = 6
IMPORTING Parameters details for FKK_O_SECURITY_OPEN
X_SECURITY - Key field
Data type: FKK_SEC-SECURITYOptional: No
Call by Reference: No ( called with pass by value option)
X_WMODE - Processing Type: 1=Display 2=Change 3=Create
Data type: TACT-ACTVTOptional: No
Call by Reference: No ( called with pass by value option)
X_UPD_ONLINE - Flag: Update directly online
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_DIALOG - Indicator: no dialog
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
X_AUTO - Automation data for controlling of object
Data type: FKKSE_SECURITY_AUTOOptional: Yes
Call by Reference: Yes
X_DB_SEC -
Data type: FKKSE_SECOptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_CHANGE - Switch to change mode not possible in display mode
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
X_NO_OTHER - Indicator: 'Other object' not permitted
Data type: SY-DATAROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_O_SECURITY_OPEN
Y_OBJ - Object Data
Data type: FKKSE_SECURITYOptional: No
Call by Reference: Yes
Y_AUTO - Automation data
Data type: FKKSE_SECURITY_AUTOOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Object Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXISTING - Object Already Exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FOREIGN_LOCK - Object is currently locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_AUTHORIZED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NUMBER_ERROR - Error in number assignment
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_ERROR - General system error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_O_SECURITY_OPEN 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_y_obj | TYPE FKKSE_SECURITY, " | |||
| lv_not_found | TYPE FKKSE_SECURITY, " | |||
| lv_x_security | TYPE FKK_SEC-SECURITY, " | |||
| lv_y_auto | TYPE FKKSE_SECURITY_AUTO, " | |||
| lv_x_wmode | TYPE TACT-ACTVT, " | |||
| lv_existing | TYPE TACT, " | |||
| lv_foreign_lock | TYPE TACT, " | |||
| lv_x_upd_online | TYPE SY-DATAR, " | |||
| lv_x_no_dialog | TYPE SY-DATAR, " | |||
| lv_not_authorized | TYPE SY, " | |||
| lv_x_auto | TYPE FKKSE_SECURITY_AUTO, " | |||
| lv_number_error | TYPE FKKSE_SECURITY_AUTO, " | |||
| lv_x_db_sec | TYPE FKKSE_SEC, " | |||
| lv_system_error | TYPE FKKSE_SEC, " | |||
| lv_x_no_change | TYPE SY-DATAR, " | |||
| lv_x_no_other | TYPE SY-DATAR. " |
|   CALL FUNCTION 'FKK_O_SECURITY_OPEN' " |
| EXPORTING | ||
| X_SECURITY | = lv_x_security | |
| X_WMODE | = lv_x_wmode | |
| X_UPD_ONLINE | = lv_x_upd_online | |
| X_NO_DIALOG | = lv_x_no_dialog | |
| X_AUTO | = lv_x_auto | |
| X_DB_SEC | = lv_x_db_sec | |
| X_NO_CHANGE | = lv_x_no_change | |
| X_NO_OTHER | = lv_x_no_other | |
| IMPORTING | ||
| Y_OBJ | = lv_y_obj | |
| Y_AUTO | = lv_y_auto | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| EXISTING = 2 | ||
| FOREIGN_LOCK = 3 | ||
| NOT_AUTHORIZED = 4 | ||
| NUMBER_ERROR = 5 | ||
| SYSTEM_ERROR = 6 | ||
| . " FKK_O_SECURITY_OPEN | ||
ABAP code using 7.40 inline data declarations to call FM FKK_O_SECURITY_OPEN
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 ACTVT FROM TACT INTO @DATA(ld_x_wmode). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_upd_online). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_no_dialog). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_no_change). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_x_no_other). | ||||
Search for further information about these or an SAP related objects