SAP ARCHIVE_OBJECT_CREATE Function Module for









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

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



Function ARCHIVE_OBJECT_CREATE 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_OBJECT_CREATE'"
EXPORTING
APPLICATION = "
* ARCH_DEL = ' ' "
* ARCH_COMIT = 10 "
* ARCH_SIZE = 100 "
* ARCH_COUNT = 0 "
* READ_REPORT = ' ' "
* CONTENT_REPO = ' ' "
* READARCSYS = ' ' "
* BTCEVENTID = ' ' "
* BTCEVTPARM = ' ' "
* DEL_EVENT = ' ' "
ARCHIVE_PROGRAM = "
* PROD_VARIA = ' ' "
* TEST_VARIA = ' ' "
* ARCH_LINK = ' ' "
* STORE_FRST = ' ' "
* FIRST_PROGRAM = ' ' "
* LAST_PROGRAM = ' ' "
* CALL_DELET = ' ' "
* ARCH_GUILT = ' ' "
* RELOADFILE = ' ' "
* INTERRUPT = 'X' "
DELETE_PROGRAM = "
* ARCH_LAST = ' ' "
* LAST_VARIA = ' ' "
* DEVCLASS = "
* TRANSPORT_ORDER = "
* SET_GENFLAG = ' ' "
* FOR_ALL_CLIENTS = ' ' "
OBJECT = "
OBJECT_TITLE = "
* RETRIEVAL_PROGRAM = ' ' "
* APPLICATION_COMPONENT = ' ' "
* FILEINTERN = 'ARCHIVE_DATA_FILE' "

TABLES
* USED_CLASSES = "
* CUSTOM_TRANSACTIONS = "

EXCEPTIONS
OBJECT_ALREADY_EXISTS = 1 TRANSPORT_ORDER_REQUESTED = 2 TRANSPORT_CONNECTION_ERROR = 3 TADIR_ERROR = 4
.



IMPORTING Parameters details for ARCHIVE_OBJECT_CREATE

APPLICATION -

Data type: ARCH_OBJ-APPLIC
Optional: No
Call by Reference: No ( called with pass by value option)

ARCH_DEL -

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

ARCH_COMIT -

Data type: ARCH_USR-ARCH_COMIT
Default: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)

ARCH_SIZE -

Data type: ARCH_USR-ARCH_SIZE
Default: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)

ARCH_COUNT -

Data type: ARCH_USR-ARCH_COUNT
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_REPORT -

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

CONTENT_REPO -

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

READARCSYS -

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

BTCEVENTID -

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

BTCEVTPARM -

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

DEL_EVENT -

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

ARCHIVE_PROGRAM -

Data type: ARCH_OBJ-REORGA_PRG
Optional: No
Call by Reference: No ( called with pass by value option)

PROD_VARIA -

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

TEST_VARIA -

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

ARCH_LINK -

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

STORE_FRST -

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

FIRST_PROGRAM -

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

LAST_PROGRAM -

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

CALL_DELET -

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

ARCH_GUILT -

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

RELOADFILE -

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

INTERRUPT -

Data type: ARCH_OBJ-INTERRUPT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DELETE_PROGRAM -

Data type: ARCH_OBJ-DELETE_PRG
Optional: No
Call by Reference: No ( called with pass by value option)

ARCH_LAST -

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

LAST_VARIA -

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

DEVCLASS -

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

TRANSPORT_ORDER -

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

SET_GENFLAG -

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

FOR_ALL_CLIENTS -

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

OBJECT -

Data type: ARCH_OBJ-OBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_TITLE -

Data type: ARCH_TXT-OBJTEXT
Optional: No
Call by Reference: No ( called with pass by value option)

RETRIEVAL_PROGRAM -

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

APPLICATION_COMPONENT -

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

FILEINTERN -

Data type: ARCH_USR-FILENAME
Default: 'ARCHIVE_DATA_FILE'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ARCHIVE_OBJECT_CREATE

USED_CLASSES -

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

CUSTOM_TRANSACTIONS -

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

EXCEPTIONS details

OBJECT_ALREADY_EXISTS -

Data type:
Optional: No
Call by Reference: Yes

TRANSPORT_ORDER_REQUESTED -

Data type:
Optional: No
Call by Reference: Yes

TRANSPORT_CONNECTION_ERROR -

Data type:
Optional: No
Call by Reference: Yes

