SAP SECURITY_DIALOG Function Module for FM Test Dialog
SECURITY_DIALOG is a standard security dialog SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FM Test Dialog 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 security dialog FM, simply by entering the name SECURITY_DIALOG into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVW4
Program Name: SAPLFVW4
Main Program: SAPLFVW4
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SECURITY_DIALOG 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 'SECURITY_DIALOG'"FM Test Dialog.
EXPORTING
* I_SECURITY_NUMBER = "Security ID Number
* I_DIALOG_MODE = 'DISP' "Initial Dialog Mode
* I_FIX_NUMBER = ' ' "One char sign if Security ID is fixed
* I_MODE_CHANGEABLE = 'X' "One char sign if Dialog mode is changeable
EXCEPTIONS
INVALID_SECURITY_NUMBER = 1 INVALID_PARAMETER_COMBINATION = 2
IMPORTING Parameters details for SECURITY_DIALOG
I_SECURITY_NUMBER - Security ID Number
Data type: WP_RANLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DIALOG_MODE - Initial Dialog Mode
Data type: CHAR4Default: 'DISP'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FIX_NUMBER - One char sign if Security ID is fixed
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MODE_CHANGEABLE - One char sign if Dialog mode is changeable
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_SECURITY_NUMBER - Security ID does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_PARAMETER_COMBINATION - Combination of Parameters are not allowed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SECURITY_DIALOG 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_i_security_number | TYPE WP_RANL, " | |||
| lv_invalid_security_number | TYPE WP_RANL, " | |||
| lv_i_dialog_mode | TYPE CHAR4, " 'DISP' | |||
| lv_invalid_parameter_combination | TYPE CHAR4, " | |||
| lv_i_fix_number | TYPE CHAR1, " SPACE | |||
| lv_i_mode_changeable | TYPE CHAR1. " 'X' |
|   CALL FUNCTION 'SECURITY_DIALOG' "FM Test Dialog |
| EXPORTING | ||
| I_SECURITY_NUMBER | = lv_i_security_number | |
| I_DIALOG_MODE | = lv_i_dialog_mode | |
| I_FIX_NUMBER | = lv_i_fix_number | |
| I_MODE_CHANGEABLE | = lv_i_mode_changeable | |
| EXCEPTIONS | ||
| INVALID_SECURITY_NUMBER = 1 | ||
| INVALID_PARAMETER_COMBINATION = 2 | ||
| . " SECURITY_DIALOG | ||
ABAP code using 7.40 inline data declarations to call FM SECURITY_DIALOG
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.| DATA(ld_i_dialog_mode) | = 'DISP'. | |||
| DATA(ld_i_fix_number) | = ' '. | |||
| DATA(ld_i_mode_changeable) | = 'X'. | |||
Search for further information about these or an SAP related objects