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

Function FI_DOCUMENT_ARCH_EMU_ARCH_PREP 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_ARCH_EMU_ARCH_PREP'".
EXPORTING
* BUDAT_MAX = SY-DATUM "
CHANGING
* XARCH_CURRENT_GJAHR = "
XARCH_EMU_PROJECT = "
XARCH_PROTECT_GJAHR = "
TABLES
* ISEL_BUKRS = "
* ISEL_GJAHR = "
EXCEPTIONS
NO_ARCHIVING_POSSIBLE = 1
IMPORTING Parameters details for FI_DOCUMENT_ARCH_EMU_ARCH_PREP
BUDAT_MAX -
Data type: BKPF-BUDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FI_DOCUMENT_ARCH_EMU_ARCH_PREP
XARCH_CURRENT_GJAHR -
Data type: DATATYPE-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
XARCH_EMU_PROJECT -
Data type: DATATYPE-BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
XARCH_PROTECT_GJAHR -
Data type: DATATYPE-BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FI_DOCUMENT_ARCH_EMU_ARCH_PREP
ISEL_BUKRS -
Data type: RNG_BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
ISEL_GJAHR -
Data type: RNG_GJAHROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ARCHIVING_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FI_DOCUMENT_ARCH_EMU_ARCH_PREP 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_budat_max | TYPE BKPF-BUDAT, " SY-DATUM | |||
| lt_isel_bukrs | TYPE STANDARD TABLE OF RNG_BUKRS, " | |||
| lv_xarch_current_gjahr | TYPE DATATYPE-BOOLEAN, " | |||
| lv_no_archiving_possible | TYPE DATATYPE, " | |||
| lt_isel_gjahr | TYPE STANDARD TABLE OF RNG_GJAHR, " | |||
| lv_xarch_emu_project | TYPE DATATYPE-BOOLEAN, " | |||
| lv_xarch_protect_gjahr | TYPE DATATYPE-BOOLEAN. " |
|   CALL FUNCTION 'FI_DOCUMENT_ARCH_EMU_ARCH_PREP' " |
| EXPORTING | ||
| BUDAT_MAX | = lv_budat_max | |
| CHANGING | ||
| XARCH_CURRENT_GJAHR | = lv_xarch_current_gjahr | |
| XARCH_EMU_PROJECT | = lv_xarch_emu_project | |
| XARCH_PROTECT_GJAHR | = lv_xarch_protect_gjahr | |
| TABLES | ||
| ISEL_BUKRS | = lt_isel_bukrs | |
| ISEL_GJAHR | = lt_isel_gjahr | |
| EXCEPTIONS | ||
| NO_ARCHIVING_POSSIBLE = 1 | ||
| . " FI_DOCUMENT_ARCH_EMU_ARCH_PREP | ||
ABAP code using 7.40 inline data declarations to call FM FI_DOCUMENT_ARCH_EMU_ARCH_PREP
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 BUDAT FROM BKPF INTO @DATA(ld_budat_max). | ||||
| DATA(ld_budat_max) | = SY-DATUM. | |||
| "SELECT single BOOLEAN FROM DATATYPE INTO @DATA(ld_xarch_current_gjahr). | ||||
| "SELECT single BOOLEAN FROM DATATYPE INTO @DATA(ld_xarch_emu_project). | ||||
| "SELECT single BOOLEAN FROM DATATYPE INTO @DATA(ld_xarch_protect_gjahr). | ||||
Search for further information about these or an SAP related objects