SAP FAGL_COMPARE_VZ Function Module for









FAGL_COMPARE_VZ is a standard fagl compare vz 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 fagl compare vz FM, simply by entering the name FAGL_COMPARE_VZ into the relevant SAP transaction such as SE37 or SE38.

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



Function FAGL_COMPARE_VZ 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 'FAGL_COMPARE_VZ'"
EXPORTING
I_GJAHR = "Fiscal Year
* I_RFDT_KEY = "
* I_PSAKO = 'X' "
* I_PPSKO = 'X' "
I_BUKRS = "Ranges Table for Company Codes
I_POPER = "Transfer Table for TFC_VZ_FROM_BSEG
* I_XFLEX = 'X' "
* I_XCOMP = 'X' "
* I_RLDNR = "
* I_GROUP = ' ' "Server Group
* I_COUNT = 8 "Number of Parallel Steps
* I_BLOCK = 10000 "Package Size

IMPORTING
ET_BALANCEDIFF = "Table of Differences in new General Ledger Accounting
ET_CMPOUTPUTLIST = "Internal Table for TFC_CMPOUTPUTLIST
ET_MESSAGES = "Internal Table for TFC_CMPMESSAGE
E_RFDT_KEY = "
ET_MISSING_BUKRS = "

EXCEPTIONS
WRONG_PARAMETER_COMBINATION = 1
.



IMPORTING Parameters details for FAGL_COMPARE_VZ

I_GJAHR - Fiscal Year

Data type: GJAHR
Optional: No
Call by Reference: Yes

I_RFDT_KEY -

Data type: SYCHAR22
Optional: Yes
Call by Reference: Yes

I_PSAKO -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_PPSKO -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_BUKRS - Ranges Table for Company Codes

Data type: ACC_T_RA_BUKRS
Optional: No
Call by Reference: Yes

I_POPER - Transfer Table for TFC_VZ_FROM_BSEG

Data type: FAGL_T_POPER
Optional: No
Call by Reference: Yes

I_XFLEX -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_XCOMP -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_RLDNR -

Data type: FAGL_RANGE_T_RLDNR
Optional: Yes
Call by Reference: Yes

I_GROUP - Server Group

Data type: TFC_RZLLI_ACN
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_COUNT - Number of Parallel Steps

Data type: TFC_PARALLEL
Default: 8
Optional: Yes
Call by Reference: Yes

I_BLOCK - Package Size

Data type: INT4
Default: 10000
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FAGL_COMPARE_VZ

ET_BALANCEDIFF - Table of Differences in new General Ledger Accounting

Data type: FAGL_T_BALANCE_DIFF
Optional: No
Call by Reference: Yes

ET_CMPOUTPUTLIST - Internal Table for TFC_CMPOUTPUTLIST

Data type: TFC_T_CMPOUTPUTLIST
Optional: No
Call by Reference: Yes

ET_MESSAGES - Internal Table for TFC_CMPMESSAGE

Data type: TFC_T_CMPMESSAGE
Optional: No
Call by Reference: Yes

E_RFDT_KEY -

Data type: SYCHAR22
Optional: No
Call by Reference: Yes

ET_MISSING_BUKRS -

Data type: FAGL_T_BUKRS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_PARAMETER_COMBINATION - Wrong Parameter Combination

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

Copy and paste ABAP code example for FAGL_COMPARE_VZ 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_gjahr  TYPE GJAHR, "   
lv_et_balancediff  TYPE FAGL_T_BALANCE_DIFF, "   
lv_wrong_parameter_combination  TYPE FAGL_T_BALANCE_DIFF, "   
lv_i_rfdt_key  TYPE SYCHAR22, "   
lv_i_psako  TYPE CHAR1, "   'X'
lv_i_ppsko  TYPE CHAR1, "   'X'
lv_i_bukrs  TYPE ACC_T_RA_BUKRS, "   
lv_et_cmpoutputlist  TYPE TFC_T_CMPOUTPUTLIST, "   
lv_i_poper  TYPE FAGL_T_POPER, "   
lv_et_messages  TYPE TFC_T_CMPMESSAGE, "   
lv_i_xflex  TYPE CHAR1, "   'X'
lv_e_rfdt_key  TYPE SYCHAR22, "   
lv_i_xcomp  TYPE CHAR1, "   'X'
lv_et_missing_bukrs  TYPE FAGL_T_BUKRS, "   
lv_i_rldnr  TYPE FAGL_RANGE_T_RLDNR, "   
lv_i_group  TYPE TFC_RZLLI_ACN, "   SPACE
lv_i_count  TYPE TFC_PARALLEL, "   8
lv_i_block  TYPE INT4. "   10000

  CALL FUNCTION 'FAGL_COMPARE_VZ'  "
    EXPORTING
         I_GJAHR = lv_i_gjahr
         I_RFDT_KEY = lv_i_rfdt_key
         I_PSAKO = lv_i_psako
         I_PPSKO = lv_i_ppsko
         I_BUKRS = lv_i_bukrs
         I_POPER = lv_i_poper
         I_XFLEX = lv_i_xflex
         I_XCOMP = lv_i_xcomp
         I_RLDNR = lv_i_rldnr
         I_GROUP = lv_i_group
         I_COUNT = lv_i_count
         I_BLOCK = lv_i_block
    IMPORTING
         ET_BALANCEDIFF = lv_et_balancediff
         ET_CMPOUTPUTLIST = lv_et_cmpoutputlist
         ET_MESSAGES = lv_et_messages
         E_RFDT_KEY = lv_e_rfdt_key
         ET_MISSING_BUKRS = lv_et_missing_bukrs
    EXCEPTIONS
        WRONG_PARAMETER_COMBINATION = 1
. " FAGL_COMPARE_VZ




ABAP code using 7.40 inline data declarations to call FM FAGL_COMPARE_VZ

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_psako) = 'X'.
 
DATA(ld_i_ppsko) = 'X'.
 
 
 
 
 
DATA(ld_i_xflex) = 'X'.
 
 
DATA(ld_i_xcomp) = 'X'.
 
 
 
DATA(ld_i_group) = ' '.
 
DATA(ld_i_count) = 8.
 
DATA(ld_i_block) = 10000.
 


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!