SAP FC_GET_ACGR Function Module for
FC_GET_ACGR is a standard fc get acgr 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 acgr FM, simply by entering the name FC_GET_ACGR into the relevant SAP transaction such as SE37 or SE38.
Function Group: FC05
Program Name: SAPLFC05
Main Program: SAPLFC05
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FC_GET_ACGR 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_ACGR'".
EXPORTING
* E_BU_FLAG = ' ' "
E_CONGR = "
E_DIMEN = "
E_PERID = "
E_RVERS = "
E_RYEAR = "
TABLES
T_TABLE = "
EXCEPTIONS
NOT_ASSIGNED = 1 NOT_REFHI_FOUND = 2 NOT_TOPCG_FOUND = 3
IMPORTING Parameters details for FC_GET_ACGR
E_BU_FLAG -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
E_CONGR -
Data type: TF180-CONGROptional: No
Call by Reference: No ( called with pass by value option)
E_DIMEN -
Data type: TF150-DIMENOptional: No
Call by Reference: No ( called with pass by value option)
E_PERID -
Data type: TF189-PERIDOptional: No
Call by Reference: No ( called with pass by value option)
E_RVERS -
Data type: TF189-STRVSOptional: No
Call by Reference: No ( called with pass by value option)
E_RYEAR -
Data type: TF189-RYEAROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FC_GET_ACGR
T_TABLE -
Data type: TF188Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_ASSIGNED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_REFHI_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_TOPCG_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FC_GET_ACGR 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: | ||||
| lt_t_table | TYPE STANDARD TABLE OF TF188, " | |||
| lv_e_bu_flag | TYPE TF188, " ' ' | |||
| lv_not_assigned | TYPE TF188, " | |||
| lv_e_congr | TYPE TF180-CONGR, " | |||
| lv_not_refhi_found | TYPE TF180, " | |||
| lv_e_dimen | TYPE TF150-DIMEN, " | |||
| lv_not_topcg_found | TYPE TF150, " | |||
| lv_e_perid | TYPE TF189-PERID, " | |||
| lv_e_rvers | TYPE TF189-STRVS, " | |||
| lv_e_ryear | TYPE TF189-RYEAR. " |
|   CALL FUNCTION 'FC_GET_ACGR' " |
| EXPORTING | ||
| E_BU_FLAG | = lv_e_bu_flag | |
| E_CONGR | = lv_e_congr | |
| E_DIMEN | = lv_e_dimen | |
| E_PERID | = lv_e_perid | |
| E_RVERS | = lv_e_rvers | |
| E_RYEAR | = lv_e_ryear | |
| TABLES | ||
| T_TABLE | = lt_t_table | |
| EXCEPTIONS | ||
| NOT_ASSIGNED = 1 | ||
| NOT_REFHI_FOUND = 2 | ||
| NOT_TOPCG_FOUND = 3 | ||
| . " FC_GET_ACGR | ||
ABAP code using 7.40 inline data declarations to call FM FC_GET_ACGR
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_bu_flag) | = ' '. | |||
| "SELECT single CONGR FROM TF180 INTO @DATA(ld_e_congr). | ||||
| "SELECT single DIMEN FROM TF150 INTO @DATA(ld_e_dimen). | ||||
| "SELECT single PERID FROM TF189 INTO @DATA(ld_e_perid). | ||||
| "SELECT single STRVS FROM TF189 INTO @DATA(ld_e_rvers). | ||||
| "SELECT single RYEAR FROM TF189 INTO @DATA(ld_e_ryear). | ||||
Search for further information about these or an SAP related objects