SAP FREIGABE_GET_INITSTATUS Function Module for Release Procedure: DETERMINE INITIALSTATUS









FREIGABE_GET_INITSTATUS is a standard freigabe get initstatus SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Release Procedure: DETERMINE INITIALSTATUS 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 freigabe get initstatus FM, simply by entering the name FREIGABE_GET_INITSTATUS into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVZL
Program Name: SAPLFVZL
Main Program: SAPLFVZL
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FREIGABE_GET_INITSTATUS 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 'FREIGABE_GET_INITSTATUS'"Release Procedure: DETERMINE INITIALSTATUS
EXPORTING
* BUKRS = ' ' "Company Code
* FGOBJ = ' ' "Release Object
* AMOUNT = 0 "Threshold Value
* SPARAM1 = ' ' "Parameter Value 1
* SPARAM2 = ' ' "Parameter Value 2
* WAERS = ' ' "Currency Key

IMPORTING
FGST = "Release Status

EXCEPTIONS
ERROR_FOUND = 1 FGOBJ_NOT_FOUND = 2
.



IMPORTING Parameters details for FREIGABE_GET_INITSTATUS

BUKRS - Company Code

Data type: T001-BUKRS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FGOBJ - Release Object

Data type: TZFO-SFGOBJ
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

AMOUNT - Threshold Value

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

SPARAM1 - Parameter Value 1

Data type: TZFSP-SSPARAM1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPARAM2 - Parameter Value 2

Data type: TZFSP-SSPARAM2
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAERS - Currency Key

Data type: TCURC-WAERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FREIGABE_GET_INITSTATUS

FGST - Release Status

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

EXCEPTIONS details

ERROR_FOUND - Fehler bei der Bestimmung des Status

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

FGOBJ_NOT_FOUND - keinen Eintrag zu Freigabeobjekt gefunden

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

Copy and paste ABAP code example for FREIGABE_GET_INITSTATUS 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_fgst  TYPE TZFS-SFGST, "   
lv_bukrs  TYPE T001-BUKRS, "   SPACE
lv_error_found  TYPE T001, "   
lv_fgobj  TYPE TZFO-SFGOBJ, "   SPACE
lv_fgobj_not_found  TYPE TZFO, "   
lv_amount  TYPE BZUSAGE, "   0
lv_sparam1  TYPE TZFSP-SSPARAM1, "   SPACE
lv_sparam2  TYPE TZFSP-SSPARAM2, "   SPACE
lv_waers  TYPE TCURC-WAERS. "   SPACE

  CALL FUNCTION 'FREIGABE_GET_INITSTATUS'  "Release Procedure: DETERMINE INITIALSTATUS
    EXPORTING
         BUKRS = lv_bukrs
         FGOBJ = lv_fgobj
         AMOUNT = lv_amount
         SPARAM1 = lv_sparam1
         SPARAM2 = lv_sparam2
         WAERS = lv_waers
    IMPORTING
         FGST = lv_fgst
    EXCEPTIONS
        ERROR_FOUND = 1
        FGOBJ_NOT_FOUND = 2
. " FREIGABE_GET_INITSTATUS




ABAP code using 7.40 inline data declarations to call FM FREIGABE_GET_INITSTATUS

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 SFGST FROM TZFS INTO @DATA(ld_fgst).
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs).
DATA(ld_bukrs) = ' '.
 
 
"SELECT single SFGOBJ FROM TZFO INTO @DATA(ld_fgobj).
DATA(ld_fgobj) = ' '.
 
 
 
"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 WAERS FROM TCURC INTO @DATA(ld_waers).
DATA(ld_waers) = ' '.
 


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!