SAP ARCHIV_DELETE_META Function Module for









ARCHIV_DELETE_META is a standard archiv delete meta 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 archiv delete meta FM, simply by entering the name ARCHIV_DELETE_META into the relevant SAP transaction such as SE37 or SE38.

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



Function ARCHIV_DELETE_META 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 'ARCHIV_DELETE_META'"
EXPORTING
* ARCHIV_ID = ' ' "Archive ID
* NO_AUTH_CHECK = "
* ARC_DOC_ID = ' ' "Archive document ID
* AR_OBJECT = ' ' "Object type to be archived
* DELETE_FLAG = 0 "Run with/without dialog functions (0,1,2,3)
OBJECT_ID = "Unique object key of application
SAP_OBJECT = "Calling application
* CLIENT = "Client
* SINGLE_ENTRY = ' ' "
* DOCUMENTCLASS = "Document type

IMPORTING
ALL_CONNECTIONS_DELETED = "0:all connections deleted -1: not all

EXCEPTIONS
ERROR_CONNECTIONTABLE = 1 ERROR_PARAMETER = 2 ERROR_ARCHIV = 3 ERROR_KERNEL = 4 ERROR_COMMUNICATIONTABLE = 5 ERROR_AUTHORITY = 6
.



IMPORTING Parameters details for ARCHIV_DELETE_META

ARCHIV_ID - Archive ID

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

NO_AUTH_CHECK -

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

ARC_DOC_ID - Archive document ID

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

AR_OBJECT - Object type to be archived

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

DELETE_FLAG - Run with/without dialog functions (0,1,2,3)

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

OBJECT_ID - Unique object key of application

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

SAP_OBJECT - Calling application

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

CLIENT - Client

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

SINGLE_ENTRY -

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

DOCUMENTCLASS - Document type

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

EXPORTING Parameters details for ARCHIV_DELETE_META

ALL_CONNECTIONS_DELETED - 0:all connections deleted -1: not all

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

EXCEPTIONS details

ERROR_CONNECTIONTABLE - Error from link tables

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

ERROR_PARAMETER -

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

ERROR_ARCHIV - Archive system error

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

ERROR_KERNEL - SAP kernel error

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

ERROR_COMMUNICATIONTABLE - Error in maintenance table for archive

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

ERROR_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ARCHIV_DELETE_META 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_archiv_id  TYPE TOAAR-ARCHIV_ID, "   SPACE
lv_error_connectiontable  TYPE TOAAR, "   
lv_all_connections_deleted  TYPE TOAAR, "   
lv_no_auth_check  TYPE TOAAR, "   
lv_arc_doc_id  TYPE SAPB-SAPADOKID, "   SPACE
lv_error_parameter  TYPE SAPB, "   
lv_ar_object  TYPE TOAOM-AR_OBJECT, "   SPACE
lv_error_archiv  TYPE TOAOM, "   
lv_delete_flag  TYPE TOAOM, "   0
lv_error_kernel  TYPE TOAOM, "   
lv_object_id  TYPE SAPB-SAPOBJID, "   
lv_error_communicationtable  TYPE SAPB, "   
lv_sap_object  TYPE TOAOM-SAP_OBJECT, "   
lv_error_authority  TYPE TOAOM, "   
lv_client  TYPE SY-MANDT, "   
lv_single_entry  TYPE TOAOM-AR_STATUS, "   SPACE
lv_documentclass  TYPE TOADD-DOC_TYPE. "   

  CALL FUNCTION 'ARCHIV_DELETE_META'  "
    EXPORTING
         ARCHIV_ID = lv_archiv_id
         NO_AUTH_CHECK = lv_no_auth_check
         ARC_DOC_ID = lv_arc_doc_id
         AR_OBJECT = lv_ar_object
         DELETE_FLAG = lv_delete_flag
         OBJECT_ID = lv_object_id
         SAP_OBJECT = lv_sap_object
         CLIENT = lv_client
         SINGLE_ENTRY = lv_single_entry
         DOCUMENTCLASS = lv_documentclass
    IMPORTING
         ALL_CONNECTIONS_DELETED = lv_all_connections_deleted
    EXCEPTIONS
        ERROR_CONNECTIONTABLE = 1
        ERROR_PARAMETER = 2
        ERROR_ARCHIV = 3
        ERROR_KERNEL = 4
        ERROR_COMMUNICATIONTABLE = 5
        ERROR_AUTHORITY = 6
. " ARCHIV_DELETE_META




ABAP code using 7.40 inline data declarations to call FM ARCHIV_DELETE_META

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 ARCHIV_ID FROM TOAAR INTO @DATA(ld_archiv_id).
DATA(ld_archiv_id) = ' '.
 
 
 
 
"SELECT single SAPADOKID FROM SAPB INTO @DATA(ld_arc_doc_id).
DATA(ld_arc_doc_id) = ' '.
 
 
"SELECT single AR_OBJECT FROM TOAOM INTO @DATA(ld_ar_object).
DATA(ld_ar_object) = ' '.
 
 
 
 
"SELECT single SAPOBJID FROM SAPB INTO @DATA(ld_object_id).
 
 
"SELECT single SAP_OBJECT FROM TOAOM INTO @DATA(ld_sap_object).
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_client).
 
"SELECT single AR_STATUS FROM TOAOM INTO @DATA(ld_single_entry).
DATA(ld_single_entry) = ' '.
 
"SELECT single DOC_TYPE FROM TOADD INTO @DATA(ld_documentclass).
 


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!