SAP CONFIRMATION_INITIALIZE Function Module for Initialize Release (Search Status and Create Release Info Record)
CONFIRMATION_INITIALIZE is a standard confirmation initialize SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialize Release (Search Status and Create Release Info Record) 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 confirmation initialize FM, simply by entering the name CONFIRMATION_INITIALIZE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVZLWF
Program Name: SAPLFVZLWF
Main Program: SAPLFVZLWF
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CONFIRMATION_INITIALIZE 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 'CONFIRMATION_INITIALIZE'"Initialize Release (Search Status and Create Release Info Record).
EXPORTING
* FGOBJ = ' ' "Release Object
* BEGRU = ' ' "Berechtigungsgruppe (falls in fachl. Daten vorh)
* TEXT15 = ' ' "ergänzende Angaben möglich
* TEXT50 = ' ' "ergänzende Angaben möglich
* VERARBFKT = 'I' "Verarbeitungsfunktion: I=Insert, U=Update, D=Delete
* FLG_NO_UPDATE_VZFGD = ' ' "Simulation - ohne Verbuchung Freigabedaten
* UPDATE_TASK = 'X' "Verbuchung in Update Task: TRUE (='X') und FALSE (=' ')
* LOGHANDLE = ' ' "BAL-Handle mit Verstößen gegen Produktprofil
* RELSUBOBJ = "Activities Relevant for the Release Procedure
* SRELEASE = ' ' "Freigabe nur bei Verstoß gegen Produktrofil (Loghandle not initial)
* KEY = "Schlüssel zum Freigabeobjekt
* KEYERGAENZUNG = ' ' "Schlüsselergänzung
* BUKRS = ' ' "Company Code
* SPARAM1 = ' ' "Parameter 1
* SPARAM2 = ' ' "Parameter 2
* SCHWRT = 0 "Threshold Value
* WAERS = ' ' "Currency Key
* AMOUNT = "Mapping fuer Freigabebetrag
IMPORTING
FGKZ = "Freigabesperrkennzeichen
FGST = "Release Status
EXCEPTIONS
FGOBJ_NOT_FOUND = 1 READ_ERROR = 2
IMPORTING Parameters details for CONFIRMATION_INITIALIZE
FGOBJ - Release Object
Data type: TZFO-SFGOBJDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
BEGRU - Berechtigungsgruppe (falls in fachl. Daten vorh)
Data type: VDARL-BEGRUDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT15 - ergänzende Angaben möglich
Data type: VZFGD-XTEXT15Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT50 - ergänzende Angaben möglich
Data type: VZFGD-XTEXT50Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERARBFKT - Verarbeitungsfunktion: I=Insert, U=Update, D=Delete
Data type: CDefault: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_NO_UPDATE_VZFGD - Simulation - ohne Verbuchung Freigabedaten
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
UPDATE_TASK - Verbuchung in Update Task: TRUE (='X') und FALSE (=' ')
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOGHANDLE - BAL-Handle mit Verstößen gegen Produktprofil
Data type: BALDAT-LOG_HANDLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RELSUBOBJ - Activities Relevant for the Release Procedure
Data type: TRTY_REL_SUBOBJOptional: Yes
Call by Reference: No ( called with pass by value option)
SRELEASE - Freigabe nur bei Verstoß gegen Produktrofil (Loghandle not initial)
Data type: TZPA_ADDFUNC-SRELEASEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY - Schlüssel zum Freigabeobjekt
Data type: VZFGD-SKEY1Optional: Yes
Call by Reference: No ( called with pass by value option)
KEYERGAENZUNG - Schlüsselergänzung
Data type: VZFGD-SKEY2Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUKRS - Company Code
Data type: T001-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPARAM1 - Parameter 1
Data type: TZFSP-SSPARAM1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SPARAM2 - Parameter 2
Data type: TZFSP-SSPARAM2Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SCHWRT - Threshold Value
Data type: TZFSP-BSCHWRTOptional: Yes
Call by Reference: No ( called with pass by value option)
WAERS - Currency Key
Data type: TCURC-WAERSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
AMOUNT - Mapping fuer Freigabebetrag
Data type: BZUSAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CONFIRMATION_INITIALIZE
FGKZ - Freigabesperrkennzeichen
Data type: VZFGD-SFGKZOptional: No
Call by Reference: No ( called with pass by value option)
FGST - Release Status
Data type: TZFS-SFGSTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FGOBJ_NOT_FOUND - Keinen Eintrag für Freigabeobjekt gefunden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
READ_ERROR - Fehler beim Lesen der Tabelle TZFSP
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CONFIRMATION_INITIALIZE 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_fgkz | TYPE VZFGD-SFGKZ, " | |||
| lv_fgobj | TYPE TZFO-SFGOBJ, " SPACE | |||
| lv_fgobj_not_found | TYPE TZFO, " | |||
| lv_begru | TYPE VDARL-BEGRU, " SPACE | |||
| lv_text15 | TYPE VZFGD-XTEXT15, " SPACE | |||
| lv_text50 | TYPE VZFGD-XTEXT50, " SPACE | |||
| lv_verarbfkt | TYPE C, " 'I' | |||
| lv_flg_no_update_vzfgd | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_update_task | TYPE BOOLE-BOOLE, " 'X' | |||
| lv_loghandle | TYPE BALDAT-LOG_HANDLE, " SPACE | |||
| lv_relsubobj | TYPE TRTY_REL_SUBOBJ, " | |||
| lv_srelease | TYPE TZPA_ADDFUNC-SRELEASE, " SPACE | |||
| lv_key | TYPE VZFGD-SKEY1, " | |||
| lv_fgst | TYPE TZFS-SFGST, " | |||
| lv_read_error | TYPE TZFS, " | |||
| lv_keyergaenzung | TYPE VZFGD-SKEY2, " SPACE | |||
| lv_bukrs | TYPE T001-BUKRS, " SPACE | |||
| lv_sparam1 | TYPE TZFSP-SSPARAM1, " SPACE | |||
| lv_sparam2 | TYPE TZFSP-SSPARAM2, " SPACE | |||
| lv_schwrt | TYPE TZFSP-BSCHWRT, " 0 | |||
| lv_waers | TYPE TCURC-WAERS, " SPACE | |||
| lv_amount | TYPE BZUSAGE. " |
|   CALL FUNCTION 'CONFIRMATION_INITIALIZE' "Initialize Release (Search Status and Create Release Info Record) |
| EXPORTING | ||
| FGOBJ | = lv_fgobj | |
| BEGRU | = lv_begru | |
| TEXT15 | = lv_text15 | |
| TEXT50 | = lv_text50 | |
| VERARBFKT | = lv_verarbfkt | |
| FLG_NO_UPDATE_VZFGD | = lv_flg_no_update_vzfgd | |
| UPDATE_TASK | = lv_update_task | |
| LOGHANDLE | = lv_loghandle | |
| RELSUBOBJ | = lv_relsubobj | |
| SRELEASE | = lv_srelease | |
| KEY | = lv_key | |
| KEYERGAENZUNG | = lv_keyergaenzung | |
| BUKRS | = lv_bukrs | |
| SPARAM1 | = lv_sparam1 | |
| SPARAM2 | = lv_sparam2 | |
| SCHWRT | = lv_schwrt | |
| WAERS | = lv_waers | |
| AMOUNT | = lv_amount | |
| IMPORTING | ||
| FGKZ | = lv_fgkz | |
| FGST | = lv_fgst | |
| EXCEPTIONS | ||
| FGOBJ_NOT_FOUND = 1 | ||
| READ_ERROR = 2 | ||
| . " CONFIRMATION_INITIALIZE | ||
ABAP code using 7.40 inline data declarations to call FM CONFIRMATION_INITIALIZE
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 SFGKZ FROM VZFGD INTO @DATA(ld_fgkz). | ||||
| "SELECT single SFGOBJ FROM TZFO INTO @DATA(ld_fgobj). | ||||
| DATA(ld_fgobj) | = ' '. | |||
| "SELECT single BEGRU FROM VDARL INTO @DATA(ld_begru). | ||||
| DATA(ld_begru) | = ' '. | |||
| "SELECT single XTEXT15 FROM VZFGD INTO @DATA(ld_text15). | ||||
| DATA(ld_text15) | = ' '. | |||
| "SELECT single XTEXT50 FROM VZFGD INTO @DATA(ld_text50). | ||||
| DATA(ld_text50) | = ' '. | |||
| DATA(ld_verarbfkt) | = 'I'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_flg_no_update_vzfgd). | ||||
| DATA(ld_flg_no_update_vzfgd) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_update_task). | ||||
| DATA(ld_update_task) | = 'X'. | |||
| "SELECT single LOG_HANDLE FROM BALDAT INTO @DATA(ld_loghandle). | ||||
| DATA(ld_loghandle) | = ' '. | |||
| "SELECT single SRELEASE FROM TZPA_ADDFUNC INTO @DATA(ld_srelease). | ||||
| DATA(ld_srelease) | = ' '. | |||
| "SELECT single SKEY1 FROM VZFGD INTO @DATA(ld_key). | ||||
| "SELECT single SFGST FROM TZFS INTO @DATA(ld_fgst). | ||||
| "SELECT single SKEY2 FROM VZFGD INTO @DATA(ld_keyergaenzung). | ||||
| DATA(ld_keyergaenzung) | = ' '. | |||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs). | ||||
| DATA(ld_bukrs) | = ' '. | |||
| "SELECT single SSPARAM1 FROM TZFSP INTO @DATA(ld_sparam1). | ||||
| DATA(ld_sparam1) | = ' '. | |||
| "SELECT single SSPARAM2 FROM TZFSP INTO @DATA(ld_sparam2). | ||||
| DATA(ld_sparam2) | = ' '. | |||
| "SELECT single BSCHWRT FROM TZFSP INTO @DATA(ld_schwrt). | ||||
| "SELECT single WAERS FROM TCURC INTO @DATA(ld_waers). | ||||
| DATA(ld_waers) | = ' '. | |||
Search for further information about these or an SAP related objects