SAP ARCHIVE_OPEN_FOR_SPLIT Function Module for









ARCHIVE_OPEN_FOR_SPLIT is a standard archive open for split 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 archive open for split FM, simply by entering the name ARCHIVE_OPEN_FOR_SPLIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: ARCH
Program Name: SAPLARCH
Main Program: SAPLARCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ARCHIVE_OPEN_FOR_SPLIT 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 'ARCHIVE_OPEN_FOR_SPLIT'"
EXPORTING
OBJECT = "
* TEST_MODE = ' ' "
* SESSION = "
* CONV_TO_SNAPSHOT = ' ' "
* EXTRACT_OBJS_WITH_LH = ' ' "

IMPORTING
ARCHIVE_READ_HANDLE = "
ARCHIVE_WRITE_HANDLE = "

EXCEPTIONS
FILE_IO_ERROR = 1 INTERNAL_ERROR = 2 NO_FILES_AVAILABLE = 3 OBJECT_NOT_FOUND = 4 OPEN_ERROR = 5 NOT_AUTHORIZED = 6
.



IMPORTING Parameters details for ARCHIVE_OPEN_FOR_SPLIT

OBJECT -

Data type: ARCH_OBJ-OBJECT
Optional: No
Call by Reference: Yes

TEST_MODE -

Data type: BOOLE_D
Default: SPACE
Optional: No
Call by Reference: Yes

SESSION -

Data type: ADMI_RUN-DOCUMENT
Optional: Yes
Call by Reference: Yes

CONV_TO_SNAPSHOT -

Data type: BOOLE_D
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXTRACT_OBJS_WITH_LH -

Data type: BOOLE_D
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ARCHIVE_OPEN_FOR_SPLIT

ARCHIVE_READ_HANDLE -

Data type: I
Optional: No
Call by Reference: Yes

ARCHIVE_WRITE_HANDLE -

Data type: I
Optional: No
Call by Reference: Yes

EXCEPTIONS details

FILE_IO_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_FILES_AVAILABLE -

Data type:
Optional: No
Call by Reference: Yes

OBJECT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

OPEN_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ARCHIVE_OPEN_FOR_SPLIT 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_object  TYPE ARCH_OBJ-OBJECT, "   
lv_file_io_error  TYPE ARCH_OBJ, "   
lv_archive_read_handle  TYPE I, "   
lv_test_mode  TYPE BOOLE_D, "   SPACE
lv_internal_error  TYPE BOOLE_D, "   
lv_archive_write_handle  TYPE I, "   
lv_session  TYPE ADMI_RUN-DOCUMENT, "   
lv_no_files_available  TYPE ADMI_RUN, "   
lv_conv_to_snapshot  TYPE BOOLE_D, "   SPACE
lv_object_not_found  TYPE BOOLE_D, "   
lv_open_error  TYPE BOOLE_D, "   
lv_extract_objs_with_lh  TYPE BOOLE_D, "   SPACE
lv_not_authorized  TYPE BOOLE_D. "   

  CALL FUNCTION 'ARCHIVE_OPEN_FOR_SPLIT'  "
    EXPORTING
         OBJECT = lv_object
         TEST_MODE = lv_test_mode
         SESSION = lv_session
         CONV_TO_SNAPSHOT = lv_conv_to_snapshot
         EXTRACT_OBJS_WITH_LH = lv_extract_objs_with_lh
    IMPORTING
         ARCHIVE_READ_HANDLE = lv_archive_read_handle
         ARCHIVE_WRITE_HANDLE = lv_archive_write_handle
    EXCEPTIONS
        FILE_IO_ERROR = 1
        INTERNAL_ERROR = 2
        NO_FILES_AVAILABLE = 3
        OBJECT_NOT_FOUND = 4
        OPEN_ERROR = 5
        NOT_AUTHORIZED = 6
. " ARCHIVE_OPEN_FOR_SPLIT




ABAP code using 7.40 inline data declarations to call FM ARCHIVE_OPEN_FOR_SPLIT

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 OBJECT FROM ARCH_OBJ INTO @DATA(ld_object).
 
 
 
DATA(ld_test_mode) = ' '.
 
 
 
"SELECT single DOCUMENT FROM ADMI_RUN INTO @DATA(ld_session).
 
 
DATA(ld_conv_to_snapshot) = ' '.
 
 
 
DATA(ld_extract_objs_with_lh) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!