SAP OCS_GET_COMPLETE_OBJECT_LIST Function Module for









OCS_GET_COMPLETE_OBJECT_LIST is a standard ocs get complete object list 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 ocs get complete object list FM, simply by entering the name OCS_GET_COMPLETE_OBJECT_LIST into the relevant SAP transaction such as SE37 or SE38.

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



Function OCS_GET_COMPLETE_OBJECT_LIST 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 'OCS_GET_COMPLETE_OBJECT_LIST'"
EXPORTING
* IV_UPGRADE = ' ' "
* IV_USE_DB_CACHE = 'X' "

IMPORTING
OT_COMPLETE_OBJECTS = "

CHANGING
* CV_OBJECT_NUMBER = 0 "

TABLES
IT_TRKORR = "
* IT_OBJ_TADIR = "
* ET_TRKORR_REMAIN = "

EXCEPTIONS
ERROR_READING_COMM = 1 NO_UPGRADE_RUNNING = 2 INTERNAL_ERROR = 3
.



IMPORTING Parameters details for OCS_GET_COMPLETE_OBJECT_LIST

IV_UPGRADE -

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

IV_USE_DB_CACHE -

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

EXPORTING Parameters details for OCS_GET_COMPLETE_OBJECT_LIST

OT_COMPLETE_OBJECTS -

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

CHANGING Parameters details for OCS_GET_COMPLETE_OBJECT_LIST

CV_OBJECT_NUMBER -

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

TABLES Parameters details for OCS_GET_COMPLETE_OBJECT_LIST

IT_TRKORR -

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

IT_OBJ_TADIR -

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

ET_TRKORR_REMAIN -

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

EXCEPTIONS details

ERROR_READING_COMM -

Data type:
Optional: No
Call by Reference: Yes

NO_UPGRADE_RUNNING -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OCS_GET_COMPLETE_OBJECT_LIST 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:
lt_it_trkorr  TYPE STANDARD TABLE OF E070, "   
lv_iv_upgrade  TYPE C, "   SPACE
lv_cv_object_number  TYPE I, "   0
lv_error_reading_comm  TYPE I, "   
lv_ot_complete_objects  TYPE SAINT_COMPL_OBJ_TABLE, "   
lt_it_obj_tadir  TYPE STANDARD TABLE OF TPOBJLST, "   
lv_iv_use_db_cache  TYPE C, "   'X'
lv_no_upgrade_running  TYPE C, "   
lv_internal_error  TYPE C, "   
lt_et_trkorr_remain  TYPE STANDARD TABLE OF E070. "   

  CALL FUNCTION 'OCS_GET_COMPLETE_OBJECT_LIST'  "
    EXPORTING
         IV_UPGRADE = lv_iv_upgrade
         IV_USE_DB_CACHE = lv_iv_use_db_cache
    IMPORTING
         OT_COMPLETE_OBJECTS = lv_ot_complete_objects
    CHANGING
         CV_OBJECT_NUMBER = lv_cv_object_number
    TABLES
         IT_TRKORR = lt_it_trkorr
         IT_OBJ_TADIR = lt_it_obj_tadir
         ET_TRKORR_REMAIN = lt_et_trkorr_remain
    EXCEPTIONS
        ERROR_READING_COMM = 1
        NO_UPGRADE_RUNNING = 2
        INTERNAL_ERROR = 3
. " OCS_GET_COMPLETE_OBJECT_LIST




ABAP code using 7.40 inline data declarations to call FM OCS_GET_COMPLETE_OBJECT_LIST

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.

 
DATA(ld_iv_upgrade) = ' '.
 
 
 
 
 
DATA(ld_iv_use_db_cache) = 'X'.
 
 
 
 


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!