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

Function FI_DOCUMENT_PROCESS 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 'FI_DOCUMENT_PROCESS'".
EXPORTING
I_GJAHR = "Fiscal year
* STATUS_OLD = ' ' "
* I_SUBSET = ' ' "Defines subset of components for the FI/CO interface
* I_AWTYP_REV = ' ' "Reversal: Reference Transaction of Document To Be Reversed
I_PROCESS = "Transaction (RWIN)
I_EVENT = "Callup point (RWIN)
* I_AWTYP = ' ' "
* I_AWREF = ' ' "
* I_AWORG = ' ' "
* I_AWSYS = ' ' "
* I_AUGLV = ' ' "
* STATUS_NEW = ' ' "
TABLES
* T_BKPF = "Financial accounting: document header
* T_BSEG = "Financial accounting: line item
* T_BSET = "
* T_BSEGZ = "Financial accounting: line item supplement
* T_DM08R = "
* T_AUSZ3 = "Clearing Information
* T_AUSZ4 = "
* T_ACCIT_EXT = "ACC Document: Additional Item Information
* T_RENUM = "
IMPORTING Parameters details for FI_DOCUMENT_PROCESS
I_GJAHR - Fiscal year
Data type: TRWCA-TOYEAROptional: No
Call by Reference: No ( called with pass by value option)
STATUS_OLD -
Data type: ACCHD-STATUS_OLDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SUBSET - Defines subset of components for the FI/CO interface
Data type: ACCHD-SUBSETDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_AWTYP_REV - Reversal: Reference Transaction of Document To Be Reversed
Data type: AWTYP_REVDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_PROCESS - Transaction (RWIN)
Data type: TRWPR-PROCESSOptional: No
Call by Reference: No ( called with pass by value option)
I_EVENT - Callup point (RWIN)
Data type: TRWPR-EVENTOptional: No
Call by Reference: No ( called with pass by value option)
I_AWTYP -
Data type: ACCHD-AWTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AWREF -
Data type: ACCHD-AWREFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AWORG -
Data type: ACCHD-AWORGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AWSYS -
Data type: ACCHD-AWSYSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AUGLV -
Data type: T041A-AUGLVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STATUS_NEW -
Data type: ACCHD-STATUS_NEWDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FI_DOCUMENT_PROCESS
T_BKPF - Financial accounting: document header
Data type: BKPFOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BSEG - Financial accounting: line item
Data type: BSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BSET -
Data type: BSETOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BSEGZ - Financial accounting: line item supplement
Data type: BSEGZOptional: Yes
Call by Reference: No ( called with pass by value option)
T_DM08R -
Data type: DM08ROptional: Yes
Call by Reference: No ( called with pass by value option)
T_AUSZ3 - Clearing Information
Data type: AUSZ_CLROptional: Yes
Call by Reference: No ( called with pass by value option)
T_AUSZ4 -
Data type: AUSZ_CLR_ASGMTOptional: Yes
Call by Reference: Yes
T_ACCIT_EXT - ACC Document: Additional Item Information
Data type: ACCIT_EXTENSIONOptional: Yes
Call by Reference: Yes
T_RENUM -
Data type: FAA_S_ITEM_RENUMOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FI_DOCUMENT_PROCESS 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_bkpf | TYPE STANDARD TABLE OF BKPF, " | |||
| lv_i_gjahr | TYPE TRWCA-TOYEAR, " | |||
| lv_status_old | TYPE ACCHD-STATUS_OLD, " SPACE | |||
| lv_i_subset | TYPE ACCHD-SUBSET, " SPACE | |||
| lv_i_awtyp_rev | TYPE AWTYP_REV, " SPACE | |||
| lt_t_bseg | TYPE STANDARD TABLE OF BSEG, " | |||
| lv_i_process | TYPE TRWPR-PROCESS, " | |||
| lt_t_bset | TYPE STANDARD TABLE OF BSET, " | |||
| lv_i_event | TYPE TRWPR-EVENT, " | |||
| lv_i_awtyp | TYPE ACCHD-AWTYP, " SPACE | |||
| lt_t_bsegz | TYPE STANDARD TABLE OF BSEGZ, " | |||
| lv_i_awref | TYPE ACCHD-AWREF, " SPACE | |||
| lt_t_dm08r | TYPE STANDARD TABLE OF DM08R, " | |||
| lv_i_aworg | TYPE ACCHD-AWORG, " SPACE | |||
| lt_t_ausz3 | TYPE STANDARD TABLE OF AUSZ_CLR, " | |||
| lv_i_awsys | TYPE ACCHD-AWSYS, " SPACE | |||
| lt_t_ausz4 | TYPE STANDARD TABLE OF AUSZ_CLR_ASGMT, " | |||
| lv_i_auglv | TYPE T041A-AUGLV, " SPACE | |||
| lt_t_accit_ext | TYPE STANDARD TABLE OF ACCIT_EXTENSION, " | |||
| lt_t_renum | TYPE STANDARD TABLE OF FAA_S_ITEM_RENUM, " | |||
| lv_status_new | TYPE ACCHD-STATUS_NEW. " SPACE |
|   CALL FUNCTION 'FI_DOCUMENT_PROCESS' " |
| EXPORTING | ||
| I_GJAHR | = lv_i_gjahr | |
| STATUS_OLD | = lv_status_old | |
| I_SUBSET | = lv_i_subset | |
| I_AWTYP_REV | = lv_i_awtyp_rev | |
| I_PROCESS | = lv_i_process | |
| I_EVENT | = lv_i_event | |
| I_AWTYP | = lv_i_awtyp | |
| I_AWREF | = lv_i_awref | |
| I_AWORG | = lv_i_aworg | |
| I_AWSYS | = lv_i_awsys | |
| I_AUGLV | = lv_i_auglv | |
| STATUS_NEW | = lv_status_new | |
| TABLES | ||
| T_BKPF | = lt_t_bkpf | |
| T_BSEG | = lt_t_bseg | |
| T_BSET | = lt_t_bset | |
| T_BSEGZ | = lt_t_bsegz | |
| T_DM08R | = lt_t_dm08r | |
| T_AUSZ3 | = lt_t_ausz3 | |
| T_AUSZ4 | = lt_t_ausz4 | |
| T_ACCIT_EXT | = lt_t_accit_ext | |
| T_RENUM | = lt_t_renum | |
| . " FI_DOCUMENT_PROCESS | ||
ABAP code using 7.40 inline data declarations to call FM FI_DOCUMENT_PROCESS
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.| "SELECT single TOYEAR FROM TRWCA INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single STATUS_OLD FROM ACCHD INTO @DATA(ld_status_old). | ||||
| DATA(ld_status_old) | = ' '. | |||
| "SELECT single SUBSET FROM ACCHD INTO @DATA(ld_i_subset). | ||||
| DATA(ld_i_subset) | = ' '. | |||
| DATA(ld_i_awtyp_rev) | = ' '. | |||
| "SELECT single PROCESS FROM TRWPR INTO @DATA(ld_i_process). | ||||
| "SELECT single EVENT FROM TRWPR INTO @DATA(ld_i_event). | ||||
| "SELECT single AWTYP FROM ACCHD INTO @DATA(ld_i_awtyp). | ||||
| DATA(ld_i_awtyp) | = ' '. | |||
| "SELECT single AWREF FROM ACCHD INTO @DATA(ld_i_awref). | ||||
| DATA(ld_i_awref) | = ' '. | |||
| "SELECT single AWORG FROM ACCHD INTO @DATA(ld_i_aworg). | ||||
| DATA(ld_i_aworg) | = ' '. | |||
| "SELECT single AWSYS FROM ACCHD INTO @DATA(ld_i_awsys). | ||||
| DATA(ld_i_awsys) | = ' '. | |||
| "SELECT single AUGLV FROM T041A INTO @DATA(ld_i_auglv). | ||||
| DATA(ld_i_auglv) | = ' '. | |||
| "SELECT single STATUS_NEW FROM ACCHD INTO @DATA(ld_status_new). | ||||
| DATA(ld_status_new) | = ' '. | |||
Search for further information about these or an SAP related objects