SAP ARCHIV_GET_CONNECTIONS Function Module for









ARCHIV_GET_CONNECTIONS is a standard archiv get connections 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 get connections FM, simply by entering the name ARCHIV_GET_CONNECTIONS 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): Remote-Enabled
Update:



Function ARCHIV_GET_CONNECTIONS 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_GET_CONNECTIONS'"
EXPORTING
* OBJECTTYPE = "Business object type
* DEL_DATE = "
* LIMITED = "
* LIMIT = "SAP ArchiveLink Number of Documents
* OBJECT_ID = "Business object type ID
* CLIENT = "Client
* ARCHIV_ID = "Optical archive ID
* ARC_DOC_ID = "Archive document ID
* DOCUMENTTYPE = "ArchiveLink document type
* FROM_AR_DATE = "Start date for search
* UNTIL_AR_DATE = SY-DATUM "End date for search
* DOCUMENTCLASS = "Technical document class

IMPORTING
COUNT = "Number of connections found
REDUCEDBYLIMIT = "
REDUCEDBYAUTHORITY = "

TABLES
* CONNECTIONS = "Internal table for connection entries
* PARAMETER = "

EXCEPTIONS
NOTHING_FOUND = 1
.



IMPORTING Parameters details for ARCHIV_GET_CONNECTIONS

OBJECTTYPE - Business object type

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

DEL_DATE -

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

LIMITED -

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

LIMIT - SAP ArchiveLink Number of Documents

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

OBJECT_ID - Business object type ID

Data type: TOAV0-OBJECT_ID
Optional: Yes
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)

ARCHIV_ID - Optical archive ID

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

ARC_DOC_ID - Archive document ID

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

DOCUMENTTYPE - ArchiveLink document type

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

FROM_AR_DATE - Start date for search

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

UNTIL_AR_DATE - End date for search

Data type: TOAV0-AR_DATE
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

DOCUMENTCLASS - Technical document class

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

EXPORTING Parameters details for ARCHIV_GET_CONNECTIONS

COUNT - Number of connections found

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

REDUCEDBYLIMIT -

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

REDUCEDBYAUTHORITY -

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

TABLES Parameters details for ARCHIV_GET_CONNECTIONS

CONNECTIONS - Internal table for connection entries

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

PARAMETER -

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

EXCEPTIONS details

NOTHING_FOUND - No connection entries found

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

Copy and paste ABAP code example for ARCHIV_GET_CONNECTIONS 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_count  TYPE SY-INDEX, "   
lv_objecttype  TYPE TOAV0-SAP_OBJECT, "   
lt_connections  TYPE STANDARD TABLE OF TOAV0, "   
lv_nothing_found  TYPE TOAV0, "   
lv_del_date  TYPE TOAV0-DEL_DATE, "   
lv_limited  TYPE TOAOM-AR_STATUS, "   
lv_limit  TYPE TOACU-ANZHITLIST, "   
lv_object_id  TYPE TOAV0-OBJECT_ID, "   
lt_parameter  TYPE STANDARD TABLE OF TOARANGE_D, "   
lv_reducedbylimit  TYPE SAESTATUS, "   
lv_client  TYPE SY-MANDT, "   
lv_reducedbyauthority  TYPE SAESTATUS, "   
lv_archiv_id  TYPE TOAV0-ARCHIV_ID, "   
lv_arc_doc_id  TYPE TOAV0-ARC_DOC_ID, "   
lv_documenttype  TYPE TOAV0-AR_OBJECT, "   
lv_from_ar_date  TYPE TOAV0-AR_DATE, "   
lv_until_ar_date  TYPE TOAV0-AR_DATE, "   SY-DATUM
lv_documentclass  TYPE TOADD-DOC_TYPE. "   

  CALL FUNCTION 'ARCHIV_GET_CONNECTIONS'  "
    EXPORTING
         OBJECTTYPE = lv_objecttype
         DEL_DATE = lv_del_date
         LIMITED = lv_limited
         LIMIT = lv_limit
         OBJECT_ID = lv_object_id
         CLIENT = lv_client
         ARCHIV_ID = lv_archiv_id
         ARC_DOC_ID = lv_arc_doc_id
         DOCUMENTTYPE = lv_documenttype
         FROM_AR_DATE = lv_from_ar_date
         UNTIL_AR_DATE = lv_until_ar_date
         DOCUMENTCLASS = lv_documentclass
    IMPORTING
         COUNT = lv_count
         REDUCEDBYLIMIT = lv_reducedbylimit
         REDUCEDBYAUTHORITY = lv_reducedbyauthority
    TABLES
         CONNECTIONS = lt_connections
         PARAMETER = lt_parameter
    EXCEPTIONS
        NOTHING_FOUND = 1
. " ARCHIV_GET_CONNECTIONS




ABAP code using 7.40 inline data declarations to call FM ARCHIV_GET_CONNECTIONS

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 INDEX FROM SY INTO @DATA(ld_count).
 
"SELECT single SAP_OBJECT FROM TOAV0 INTO @DATA(ld_objecttype).
 
 
 
"SELECT single DEL_DATE FROM TOAV0 INTO @DATA(ld_del_date).
 
"SELECT single AR_STATUS FROM TOAOM INTO @DATA(ld_limited).
 
"SELECT single ANZHITLIST FROM TOACU INTO @DATA(ld_limit).
 
"SELECT single OBJECT_ID FROM TOAV0 INTO @DATA(ld_object_id).
 
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_client).
 
 
"SELECT single ARCHIV_ID FROM TOAV0 INTO @DATA(ld_archiv_id).
 
"SELECT single ARC_DOC_ID FROM TOAV0 INTO @DATA(ld_arc_doc_id).
 
"SELECT single AR_OBJECT FROM TOAV0 INTO @DATA(ld_documenttype).
 
"SELECT single AR_DATE FROM TOAV0 INTO @DATA(ld_from_ar_date).
 
"SELECT single AR_DATE FROM TOAV0 INTO @DATA(ld_until_ar_date).
DATA(ld_until_ar_date) = SY-DATUM.
 
"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!