TADIR_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ARCHIVE_OBJECT_CREATE 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_application  TYPE ARCH_OBJ-APPLIC, "   
lt_used_classes  TYPE STANDARD TABLE OF ARCH_CLS, "   
lv_object_already_exists  TYPE ARCH_CLS, "   
lv_arch_del  TYPE ARCH_USR-ARCH_DEL, "   SPACE
lv_arch_comit  TYPE ARCH_USR-ARCH_COMIT, "   10
lv_arch_size  TYPE ARCH_USR-ARCH_SIZE, "   100
lv_arch_count  TYPE ARCH_USR-ARCH_COUNT, "   0
lv_read_report  TYPE ARCH_RPRG-READ_PRG, "   SPACE
lv_content_repo  TYPE ARCH_USR-CREP, "   SPACE
lv_readarcsys  TYPE ARCH_USR-READARCSYS, "   SPACE
lv_btceventid  TYPE ARCH_USR-BTCEVENTID, "   SPACE
lv_btcevtparm  TYPE ARCH_USR-BTCEVTPARM, "   SPACE
lv_del_event  TYPE ARCH_USR-DEL_EVENT, "   SPACE
lv_archive_program  TYPE ARCH_OBJ-REORGA_PRG, "   
lt_custom_transactions  TYPE STANDARD TABLE OF SSM_TCODES, "   
lv_transport_order_requested  TYPE SSM_TCODES, "   
lv_prod_varia  TYPE ARCH_USR-PROD_VARIA, "   SPACE
lv_test_varia  TYPE ARCH_USR-TEST_VARIA, "   SPACE
lv_arch_link  TYPE ARCH_USR-ARCH_LINK, "   SPACE
lv_store_frst  TYPE ARCH_USR-STORE_FRST, "   SPACE
lv_first_program  TYPE ARCH_OBJ-FIRST_PRG, "   SPACE
lv_last_program  TYPE ARCH_OBJ-LAST_PRG, "   SPACE
lv_call_delet  TYPE ARCH_OBJ-CALL_DELET, "   SPACE
lv_arch_guilt  TYPE ARCH_OBJ-ARCH_GUILT, "   SPACE
lv_reloadfile  TYPE ARCH_OBJ-RELOADFILE, "   SPACE
lv_interrupt  TYPE ARCH_OBJ-INTERRUPT, "   'X'
lv_delete_program  TYPE ARCH_OBJ-DELETE_PRG, "   
lv_transport_connection_error  TYPE ARCH_OBJ, "   
lv_arch_last  TYPE ARCH_USR-ARCH_LAST, "   SPACE
lv_last_varia  TYPE ARCH_USR-LAST_VARIA, "   SPACE
lv_devclass  TYPE DEVCLASS, "   
lv_transport_order  TYPE TRKORR, "   
lv_set_genflag  TYPE GENFLAG, "   SPACE
lv_tadir_error  TYPE GENFLAG, "   
lv_for_all_clients  TYPE ARCH_OBJ-ARCH_CLIEN, "   SPACE
lv_object  TYPE ARCH_OBJ-OBJECT, "   
lv_object_title  TYPE ARCH_TXT-OBJTEXT, "   
lv_retrieval_program  TYPE ARCH_OBJ-RETRIE_PRG, "   SPACE
lv_application_component  TYPE ARCH_OBJ-UFFCTR, "   SPACE
lv_fileintern  TYPE ARCH_USR-FILENAME. "   'ARCHIVE_DATA_FILE'

  CALL FUNCTION 'ARCHIVE_OBJECT_CREATE'  "
    EXPORTING
         APPLICATION = lv_application
         ARCH_DEL = lv_arch_del
         ARCH_COMIT = lv_arch_comit
         ARCH_SIZE = lv_arch_size
         ARCH_COUNT = lv_arch_count
         READ_REPORT = lv_read_report
         CONTENT_REPO = lv_content_repo
         READARCSYS = lv_readarcsys
         BTCEVENTID = lv_btceventid
         BTCEVTPARM = lv_btcevtparm
         DEL_EVENT = lv_del_event
         ARCHIVE_PROGRAM = lv_archive_program
         PROD_VARIA = lv_prod_varia
         TEST_VARIA = lv_test_varia
         ARCH_LINK = lv_arch_link
         STORE_FRST = lv_store_frst
         FIRST_PROGRAM = lv_first_program
         LAST_PROGRAM = lv_last_program
         CALL_DELET = lv_call_delet
         ARCH_GUILT = lv_arch_guilt
         RELOADFILE = lv_reloadfile
         INTERRUPT = lv_interrupt
         DELETE_PROGRAM = lv_delete_program
         ARCH_LAST = lv_arch_last
         LAST_VARIA = lv_last_varia
         DEVCLASS = lv_devclass
         TRANSPORT_ORDER = lv_transport_order
         SET_GENFLAG = lv_set_genflag
         FOR_ALL_CLIENTS = lv_for_all_clients
         OBJECT = lv_object
         OBJECT_TITLE = lv_object_title
         RETRIEVAL_PROGRAM = lv_retrieval_program
         APPLICATION_COMPONENT = lv_application_component
         FILEINTERN = lv_fileintern
    TABLES
         USED_CLASSES = lt_used_classes
         CUSTOM_TRANSACTIONS = lt_custom_transactions
    EXCEPTIONS
        OBJECT_ALREADY_EXISTS = 1
        TRANSPORT_ORDER_REQUESTED = 2
        TRANSPORT_CONNECTION_ERROR = 3
        TADIR_ERROR = 4
