SAP FAGL_FC_TRA_ACC_DETERMINE Function Module for
FAGL_FC_TRA_ACC_DETERMINE is a standard fagl fc tra acc determine 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 fc tra acc determine FM, simply by entering the name FAGL_FC_TRA_ACC_DETERMINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FAGL_FC_VAL_SELECT
Program Name: SAPLFAGL_FC_VAL_SELECT
Main Program: SAPLFAGL_FC_VAL_SELECT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FAGL_FC_TRA_ACC_DETERMINE 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_FC_TRA_ACC_DETERMINE'".
EXPORTING
ID_CCODE = "Company Code
ID_CURRENCY_KEY = "Currency Key
ID_ACCOUNT = "G/L Account Number
ID_CURRENCY_TYPE = "Currency type and valuation view
ID_VALUATION_AREA = "Valuation area for FI year-end closing
CHANGING
* CD_BAL_ADJUST_ACCOUNT = "G/L Account Number
CD_TRA_GAIN_ACCOUNT = "G/L Account Number
CD_TRA_GAIN_CLEAR_ACC = "G/L Account Number
CD_TRA_LOSS_ACCOUNT = "G/L Account Number
CD_TRA_LOSS_CLEAR_ACC = "G/L Account Number
CD_OK = "Single-Character Indicator
IMPORTING Parameters details for FAGL_FC_TRA_ACC_DETERMINE
ID_CCODE - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
ID_CURRENCY_KEY - Currency Key
Data type: WAERSOptional: No
Call by Reference: Yes
ID_ACCOUNT - G/L Account Number
Data type: SAKNROptional: No
Call by Reference: Yes
ID_CURRENCY_TYPE - Currency type and valuation view
Data type: CURTPOptional: No
Call by Reference: Yes
ID_VALUATION_AREA - Valuation area for FI year-end closing
Data type: BWBEROptional: No
Call by Reference: Yes
CHANGING Parameters details for FAGL_FC_TRA_ACC_DETERMINE
CD_BAL_ADJUST_ACCOUNT - G/L Account Number
Data type: LKORROptional: Yes
Call by Reference: Yes
CD_TRA_GAIN_ACCOUNT - G/L Account Number
Data type: LHTRAOptional: No
Call by Reference: Yes
CD_TRA_GAIN_CLEAR_ACC - G/L Account Number
Data type: LSTRVOptional: No
Call by Reference: Yes
CD_TRA_LOSS_ACCOUNT - G/L Account Number
Data type: LSTRAOptional: No
Call by Reference: Yes
CD_TRA_LOSS_CLEAR_ACC - G/L Account Number
Data type: LHTRVOptional: No
Call by Reference: Yes
CD_OK - Single-Character Indicator
Data type: CHAR1Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FAGL_FC_TRA_ACC_DETERMINE 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_id_ccode | TYPE BUKRS, " | |||
| lv_cd_bal_adjust_account | TYPE LKORR, " | |||
| lv_id_currency_key | TYPE WAERS, " | |||
| lv_cd_tra_gain_account | TYPE LHTRA, " | |||
| lv_id_account | TYPE SAKNR, " | |||
| lv_cd_tra_gain_clear_acc | TYPE LSTRV, " | |||
| lv_id_currency_type | TYPE CURTP, " | |||
| lv_cd_tra_loss_account | TYPE LSTRA, " | |||
| lv_id_valuation_area | TYPE BWBER, " | |||
| lv_cd_tra_loss_clear_acc | TYPE LHTRV, " | |||
| lv_cd_ok | TYPE CHAR1. " |
|   CALL FUNCTION 'FAGL_FC_TRA_ACC_DETERMINE' " |
| EXPORTING | ||
| ID_CCODE | = lv_id_ccode | |
| ID_CURRENCY_KEY | = lv_id_currency_key | |
| ID_ACCOUNT | = lv_id_account | |
| ID_CURRENCY_TYPE | = lv_id_currency_type | |
| ID_VALUATION_AREA | = lv_id_valuation_area | |
| CHANGING | ||
| CD_BAL_ADJUST_ACCOUNT | = lv_cd_bal_adjust_account | |
| CD_TRA_GAIN_ACCOUNT | = lv_cd_tra_gain_account | |
| CD_TRA_GAIN_CLEAR_ACC | = lv_cd_tra_gain_clear_acc | |
| CD_TRA_LOSS_ACCOUNT | = lv_cd_tra_loss_account | |
| CD_TRA_LOSS_CLEAR_ACC | = lv_cd_tra_loss_clear_acc | |
| CD_OK | = lv_cd_ok | |
| . " FAGL_FC_TRA_ACC_DETERMINE | ||
ABAP code using 7.40 inline data declarations to call FM FAGL_FC_TRA_ACC_DETERMINE
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