SAP ARCHIV_ARCHIVINFO_GET Function Module for









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

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



Function ARCHIV_ARCHIVINFO_GET 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_ARCHIVINFO_GET'"
EXPORTING
* APPLIC_ID = ' ' "Calling application
ARCHIV_ID = "Target archive
* AR_OBJECT = ' ' "Object type to be archived
* OBJECT_ART = ' ' "Object type to be archived
* SAP_OBJECT = ' ' "Calling application
* REPORT = ' ' "
* USERNAME = ' ' "

IMPORTING
ANSCHL_ID = "ICC partner
VERSION = "
DOCUMENTATION_TYPE = "
DOCUMENT_TYPE = "archive-related document type
DOK_TYP = "
INTERFACE = "ICC partner
PATH = "
PROTOKOLL = "
RPC_HOST = "RPC: computer, on which the partner runs
RPC_SERVICE = "RPC: number of partner service

EXCEPTIONS
ERROR_COMMUNICATIONTABLE = 1 ERROR_CONNECTIONTABLE = 2 NO_AUTHORITY = 3
.



IMPORTING Parameters details for ARCHIV_ARCHIVINFO_GET

APPLIC_ID - Calling application

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

ARCHIV_ID - Target archive

Data type: TOAOM-ARCHIV_ID
Optional: No
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)

OBJECT_ART - Object type to be archived

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

SAP_OBJECT - Calling application

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

REPORT -

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

USERNAME -

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

EXPORTING Parameters details for ARCHIV_ARCHIVINFO_GET

ANSCHL_ID - ICC partner

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

VERSION -

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

DOCUMENTATION_TYPE -

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

DOCUMENT_TYPE - archive-related document type

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

DOK_TYP -

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

INTERFACE - ICC partner

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

PATH -

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

PROTOKOLL -

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

RPC_HOST - RPC: computer, on which the partner runs

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

RPC_SERVICE - RPC: number of partner service

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

EXCEPTIONS details

ERROR_COMMUNICATIONTABLE - not found in table TOAAR (archive)

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

ERROR_CONNECTIONTABLE - not found in table TOAOM (meta table)

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

NO_AUTHORITY -

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

Copy and paste ABAP code example for ARCHIV_ARCHIVINFO_GET 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_anschl_id  TYPE TOAAR-INTERFACE, "   
lv_applic_id  TYPE TOAOM-SAP_OBJECT, "   SPACE
lv_error_communicationtable  TYPE TOAOM, "   
lv_version  TYPE TOAAR-VERSION, "   
lv_archiv_id  TYPE TOAOM-ARCHIV_ID, "   
lv_documentation_type  TYPE TOAOM-DOC_TYPE, "   
lv_error_connectiontable  TYPE TOAOM, "   
lv_ar_object  TYPE TOAOM-AR_OBJECT, "   SPACE
lv_no_authority  TYPE TOAOM, "   
lv_document_type  TYPE TOAOM-DOC_TYPE, "   
lv_dok_typ  TYPE TOAOM-DOC_TYPE, "   
lv_object_art  TYPE TOAOM-AR_OBJECT, "   SPACE
lv_interface  TYPE TOAAR-INTERFACE, "   
lv_sap_object  TYPE TOAOM-SAP_OBJECT, "   SPACE
lv_path  TYPE TOAAR-ARCHIVPATH, "   
lv_report  TYPE RS38M-PROGRAMM, "   SPACE
lv_username  TYPE SYUNAME, "   SPACE
lv_protokoll  TYPE TOAAR-PROTOKOLL, "   
lv_rpc_host  TYPE TOAAR-RPC_HOST, "   
lv_rpc_service  TYPE TOAAR-RPC_SERVIC. "   

  CALL FUNCTION 'ARCHIV_ARCHIVINFO_GET'  "
    EXPORTING
         APPLIC_ID = lv_applic_id
         ARCHIV_ID = lv_archiv_id
         AR_OBJECT = lv_ar_object
         OBJECT_ART = lv_object_art
         SAP_OBJECT = lv_sap_object
         REPORT = lv_report
         USERNAME = lv_username
    IMPORTING
         ANSCHL_ID = lv_anschl_id
         VERSION = lv_version
         DOCUMENTATION_TYPE = lv_documentation_type
         DOCUMENT_TYPE = lv_document_type
         DOK_TYP = lv_dok_typ
         INTERFACE = lv_interface
         PATH = lv_path
         PROTOKOLL = lv_protokoll
         RPC_HOST = lv_rpc_host
         RPC_SERVICE = lv_rpc_service
    EXCEPTIONS
        ERROR_COMMUNICATIONTABLE = 1
        ERROR_CONNECTIONTABLE = 2
        NO_AUTHORITY = 3
. " ARCHIV_ARCHIVINFO_GET




ABAP code using 7.40 inline data declarations to call FM ARCHIV_ARCHIVINFO_GET

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 INTERFACE FROM TOAAR INTO @DATA(ld_anschl_id).
 
"SELECT single SAP_OBJECT FROM TOAOM INTO @DATA(ld_applic_id).
DATA(ld_applic_id) = ' '.
 
 
"SELECT single VERSION FROM TOAAR INTO @DATA(ld_version).
 
"SELECT single ARCHIV_ID FROM TOAOM INTO @DATA(ld_archiv_id).
 
"SELECT single DOC_TYPE FROM TOAOM INTO @DATA(ld_documentation_type).
 
 
"SELECT single AR_OBJECT FROM TOAOM INTO @DATA(ld_ar_object).
DATA(ld_ar_object) = ' '.
 
 
"SELECT single DOC_TYPE FROM TOAOM INTO @DATA(ld_document_type).
 
"SELECT single DOC_TYPE FROM TOAOM INTO @DATA(ld_dok_typ).
 
"SELECT single AR_OBJECT FROM TOAOM INTO @DATA(ld_object_art).
DATA(ld_object_art) = ' '.
 
"SELECT single INTERFACE FROM TOAAR INTO @DATA(ld_interface).
 
"SELECT single SAP_OBJECT FROM TOAOM INTO @DATA(ld_sap_object).
DATA(ld_sap_object) = ' '.
 
"SELECT single ARCHIVPATH FROM TOAAR INTO @DATA(ld_path).
 
"SELECT single PROGRAMM FROM RS38M INTO @DATA(ld_report).
DATA(ld_report) = ' '.
 
DATA(ld_username) = ' '.
 
"SELECT single PROTOKOLL FROM TOAAR INTO @DATA(ld_protokoll).
 
"SELECT single RPC_HOST FROM TOAAR INTO @DATA(ld_rpc_host).
 
"SELECT single RPC_SERVIC FROM TOAAR INTO @DATA(ld_rpc_service).
 


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!