SAP ARCHIVE_INTERRUPT_JOB Function Module for Interrupt Write Job(s)









ARCHIVE_INTERRUPT_JOB is a standard archive interrupt job SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Interrupt Write Job(s) 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 archive interrupt job FM, simply by entering the name ARCHIVE_INTERRUPT_JOB into the relevant SAP transaction such as SE37 or SE38.

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



Function ARCHIVE_INTERRUPT_JOB 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_INTERRUPT_JOB'"Interrupt Write Job(s)
EXPORTING
* OBJECT = ' ' "Archiving Object
* DONT_CHECK_REQS = ' ' "
* CLIENT_INDEPENDENT = ' ' "

IMPORTING
NUMBER_OF_SESSIONS = "Number of Interrupted Sessions

TABLES
* REQUESTED_SESSIONS = "Archiving Sessions That Are to Be Interrupted
* SUCCESSFUL_REQUESTS = "Archiving Sessions That Can Be Interrupted and Will Be Interrupted ASAP
.



IMPORTING Parameters details for ARCHIVE_INTERRUPT_JOB

OBJECT - Archiving Object

Data type: OBJCT_TR01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DONT_CHECK_REQS -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT_INDEPENDENT -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ARCHIVE_INTERRUPT_JOB

NUMBER_OF_SESSIONS - Number of Interrupted Sessions

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ARCHIVE_INTERRUPT_JOB

REQUESTED_SESSIONS - Archiving Sessions That Are to Be Interrupted

Data type: ARCH_SESSN
Optional: Yes
Call by Reference: Yes

SUCCESSFUL_REQUESTS - Archiving Sessions That Can Be Interrupted and Will Be Interrupted ASAP

Data type: ARCH_SESSN
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for ARCHIVE_INTERRUPT_JOB 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 OBJCT_TR01, "   SPACE
lv_number_of_sessions  TYPE I, "   
lt_requested_sessions  TYPE STANDARD TABLE OF ARCH_SESSN, "   
lv_dont_check_reqs  TYPE C, "   ' '
lt_successful_requests  TYPE STANDARD TABLE OF ARCH_SESSN, "   
lv_client_independent  TYPE C. "   ' '

  CALL FUNCTION 'ARCHIVE_INTERRUPT_JOB'  "Interrupt Write Job(s)
    EXPORTING
         OBJECT = lv_object
         DONT_CHECK_REQS = lv_dont_check_reqs
         CLIENT_INDEPENDENT = lv_client_independent
    IMPORTING
         NUMBER_OF_SESSIONS = lv_number_of_sessions
    TABLES
         REQUESTED_SESSIONS = lt_requested_sessions
         SUCCESSFUL_REQUESTS = lt_successful_requests
. " ARCHIVE_INTERRUPT_JOB




ABAP code using 7.40 inline data declarations to call FM ARCHIVE_INTERRUPT_JOB

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_object) = ' '.
 
 
 
DATA(ld_dont_check_reqs) = ' '.
 
 
DATA(ld_client_independent) = ' '.
 


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!