SAP SECURITY_LOAD Function Module for FM: Load Class Data from the DB
SECURITY_LOAD is a standard security load 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: Load Class Data from the DB 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 load FM, simply by entering the name SECURITY_LOAD into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVW3
Program Name: SAPLFVW3
Main Program: SAPLFVW3
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SECURITY_LOAD 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_LOAD'"FM: Load Class Data from the DB.
EXPORTING
I_RANL = "ID Number
IMPORTING
E_ANLA = "
E_ANAN = "
E_KOPO = "
E_KOPA = "
E_VZGPO = "
E_SKOKO_PERIODS = "
E_SKOKO_PARTLY = "
E_SHARE_CAPITAL = "Table Type for Share Capital
E_RATING = "db_Rating
E_POOLDATA = "Asset Pool Data
E_POOLRATING = "Rating for an Asset Pool
E_AKTI = "
E_POOLREMARKS = "Comments for Asset Pool
E_TIERLEVEL = "Table Type for Tier Level
E_FREE_ATTR = "Security Free Attributes
E_ANLE = "
E_TERM = "
E_DERI = "
E_SKOKO = "
E_ZKOKO = "
E_BONO = "
E_TWX2 = "
EXCEPTIONS
VWPANLE_ENTRY_NOT_FOUND = 1 VWPAKTI_ENTRY_NOT_FOUND = 2 VWPTERM_ENTRY_NOT_FOUND = 3 VWPANLA_ENTRY_NOT_FOUND = 4 VTIDERI_ENTRY_NOT_FOUND = 5
IMPORTING Parameters details for SECURITY_LOAD
I_RANL - ID Number
Data type: VWPANLA-RANLOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SECURITY_LOAD
E_ANLA -
Data type: VWPANLAOptional: No
Call by Reference: Yes
E_ANAN -
Data type: SECURITY_DB_VWPANANOptional: No
Call by Reference: Yes
E_KOPO -
Data type: SECURITY_DB_VZZKOPOOptional: No
Call by Reference: Yes
E_KOPA -
Data type: SECURITY_DB_VZZKOPAOptional: No
Call by Reference: Yes
E_VZGPO -
Data type: SECURITY_DB_VZGPOOptional: No
Call by Reference: Yes
E_SKOKO_PERIODS -
Data type: SECURITY_DB_VZSKOKOOptional: No
Call by Reference: Yes
E_SKOKO_PARTLY -
Data type: SECURITY_DB_VZSKOKOOptional: No
Call by Reference: Yes
E_SHARE_CAPITAL - Table Type for Share Capital
Data type: SECURITY_DB_SHARECAPITALOptional: No
Call by Reference: Yes
E_RATING - db_Rating
Data type: SECURITY_DB_RATINGOptional: No
Call by Reference: Yes
E_POOLDATA - Asset Pool Data
Data type: VWPPOOLDATAOptional: No
Call by Reference: Yes
E_POOLRATING - Rating for an Asset Pool
Data type: VWPPOOLRATINGYOptional: No
Call by Reference: Yes
E_AKTI -
Data type: VWPAKTIOptional: No
Call by Reference: Yes
E_POOLREMARKS - Comments for Asset Pool
Data type: VWPPOOLREMARKYOptional: No
Call by Reference: Yes
E_TIERLEVEL - Table Type for Tier Level
Data type: VVTIERLEVELYOptional: No
Call by Reference: Yes
E_FREE_ATTR - Security Free Attributes
Data type: VWPT_FREE_ATTROptional: No
Call by Reference: Yes
E_ANLE -
Data type: VWPANLEOptional: No
Call by Reference: Yes
E_TERM -
Data type: VWPTERMOptional: No
Call by Reference: Yes
E_DERI -
Data type: VTIDERIOptional: No
Call by Reference: Yes
E_SKOKO -
Data type: VZSKOKOOptional: No
Call by Reference: Yes
E_ZKOKO -
Data type: VZZKOKOOptional: No
Call by Reference: Yes
E_BONO -
Data type: SECURITY_DB_VWPBONOOptional: No
Call by Reference: Yes
E_TWX2 -
Data type: SECURITY_DB_TWX2Optional: No
Call by Reference: Yes
EXCEPTIONS details
VWPANLE_ENTRY_NOT_FOUND - kein Eintrag in Tabelle VWPANLE
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VWPAKTI_ENTRY_NOT_FOUND - kein Eintrag in Tabelle VWPAKTI
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VWPTERM_ENTRY_NOT_FOUND - kein Eintrag in Tabelle VWPTERM
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VWPANLA_ENTRY_NOT_FOUND - Product Type has Initial Value
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VTIDERI_ENTRY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SECURITY_LOAD 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_e_anla | TYPE VWPANLA, " | |||
| lv_i_ranl | TYPE VWPANLA-RANL, " | |||
| lv_vwpanle_entry_not_found | TYPE VWPANLA, " | |||
| lv_e_anan | TYPE SECURITY_DB_VWPANAN, " | |||
| lv_e_kopo | TYPE SECURITY_DB_VZZKOPO, " | |||
| lv_e_kopa | TYPE SECURITY_DB_VZZKOPA, " | |||
| lv_e_vzgpo | TYPE SECURITY_DB_VZGPO, " | |||
| lv_e_skoko_periods | TYPE SECURITY_DB_VZSKOKO, " | |||
| lv_e_skoko_partly | TYPE SECURITY_DB_VZSKOKO, " | |||
| lv_e_share_capital | TYPE SECURITY_DB_SHARECAPITAL, " | |||
| lv_e_rating | TYPE SECURITY_DB_RATING, " | |||
| lv_e_pooldata | TYPE VWPPOOLDATA, " | |||
| lv_e_poolrating | TYPE VWPPOOLRATINGY, " | |||
| lv_e_akti | TYPE VWPAKTI, " | |||
| lv_vwpakti_entry_not_found | TYPE VWPAKTI, " | |||
| lv_e_poolremarks | TYPE VWPPOOLREMARKY, " | |||
| lv_e_tierlevel | TYPE VVTIERLEVELY, " | |||
| lv_e_free_attr | TYPE VWPT_FREE_ATTR, " | |||
| lv_e_anle | TYPE VWPANLE, " | |||
| lv_vwpterm_entry_not_found | TYPE VWPANLE, " | |||
| lv_e_term | TYPE VWPTERM, " | |||
| lv_vwpanla_entry_not_found | TYPE VWPTERM, " | |||
| lv_e_deri | TYPE VTIDERI, " | |||
| lv_vtideri_entry_not_found | TYPE VTIDERI, " | |||
| lv_e_skoko | TYPE VZSKOKO, " | |||
| lv_e_zkoko | TYPE VZZKOKO, " | |||
| lv_e_bono | TYPE SECURITY_DB_VWPBONO, " | |||
| lv_e_twx2 | TYPE SECURITY_DB_TWX2. " |
|   CALL FUNCTION 'SECURITY_LOAD' "FM: Load Class Data from the DB |
| EXPORTING | ||
| I_RANL | = lv_i_ranl | |
| IMPORTING | ||
| E_ANLA | = lv_e_anla | |
| E_ANAN | = lv_e_anan | |
| E_KOPO | = lv_e_kopo | |
| E_KOPA | = lv_e_kopa | |
| E_VZGPO | = lv_e_vzgpo | |
| E_SKOKO_PERIODS | = lv_e_skoko_periods | |
| E_SKOKO_PARTLY | = lv_e_skoko_partly | |
| E_SHARE_CAPITAL | = lv_e_share_capital | |
| E_RATING | = lv_e_rating | |
| E_POOLDATA | = lv_e_pooldata | |
| E_POOLRATING | = lv_e_poolrating | |
| E_AKTI | = lv_e_akti | |
| E_POOLREMARKS | = lv_e_poolremarks | |
| E_TIERLEVEL | = lv_e_tierlevel | |
| E_FREE_ATTR | = lv_e_free_attr | |
| E_ANLE | = lv_e_anle | |
| E_TERM | = lv_e_term | |
| E_DERI | = lv_e_deri | |
| E_SKOKO | = lv_e_skoko | |
| E_ZKOKO | = lv_e_zkoko | |
| E_BONO | = lv_e_bono | |
| E_TWX2 | = lv_e_twx2 | |
| EXCEPTIONS | ||
| VWPANLE_ENTRY_NOT_FOUND = 1 | ||
| VWPAKTI_ENTRY_NOT_FOUND = 2 | ||
| VWPTERM_ENTRY_NOT_FOUND = 3 | ||
| VWPANLA_ENTRY_NOT_FOUND = 4 | ||
| VTIDERI_ENTRY_NOT_FOUND = 5 | ||
| . " SECURITY_LOAD | ||
ABAP code using 7.40 inline data declarations to call FM SECURITY_LOAD
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 RANL FROM VWPANLA INTO @DATA(ld_i_ranl). | ||||
Search for further information about these or an SAP related objects