SAP FC_GET_VERSIONS Function Module for









FC_GET_VERSIONS is a standard fc get versions 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 fc get versions FM, simply by entering the name FC_GET_VERSIONS into the relevant SAP transaction such as SE37 or SE38.

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



Function FC_GET_VERSIONS 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 'FC_GET_VERSIONS'"
EXPORTING
* E_ERRFLG = '0' "
* E_IND_COIVS = '0' "
* E_IND_INVVS = '0' "
* E_IND_EQUVS = '0' "
* E_IND_GWAVS = '0' "
* E_IND_HIRVS = '0' "
* E_IND_RHRVS = '0' "
* E_IND_ASSVS = '0' "
* E_IND_RCLVS = '0' "
* E_IND_IPIVS = '0' "
* E_IND_ATRVS = '0' "Version: Attributes
E_RVERS = "Consolidation (End-Result) Version
* E_IND_STRVS = '0' "Version: Structures
* E_IND_INPVS = '0' "Version for data entry
* E_IND_CTRVS = '0' "Version: Currency translation method
* E_IND_CURVS = '0' "Version: Exchange rates
* E_IND_LDRVS = '0' "Ledger version
* E_IND_FIXVS = '0' "Version of selected items
* E_IND_TAXVS = '0' "Version: Tax rate

IMPORTING
I_STRVS = "Version: Structures
I_EQUVS = "
I_GWAVS = "
I_HIRVS = "
I_RHRVS = "
I_ASSVS = "
I_RCLVS = "
I_IPIVS = "
I_ATRVS = "
I_SUBRC = "
I_INPVS = "Version for data entry
I_CTRVS = "
I_CURVS = "Version: Exchange rates
I_LDRVS = "Ledger version
I_FIXVS = "Version of selected items
I_TAXVS = "Version: Tax rate
I_COIVS = "
I_INVVS = "
.



IMPORTING Parameters details for FC_GET_VERSIONS

E_ERRFLG -

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

E_IND_COIVS -

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

E_IND_INVVS -

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

E_IND_EQUVS -

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

E_IND_GWAVS -

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

E_IND_HIRVS -

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

E_IND_RHRVS -

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

E_IND_ASSVS -

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

E_IND_RCLVS -

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

E_IND_IPIVS -

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

E_IND_ATRVS - Version: Attributes

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

E_RVERS - Consolidation (End-Result) Version

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

E_IND_STRVS - Version: Structures

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

E_IND_INPVS - Version for data entry

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

E_IND_CTRVS - Version: Currency translation method

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

E_IND_CURVS - Version: Exchange rates

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

E_IND_LDRVS - Ledger version

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

E_IND_FIXVS - Version of selected items

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

E_IND_TAXVS - Version: Tax rate

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

EXPORTING Parameters details for FC_GET_VERSIONS

I_STRVS - Version: Structures

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

I_EQUVS -

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

I_GWAVS -

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

I_HIRVS -

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

I_RHRVS -

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

I_ASSVS -

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

I_RCLVS -

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

I_IPIVS -

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

I_ATRVS -

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

I_SUBRC -

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

I_INPVS - Version for data entry

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

I_CTRVS -

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

I_CURVS - Version: Exchange rates

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

I_LDRVS - Ledger version

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

I_FIXVS - Version of selected items

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

I_TAXVS - Version: Tax rate

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

I_COIVS -

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

I_INVVS -

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

