SAP GLE_MCA_GENL_GET_ACCOUNTS Function Module for Get Accounts









GLE_MCA_GENL_GET_ACCOUNTS is a standard gle mca genl get accounts SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Accounts 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 gle mca genl get accounts FM, simply by entering the name GLE_MCA_GENL_GET_ACCOUNTS into the relevant SAP transaction such as SE37 or SE38.

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



Function GLE_MCA_GENL_GET_ACCOUNTS 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 'GLE_MCA_GENL_GET_ACCOUNTS'"Get Accounts
EXPORTING
I_STR_TMCAVARA = "Structure tmcavara
* I_STR_FREE_SEL = "Free selections ( = RSDS_TYPE)
* I_KOART = 'S' "Account Type
I_KTOPL = "Chart of Accounts
I_PRCCAT = "GL Enhancement MCA Process Category
I_BALANCE_BASED = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
I_TAB_TMCAPRC = "Table GLE_MCA_TMACAPRC - Assignm. ProcTyp MCA Key ProcCat
I_TAB_TPRCTYPP = "Table GLE_MVA_TPRCTYPE - Process type properties
I_TAB_T030H = "Table GLE_MCA_T030H - Accounts table
* I_TAB_SEL_PAR = "Parameters and Select Options

IMPORTING
E_TAB_ACCOUNT = "GLE MCA Table Type for Account
E_TAB_RETURN = "Return Parameter
E_ERRORS = "Boolean Variable (X=True, -=False, Space=Unknown)
.



IMPORTING Parameters details for GLE_MCA_GENL_GET_ACCOUNTS

I_STR_TMCAVARA - Structure tmcavara

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

I_STR_FREE_SEL - Free selections ( = RSDS_TYPE)

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

I_KOART - Account Type

Data type: KOART
Default: 'S'
Optional: Yes
Call by Reference: Yes

I_KTOPL - Chart of Accounts

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

I_PRCCAT - GL Enhancement MCA Process Category

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

I_BALANCE_BASED - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

I_TAB_TMCAPRC - Table GLE_MCA_TMACAPRC - Assignm. ProcTyp MCA Key ProcCat

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

I_TAB_TPRCTYPP - Table GLE_MVA_TPRCTYPE - Process type properties

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

I_TAB_T030H - Table GLE_MCA_T030H - Accounts table

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

I_TAB_SEL_PAR - Parameters and Select Options

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

EXPORTING Parameters details for GLE_MCA_GENL_GET_ACCOUNTS

E_TAB_ACCOUNT - GLE MCA Table Type for Account

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

E_TAB_RETURN - Return Parameter

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

E_ERRORS - Boolean Variable (X=True, -=False, Space=Unknown)

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

Copy and paste ABAP code example for GLE_MCA_GENL_GET_ACCOUNTS 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_e_tab_account  TYPE GLE_MCA_TAB_ACCOUNT, "   
lv_i_str_tmcavara  TYPE GLE_MCA_STR_TMCAVARA, "   
lv_i_str_free_sel  TYPE GLE_MCA_STR_FREE_SELECTIONS, "   
lv_i_koart  TYPE KOART, "   'S'
lv_e_tab_return  TYPE GLE_MCA_TAB_BAPIRET2, "   
lv_i_ktopl  TYPE KTOPL, "   
lv_e_errors  TYPE ABAP_BOOL, "   
lv_i_prccat  TYPE GLE_MCA_DTE_TPRC_CAT, "   
lv_i_balance_based  TYPE BOOLE_D, "   
lv_i_tab_tmcaprc  TYPE GLE_MCA_TAB_TMCAPRC, "   
lv_i_tab_tprctypp  TYPE GLE_MCA_TAB_TPRCTYPP, "   
lv_i_tab_t030h  TYPE GLE_MCA_TAB_T030H, "   
lv_i_tab_sel_par  TYPE RSPARAMS_TT. "   

  CALL FUNCTION 'GLE_MCA_GENL_GET_ACCOUNTS'  "Get Accounts
    EXPORTING
         I_STR_TMCAVARA = lv_i_str_tmcavara
         I_STR_FREE_SEL = lv_i_str_free_sel
         I_KOART = lv_i_koart
         I_KTOPL = lv_i_ktopl
         I_PRCCAT = lv_i_prccat
         I_BALANCE_BASED = lv_i_balance_based
         I_TAB_TMCAPRC = lv_i_tab_tmcaprc
         I_TAB_TPRCTYPP = lv_i_tab_tprctypp
         I_TAB_T030H = lv_i_tab_t030h
         I_TAB_SEL_PAR = lv_i_tab_sel_par
    IMPORTING
         E_TAB_ACCOUNT = lv_e_tab_account
         E_TAB_RETURN = lv_e_tab_return
         E_ERRORS = lv_e_errors
. " GLE_MCA_GENL_GET_ACCOUNTS




ABAP code using 7.40 inline data declarations to call FM GLE_MCA_GENL_GET_ACCOUNTS

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_koart) = 'S'.
 
 
 
 
 
 
 
 
 
 


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!