SAP FM_GL_ACCOUNT_DERIVE Function Module for
FM_GL_ACCOUNT_DERIVE is a standard fm gl account derive 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 fm gl account derive FM, simply by entering the name FM_GL_ACCOUNT_DERIVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMGLACC_DERIVE
Program Name: SAPLFMGLACC_DERIVE
Main Program: SAPLFMGLACC_DERIVE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_GL_ACCOUNT_DERIVE 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 'FM_GL_ACCOUNT_DERIVE'".
EXPORTING
I_F_ACCHD = "Accounting Document Header
I_F_ACCIT = "Accounting Document Segment
* I_T_ACCCR = "Accounting Interface: Currency Information
* I_FLG_USE_TRACE = "Checkbox
* I_FLG_BUFFER = 'X' "
IMPORTING
E_F_ACCIT = "Accounting Document Segment
EXCEPTIONS
WRONG_INPUT = 1 NO_NEW_LINE = 2 PROBLEMS_OCCURRED = 3
IMPORTING Parameters details for FM_GL_ACCOUNT_DERIVE
I_F_ACCHD - Accounting Document Header
Data type: ACCHDOptional: No
Call by Reference: Yes
I_F_ACCIT - Accounting Document Segment
Data type: ACCITOptional: No
Call by Reference: Yes
I_T_ACCCR - Accounting Interface: Currency Information
Data type: ACCCR_TABOptional: Yes
Call by Reference: Yes
I_FLG_USE_TRACE - Checkbox
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_BUFFER -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FM_GL_ACCOUNT_DERIVE
E_F_ACCIT - Accounting Document Segment
Data type: ACCITOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_NEW_LINE - No Derivation
Data type:Optional: No
Call by Reference: Yes
PROBLEMS_OCCURRED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FM_GL_ACCOUNT_DERIVE 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_f_accit | TYPE ACCIT, " | |||
| lv_i_f_acchd | TYPE ACCHD, " | |||
| lv_wrong_input | TYPE ACCHD, " | |||
| lv_i_f_accit | TYPE ACCIT, " | |||
| lv_no_new_line | TYPE ACCIT, " | |||
| lv_i_t_acccr | TYPE ACCCR_TAB, " | |||
| lv_problems_occurred | TYPE ACCCR_TAB, " | |||
| lv_i_flg_use_trace | TYPE XFELD, " | |||
| lv_i_flg_buffer | TYPE XFELD. " 'X' |
|   CALL FUNCTION 'FM_GL_ACCOUNT_DERIVE' " |
| EXPORTING | ||
| I_F_ACCHD | = lv_i_f_acchd | |
| I_F_ACCIT | = lv_i_f_accit | |
| I_T_ACCCR | = lv_i_t_acccr | |
| I_FLG_USE_TRACE | = lv_i_flg_use_trace | |
| I_FLG_BUFFER | = lv_i_flg_buffer | |
| IMPORTING | ||
| E_F_ACCIT | = lv_e_f_accit | |
| EXCEPTIONS | ||
| WRONG_INPUT = 1 | ||
| NO_NEW_LINE = 2 | ||
| PROBLEMS_OCCURRED = 3 | ||
| . " FM_GL_ACCOUNT_DERIVE | ||
ABAP code using 7.40 inline data declarations to call FM FM_GL_ACCOUNT_DERIVE
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_flg_buffer) | = 'X'. | |||
Search for further information about these or an SAP related objects