Copy and paste ABAP code example for FC_GET_VERSIONS 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_strvs  TYPE FC02_STRVS, "   
lv_e_errflg  TYPE FC02_STRVS, "   '0'
lv_i_equvs  TYPE FC02_EQUVS, "   
lv_e_ind_coivs  TYPE FC02_EQUVS, "   '0'
lv_i_gwavs  TYPE FC02_GWAVS, "   
lv_e_ind_invvs  TYPE FC02_GWAVS, "   '0'
lv_i_hirvs  TYPE FC02_HIRVS, "   
lv_e_ind_equvs  TYPE FC02_HIRVS, "   '0'
lv_i_rhrvs  TYPE FC02_RHRVS, "   
lv_e_ind_gwavs  TYPE FC02_RHRVS, "   '0'
lv_i_assvs  TYPE FC02_ASSVS, "   
lv_e_ind_hirvs  TYPE FC02_ASSVS, "   '0'
lv_i_rclvs  TYPE FC02_RCLVS, "   
lv_e_ind_rhrvs  TYPE FC02_RCLVS, "   '0'
lv_i_ipivs  TYPE FC02_IPIVS, "   
lv_e_ind_assvs  TYPE FC02_IPIVS, "   '0'
lv_i_atrvs  TYPE FC02_ATRVS, "   
lv_e_ind_rclvs  TYPE FC02_ATRVS, "   '0'
lv_i_subrc  TYPE FC02_ATRVS, "   
lv_e_ind_ipivs  TYPE FC02_ATRVS, "   '0'
lv_e_ind_atrvs  TYPE FC02_ATRVS, "   '0'
lv_e_rvers  TYPE TF200-RVERS, "   
lv_i_inpvs  TYPE FC02_INPVS, "   
lv_i_ctrvs  TYPE FC02_CTRVS, "   
lv_e_ind_strvs  TYPE FC02_CTRVS, "   '0'
lv_i_curvs  TYPE FC02_CURVS, "   
lv_e_ind_inpvs  TYPE FC02_CURVS, "   '0'
lv_i_ldrvs  TYPE FC02_LDRVS, "   
lv_e_ind_ctrvs  TYPE FC02_LDRVS, "   '0'
lv_i_fixvs  TYPE FC02_FIXVS, "   
lv_e_ind_curvs  TYPE FC02_FIXVS, "   '0'
lv_i_taxvs  TYPE FC02_TAXVS, "   
lv_e_ind_ldrvs  TYPE FC02_TAXVS, "   '0'
lv_i_coivs  TYPE FC02_COIVS, "   
lv_e_ind_fixvs  TYPE FC02_COIVS, "   '0'
lv_i_invvs  TYPE FC02_INVVS, "   
lv_e_ind_taxvs  TYPE FC02_INVVS. "   '0'

  CALL FUNCTION 'FC_GET_VERSIONS'  "
    EXPORTING
         E_ERRFLG = lv_e_errflg
         E_IND_COIVS = lv_e_ind_coivs
         E_IND_INVVS = lv_e_ind_invvs
         E_IND_EQUVS = lv_e_ind_equvs
         E_IND_GWAVS = lv_e_ind_gwavs
         E_IND_HIRVS = lv_e_ind_hirvs
         E_IND_RHRVS = lv_e_ind_rhrvs
         E_IND_ASSVS = lv_e_ind_assvs
         E_IND_RCLVS = lv_e_ind_rclvs
         E_IND_IPIVS = lv_e_ind_ipivs
         E_IND_ATRVS = lv_e_ind_atrvs
         E_RVERS = lv_e_rvers
         E_IND_STRVS = lv_e_ind_strvs
         E_IND_INPVS = lv_e_ind_inpvs
         E_IND_CTRVS = lv_e_ind_ctrvs
         E_IND_CURVS = lv_e_ind_curvs
         E_IND_LDRVS = lv_e_ind_ldrvs
         E_IND_FIXVS = lv_e_ind_fixvs
         E_IND_TAXVS = lv_e_ind_taxvs
    IMPORTING
         I_STRVS = lv_i_strvs
         I_EQUVS = lv_i_equvs
         I_GWAVS = lv_i_gwavs
         I_HIRVS = lv_i_hirvs
         I_RHRVS = lv_i_rhrvs
         I_ASSVS = lv_i_assvs
         I_RCLVS = lv_i_rclvs
         I_IPIVS = lv_i_ipivs
         I_ATRVS = lv_i_atrvs
         I_SUBRC = lv_i_subrc
         I_INPVS = lv_i_inpvs
         I_CTRVS = lv_i_ctrvs
         I_CURVS = lv_i_curvs
         I_LDRVS = lv_i_ldrvs
         I_FIXVS = lv_i_fixvs
         I_TAXVS = lv_i_taxvs
         I_COIVS = lv_i_coivs
         I_INVVS = lv_i_invvs
. " FC_GET_VERSIONS




ABAP code using 7.40 inline data declarations to call FM FC_GET_VERSIONS

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_e_errflg) = '0'.
 
 
DATA(ld_e_ind_coivs) = '0'.
 
 
DATA(ld_e_ind_invvs) = '0'.
 
 
DATA(ld_e_ind_equvs) = '0'.
 
 
DATA(ld_e_ind_gwavs) = '0'.
 
 
DATA(ld_e_ind_hirvs) = '0'.
 
 
DATA(ld_e_ind_rhrvs) = '0'.
 
 
DATA(ld_e_ind_assvs) = '0'.
 
 
DATA(ld_e_ind_rclvs) = '0'.
 
 
DATA(ld_e_ind_ipivs) = '0'.
 
DATA(ld_e_ind_atrvs) = '0'.
 
"SELECT single RVERS FROM TF200 INTO @DATA(ld_e_rvers).
 
 
 
DATA(ld_e_ind_strvs) = '0'.
 
 
DATA(ld_e_ind_inpvs) = '0'.
 
 
DATA(ld_e_ind_ctrvs) = '0'.
 
 
DATA(ld_e_ind_curvs) = '0'.
 
 
DATA(ld_e_ind_ldrvs) = '0'.
 
 
DATA(ld_e_ind_fixvs) = '0'.
 
 
DATA(ld_e_ind_taxvs) = '0'.
 


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!