SAP SOBL_ARCHIVE_READ_LINKS Function Module for Function Module for Sequential Reading of Class Data









SOBL_ARCHIVE_READ_LINKS is a standard sobl archive read links SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function Module for Sequential Reading of Class Data 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 sobl archive read links FM, simply by entering the name SOBL_ARCHIVE_READ_LINKS into the relevant SAP transaction such as SE37 or SE38.

Function Group: SOBL_ARCHIVE
Program Name: SAPLSOBL_ARCHIVE
Main Program: SAPLSOBL_ARCHIVE
Appliation area:
Release date: 09-Aug-2002
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SOBL_ARCHIVE_READ_LINKS 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 'SOBL_ARCHIVE_READ_LINKS'"Function Module for Sequential Reading of Class Data
EXPORTING
* ARCHIVE_HANDLE = 0 "Handle
IS_OBJECT = "Local Persistent Object Reference - BOR Compatible
* IP_LOGSYS = "Logical System
* IT_ROLE_OPTIONS = "OBL: Select Options for Role Type
* IT_RELATION_OPTIONS = "OBL: Select Options for Relationship Types

IMPORTING
ET_LINKS = "SOBL: Table with Relationship Records
ET_ROLES = "SOBL: Role Records for Object Relationships

EXCEPTIONS
CX_OBL_ARCHIVE_ERROR = 1 CX_OBL_PARAMETER_ERROR = 2 CX_OBL_INTERNAL_ERROR = 3 CX_OBL_MODEL_ERROR = 4
.



IMPORTING Parameters details for SOBL_ARCHIVE_READ_LINKS

ARCHIVE_HANDLE - Handle

Data type: SY-TABIX
Optional: Yes
Call by Reference: Yes

IS_OBJECT - Local Persistent Object Reference - BOR Compatible

Data type: SIBFLPORB
Optional: No
Call by Reference: Yes

IP_LOGSYS - Logical System

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

IT_ROLE_OPTIONS - OBL: Select Options for Role Type

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

IT_RELATION_OPTIONS - OBL: Select Options for Relationship Types

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

EXPORTING Parameters details for SOBL_ARCHIVE_READ_LINKS

ET_LINKS - SOBL: Table with Relationship Records

Data type: OBL_T_LINK
Optional: No
Call by Reference: Yes

ET_ROLES - SOBL: Role Records for Object Relationships

Data type: OBL_T_ROLE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_OBL_ARCHIVE_ERROR - Error When Archiving Relationships

Data type:
Optional: No
Call by Reference: Yes

CX_OBL_PARAMETER_ERROR - Incorrect Calling of Interface

Data type:
Optional: No
Call by Reference: Yes

CX_OBL_INTERNAL_ERROR - Internal Error of Relationship Service

Data type:
Optional: No
Call by Reference: Yes

CX_OBL_MODEL_ERROR - Error with Model Roles

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SOBL_ARCHIVE_READ_LINKS 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_et_links  TYPE OBL_T_LINK, "   
lv_archive_handle  TYPE SY-TABIX, "   0
lv_cx_obl_archive_error  TYPE SY, "   
lv_et_roles  TYPE OBL_T_ROLE, "   
lv_is_object  TYPE SIBFLPORB, "   
lv_cx_obl_parameter_error  TYPE SIBFLPORB, "   
lv_ip_logsys  TYPE LOGSYS, "   
lv_cx_obl_internal_error  TYPE LOGSYS, "   
lv_it_role_options  TYPE OBL_T_ROLT, "   
lv_cx_obl_model_error  TYPE OBL_T_ROLT, "   
lv_it_relation_options  TYPE OBL_T_RELT. "   

  CALL FUNCTION 'SOBL_ARCHIVE_READ_LINKS'  "Function Module for Sequential Reading of Class Data
    EXPORTING
         ARCHIVE_HANDLE = lv_archive_handle
         IS_OBJECT = lv_is_object
         IP_LOGSYS = lv_ip_logsys
         IT_ROLE_OPTIONS = lv_it_role_options
         IT_RELATION_OPTIONS = lv_it_relation_options
    IMPORTING
         ET_LINKS = lv_et_links
         ET_ROLES = lv_et_roles
    EXCEPTIONS
        CX_OBL_ARCHIVE_ERROR = 1
        CX_OBL_PARAMETER_ERROR = 2
        CX_OBL_INTERNAL_ERROR = 3
        CX_OBL_MODEL_ERROR = 4
. " SOBL_ARCHIVE_READ_LINKS




ABAP code using 7.40 inline data declarations to call FM SOBL_ARCHIVE_READ_LINKS

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 TABIX FROM SY INTO @DATA(ld_archive_handle).
 
 
 
 
 
 
 
 
 
 


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!