. " ARCHIVE_OBJECT_CREATE




ABAP code using 7.40 inline data declarations to call FM ARCHIVE_OBJECT_CREATE

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 APPLIC FROM ARCH_OBJ INTO @DATA(ld_application).
 
 
 
"SELECT single ARCH_DEL FROM ARCH_USR INTO @DATA(ld_arch_del).
DATA(ld_arch_del) = ' '.
 
"SELECT single ARCH_COMIT FROM ARCH_USR INTO @DATA(ld_arch_comit).
DATA(ld_arch_comit) = 10.
 
"SELECT single ARCH_SIZE FROM ARCH_USR INTO @DATA(ld_arch_size).
DATA(ld_arch_size) = 100.
 
"SELECT single ARCH_COUNT FROM ARCH_USR INTO @DATA(ld_arch_count).
 
"SELECT single READ_PRG FROM ARCH_RPRG INTO @DATA(ld_read_report).
DATA(ld_read_report) = ' '.
 
"SELECT single CREP FROM ARCH_USR INTO @DATA(ld_content_repo).
DATA(ld_content_repo) = ' '.
 
"SELECT single READARCSYS FROM ARCH_USR INTO @DATA(ld_readarcsys).
DATA(ld_readarcsys) = ' '.
 
"SELECT single BTCEVENTID FROM ARCH_USR INTO @DATA(ld_btceventid).
DATA(ld_btceventid) = ' '.
 
"SELECT single BTCEVTPARM FROM ARCH_USR INTO @DATA(ld_btcevtparm).
DATA(ld_btcevtparm) = ' '.
 
"SELECT single DEL_EVENT FROM ARCH_USR INTO @DATA(ld_del_event).
DATA(ld_del_event) = ' '.
 
"SELECT single REORGA_PRG FROM ARCH_OBJ INTO @DATA(ld_archive_program).
 
 
 
"SELECT single PROD_VARIA FROM ARCH_USR INTO @DATA(ld_prod_varia).
DATA(ld_prod_varia) = ' '.
 
"SELECT single TEST_VARIA FROM ARCH_USR INTO @DATA(ld_test_varia).
DATA(ld_test_varia) = ' '.
 
"SELECT single ARCH_LINK FROM ARCH_USR INTO @DATA(ld_arch_link).
DATA(ld_arch_link) = ' '.
 
"SELECT single STORE_FRST FROM ARCH_USR INTO @DATA(ld_store_frst).
DATA(ld_store_frst) = ' '.
 
"SELECT single FIRST_PRG FROM ARCH_OBJ INTO @DATA(ld_first_program).
DATA(ld_first_program) = ' '.
 
"SELECT single LAST_PRG FROM ARCH_OBJ INTO @DATA(ld_last_program).
DATA(ld_last_program) = ' '.
 
"SELECT single CALL_DELET FROM ARCH_OBJ INTO @DATA(ld_call_delet).
DATA(ld_call_delet) = ' '.
 
"SELECT single ARCH_GUILT FROM ARCH_OBJ INTO @DATA(ld_arch_guilt).
DATA(ld_arch_guilt) = ' '.
 
"SELECT single RELOADFILE FROM ARCH_OBJ INTO @DATA(ld_reloadfile).
DATA(ld_reloadfile) = ' '.
 
"SELECT single INTERRUPT FROM ARCH_OBJ INTO @DATA(ld_interrupt).
DATA(ld_interrupt) = 'X'.
 
"SELECT single DELETE_PRG FROM ARCH_OBJ INTO @DATA(ld_delete_program).
 
 
"SELECT single ARCH_LAST FROM ARCH_USR INTO @DATA(ld_arch_last).
DATA(ld_arch_last) = ' '.
 
"SELECT single LAST_VARIA FROM ARCH_USR INTO @DATA(ld_last_varia).
DATA(ld_last_varia) = ' '.
 
 
 
DATA(ld_set_genflag) = ' '.
 
 
"SELECT single ARCH_CLIEN FROM ARCH_OBJ INTO @DATA(ld_for_all_clients).
DATA(ld_for_all_clients) = ' '.
 
"SELECT single OBJECT FROM ARCH_OBJ INTO @DATA(ld_object).
 
"SELECT single OBJTEXT FROM ARCH_TXT INTO @DATA(ld_object_title).
 
"SELECT single RETRIE_PRG FROM ARCH_OBJ INTO @DATA(ld_retrieval_program).
DATA(ld_retrieval_program) = ' '.
 
"SELECT single UFFCTR FROM ARCH_OBJ INTO @DATA(ld_application_component).
DATA(ld_application_component) = ' '.
 
"SELECT single FILENAME FROM ARCH_USR INTO @DATA(ld_fileintern).
DATA(ld_fileintern) = 'ARCHIVE_DATA_FILE'.
 


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!