SAP FAGL_LOAD_GCD Function Module for Load GCD Revision Structure Data
FAGL_LOAD_GCD is a standard fagl load gcd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Load GCD Revision Structure Data 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 fagl load gcd FM, simply by entering the name FAGL_LOAD_GCD into the relevant SAP transaction such as SE37 or SE38.
Function Group: FAGL_FSV_GCD
Program Name: SAPLFAGL_FSV_GCD
Main Program: SAPLFAGL_FSV_GCD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FAGL_LOAD_GCD 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_LOAD_GCD'"Load GCD Revision Structure Data.
EXPORTING
I_GCDDATE = "Fiscal Year
I_REPORTER = "GCD reporter
I_REVISION = "Version
IMPORTING
EV_XAUTO = "Indicator: automatically allocate item keys
ET_GCDPC = "Fin. Statement Version: Items in Financial Statement Version
ET_GCDVC = "Finanical Statement Version: Contra Items
ET_GCDNC = "F/S Version: Technical Names for F/S Items
ET_GCDTC = "Fin. Statement Version: Assignment of FS Items to G/L Accts
ET_GCDDC = "Fin. Statement Version: Assignment of FS Items to G/L Accts
EXCEPTIONS
NOT_FOUND = 1 POS_NOT_FOUND = 2 LANGU_NOT_FOUND = 3
IMPORTING Parameters details for FAGL_LOAD_GCD
I_GCDDATE - Fiscal Year
Data type: DATSOptional: No
Call by Reference: No ( called with pass by value option)
I_REPORTER - GCD reporter
Data type: FAGL_GCD_REPORTEROptional: No
Call by Reference: No ( called with pass by value option)
I_REVISION - Version
Data type: FAGL_GCD_REVISIONOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FAGL_LOAD_GCD
EV_XAUTO - Indicator: automatically allocate item keys
Data type: XAUTO_011Optional: No
Call by Reference: No ( called with pass by value option)
ET_GCDPC - Fin. Statement Version: Items in Financial Statement Version
Data type: FAGL_T_GCDPC_VEROptional: No
Call by Reference: Yes
ET_GCDVC - Finanical Statement Version: Contra Items
Data type: FAGL_T_GCDVC_VEROptional: No
Call by Reference: Yes
ET_GCDNC - F/S Version: Technical Names for F/S Items
Data type: FAGL_T_GCDNC_VEROptional: No
Call by Reference: Yes
ET_GCDTC - Fin. Statement Version: Assignment of FS Items to G/L Accts
Data type: FAGL_T_GCDTC_VEROptional: No
Call by Reference: Yes
ET_GCDDC - Fin. Statement Version: Assignment of FS Items to G/L Accts
Data type: FAGL_T_GCDDC_VEROptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
POS_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LANGU_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FAGL_LOAD_GCD 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_ev_xauto | TYPE XAUTO_011, " | |||
| lv_i_gcddate | TYPE DATS, " | |||
| lv_not_found | TYPE DATS, " | |||
| lv_et_gcdpc | TYPE FAGL_T_GCDPC_VER, " | |||
| lv_i_reporter | TYPE FAGL_GCD_REPORTER, " | |||
| lv_pos_not_found | TYPE FAGL_GCD_REPORTER, " | |||
| lv_et_gcdvc | TYPE FAGL_T_GCDVC_VER, " | |||
| lv_i_revision | TYPE FAGL_GCD_REVISION, " | |||
| lv_langu_not_found | TYPE FAGL_GCD_REVISION, " | |||
| lv_et_gcdnc | TYPE FAGL_T_GCDNC_VER, " | |||
| lv_et_gcdtc | TYPE FAGL_T_GCDTC_VER, " | |||
| lv_et_gcddc | TYPE FAGL_T_GCDDC_VER. " |
|   CALL FUNCTION 'FAGL_LOAD_GCD' "Load GCD Revision Structure Data |
| EXPORTING | ||
| I_GCDDATE | = lv_i_gcddate | |
| I_REPORTER | = lv_i_reporter | |
| I_REVISION | = lv_i_revision | |
| IMPORTING | ||
| EV_XAUTO | = lv_ev_xauto | |
| ET_GCDPC | = lv_et_gcdpc | |
| ET_GCDVC | = lv_et_gcdvc | |
| ET_GCDNC | = lv_et_gcdnc | |
| ET_GCDTC | = lv_et_gcdtc | |
| ET_GCDDC | = lv_et_gcddc | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| POS_NOT_FOUND = 2 | ||
| LANGU_NOT_FOUND = 3 | ||
| . " FAGL_LOAD_GCD | ||
ABAP code using 7.40 inline data declarations to call FM FAGL_LOAD_GCD
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.Search for further information about these or an SAP related objects