SAP FM_RESTORE_ACCIT Function Module for Restore Accounting Interface
FM_RESTORE_ACCIT is a standard fm restore accit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Restore Accounting Interface 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 fm restore accit FM, simply by entering the name FM_RESTORE_ACCIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMFS_E
Program Name: SAPLFMFS_E
Main Program: SAPLFMFS_E
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_RESTORE_ACCIT 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_RESTORE_ACCIT'"Restore Accounting Interface.
EXPORTING
* I_CONTROLS = "OBSOLETE
IMPORTING
ET_LOG = "Log events during Accounting Interface reconstruction
E_FLG_ACCTIT_FOUND = "Single-Character Flag
TABLES
* T_BKPF = "Accounting Document Header
* T_BSEG = "Accounting Document Segment
T_ACCHD = "Interface to Accounting: Header Information
T_ACCIT = "Accounting Interface: Item Information
* T_ACCCR = "Accounting Interface: Currency Information
IMPORTING Parameters details for FM_RESTORE_ACCIT
I_CONTROLS - OBSOLETE
Data type: CHAR20Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FM_RESTORE_ACCIT
ET_LOG - Log events during Accounting Interface reconstruction
Data type: TFMRESTORE_LOGOptional: No
Call by Reference: Yes
E_FLG_ACCTIT_FOUND - Single-Character Flag
Data type: CHAR1Optional: No
Call by Reference: Yes
TABLES Parameters details for FM_RESTORE_ACCIT
T_BKPF - Accounting Document Header
Data type: BKPFOptional: Yes
Call by Reference: Yes
T_BSEG - Accounting Document Segment
Data type: BSEGOptional: Yes
Call by Reference: Yes
T_ACCHD - Interface to Accounting: Header Information
Data type: ACCHDOptional: No
Call by Reference: Yes
T_ACCIT - Accounting Interface: Item Information
Data type: ACCITOptional: No
Call by Reference: Yes
T_ACCCR - Accounting Interface: Currency Information
Data type: ACCCROptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FM_RESTORE_ACCIT 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_et_log | TYPE TFMRESTORE_LOG, " | |||
| lt_t_bkpf | TYPE STANDARD TABLE OF BKPF, " | |||
| lv_i_controls | TYPE CHAR20, " | |||
| lt_t_bseg | TYPE STANDARD TABLE OF BSEG, " | |||
| lv_e_flg_acctit_found | TYPE CHAR1, " | |||
| lt_t_acchd | TYPE STANDARD TABLE OF ACCHD, " | |||
| lt_t_accit | TYPE STANDARD TABLE OF ACCIT, " | |||
| lt_t_acccr | TYPE STANDARD TABLE OF ACCCR. " |
|   CALL FUNCTION 'FM_RESTORE_ACCIT' "Restore Accounting Interface |
| EXPORTING | ||
| I_CONTROLS | = lv_i_controls | |
| IMPORTING | ||
| ET_LOG | = lv_et_log | |
| E_FLG_ACCTIT_FOUND | = lv_e_flg_acctit_found | |
| TABLES | ||
| T_BKPF | = lt_t_bkpf | |
| T_BSEG | = lt_t_bseg | |
| T_ACCHD | = lt_t_acchd | |
| T_ACCIT | = lt_t_accit | |
| T_ACCCR | = lt_t_acccr | |
| . " FM_RESTORE_ACCIT | ||
ABAP code using 7.40 inline data declarations to call FM FM_RESTORE_ACCIT
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