SAP VIEWCLUSTER_MAINTENANCE_CALL Function Module for Call Complex Data Object Maintenance (View Cluster Maintenance)









VIEWCLUSTER_MAINTENANCE_CALL is a standard viewcluster maintenance call SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Call Complex Data Object Maintenance (View Cluster Maintenance) 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 viewcluster maintenance call FM, simply by entering the name VIEWCLUSTER_MAINTENANCE_CALL into the relevant SAP transaction such as SE37 or SE38.

Function Group: SVCM
Program Name: SAPLSVCM
Main Program: SAPLSVCM
Appliation area: S
Release date: 09-Mar-1998
Mode(Normal, Remote etc): Normal Function Module
Update:



Function VIEWCLUSTER_MAINTENANCE_CALL 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 'VIEWCLUSTER_MAINTENANCE_CALL'"Call Complex Data Object Maintenance (View Cluster Maintenance)
EXPORTING
VIEWCLUSTER_NAME = "View Cluster Name
* START_OBJECT = ' ' "Initial Object in View Cluster
MAINTENANCE_ACTION = "Action (Display/Change/Transport: S/U/T/C)
* READ_KIND = ' ' "Read Type (Complete/Subtree:' '/T)
* SHOW_SELECTION_POPUP = ' ' "Flag: Display Selection Conditions Dialog Box
* CORR_NUMBER = ' ' "Correction Number for Changes Made
* NO_WARNING_FOR_CLIENTINDEP = ' ' "Flag: No Warning for Cross-Client Objects
* RFC_DESTINATION = ' ' "
* SUPPRESS_WA_POPUP = ' ' "Flag: Check Whether Maintenance is Allowed

TABLES
* DBA_SELLIST = "Selection Conditions Only for Initial Object
* DBA_SELLIST_CLUSTER = "Selection Conditions for Any Objects
* EXCL_CUA_FUNCT_ALL_OBJECTS = "GUI Functions to be Deactivated for All Objects
* EXCL_CUA_FUNCT_CLUSTER = "GUI Functions to be Deactivated for Any Objects
* DPL_SELLIST_FOR_START_OBJECT = "Initial Object Display Selections

EXCEPTIONS
CLIENT_REFERENCE = 1 NO_CLIENTINDEP_AUTH = 10 INVALID_ACTION = 11 SAVING_CORRECTION_FAILED = 12 SYSTEM_FAILURE = 13 UNKNOWN_FIELD_IN_DBA_SELLIST = 14 MISSING_CORR_NUMBER = 15 FOREIGN_LOCK = 2 VIEWCLUSTER_NOT_FOUND = 3 VIEWCLUSTER_IS_INCONSISTENT = 4 MISSING_GENERATED_FUNCTION = 5 NO_UPD_AUTH = 6 NO_SHOW_AUTH = 7 OBJECT_NOT_FOUND = 8 NO_TVDIR_ENTRY = 9
.



IMPORTING Parameters details for VIEWCLUSTER_MAINTENANCE_CALL

VIEWCLUSTER_NAME - View Cluster Name

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

START_OBJECT - Initial Object in View Cluster

Data type: VCLSTRUC-OBJECT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAINTENANCE_ACTION - Action (Display/Change/Transport: S/U/T/C)

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

READ_KIND - Read Type (Complete/Subtree:' '/T)

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

SHOW_SELECTION_POPUP - Flag: Display Selection Conditions Dialog Box

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

CORR_NUMBER - Correction Number for Changes Made

Data type: E070-TRKORR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_WARNING_FOR_CLIENTINDEP - Flag: No Warning for Cross-Client Objects

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

RFC_DESTINATION -

Data type: RFCDES-RFCDEST
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUPPRESS_WA_POPUP - Flag: Check Whether Maintenance is Allowed

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

TABLES Parameters details for VIEWCLUSTER_MAINTENANCE_CALL

DBA_SELLIST - Selection Conditions Only for Initial Object

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

DBA_SELLIST_CLUSTER - Selection Conditions for Any Objects

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

EXCL_CUA_FUNCT_ALL_OBJECTS - GUI Functions to be Deactivated for All Objects

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

EXCL_CUA_FUNCT_CLUSTER - GUI Functions to be Deactivated for Any Objects

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

DPL_SELLIST_FOR_START_OBJECT - Initial Object Display Selections

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

EXCEPTIONS details

CLIENT_REFERENCE - Object Chained in Another Client

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

NO_CLIENTINDEP_AUTH - No Maint. Auth. for Client-Indep. Objects

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

INVALID_ACTION - MAINTENANCE_ACTION Contains Invalid Value

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

SAVING_CORRECTION_FAILED - Correction Entries Save Error

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

SYSTEM_FAILURE - System Locking Error

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

UNKNOWN_FIELD_IN_DBA_SELLIST - Selection Table Contains Unknown Fields

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

MISSING_CORR_NUMBER - Correction Number Missing

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

FOREIGN_LOCK - Object is Locked by Another User

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

VIEWCLUSTER_NOT_FOUND - View Cluster Does Not Exist

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

VIEWCLUSTER_IS_INCONSISTENT - View Cluster Definition is Inconsistent

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

MISSING_GENERATED_FUNCTION - Generated View maintenance Modules Missing

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

NO_UPD_AUTH - No Maintenance Authorization

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

NO_SHOW_AUTH - No Display Authorization

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

OBJECT_NOT_FOUND - Object Not Found in DDIC

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

NO_TVDIR_ENTRY - Object Not in TVDIR

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

Copy and paste ABAP code example for VIEWCLUSTER_MAINTENANCE_CALL 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_dba_sellist  TYPE STANDARD TABLE OF VIMSELLIST, "   
lv_client_reference  TYPE VIMSELLIST, "   
lv_viewcluster_name  TYPE VCLDIR-VCLNAME, "   
lv_no_clientindep_auth  TYPE VCLDIR, "   
lv_invalid_action  TYPE VCLDIR, "   
lv_saving_correction_failed  TYPE VCLDIR, "   
lv_system_failure  TYPE VCLDIR, "   
lv_unknown_field_in_dba_sellist  TYPE VCLDIR, "   
lv_missing_corr_number  TYPE VCLDIR, "   
lv_foreign_lock  TYPE VCLDIR, "   
lv_start_object  TYPE VCLSTRUC-OBJECT, "   ' '
lt_dba_sellist_cluster  TYPE STANDARD TABLE OF VCLTY_SELLIST_TABLE, "   
lv_maintenance_action  TYPE VCLTY_SELLIST_TABLE, "   
lv_viewcluster_not_found  TYPE VCLTY_SELLIST_TABLE, "   
lt_excl_cua_funct_all_objects  TYPE STANDARD TABLE OF VIMEXCLFUN, "   
lv_read_kind  TYPE VIMEXCLFUN, "   ' '
lt_excl_cua_funct_cluster  TYPE STANDARD TABLE OF VCLTY_EXCLFUNCT_TABLE, "   
lv_viewcluster_is_inconsistent  TYPE VCLTY_EXCLFUNCT_TABLE, "   
lv_show_selection_popup  TYPE VCLTY_EXCLFUNCT_TABLE, "   ' '
lv_missing_generated_function  TYPE VCLTY_EXCLFUNCT_TABLE, "   
lt_dpl_sellist_for_start_object  TYPE STANDARD TABLE OF VIMSELLIST, "   
lv_corr_number  TYPE E070-TRKORR, "   ' '
lv_no_upd_auth  TYPE E070, "   
lv_no_show_auth  TYPE E070, "   
lv_no_warning_for_clientindep  TYPE E070, "   ' '
lv_rfc_destination  TYPE RFCDES-RFCDEST, "   ' '
lv_object_not_found  TYPE RFCDES, "   
lv_no_tvdir_entry  TYPE RFCDES, "   
lv_suppress_wa_popup  TYPE XFELD. "   SPACE

  CALL FUNCTION 'VIEWCLUSTER_MAINTENANCE_CALL'  "Call Complex Data Object Maintenance (View Cluster Maintenance)
    EXPORTING
         VIEWCLUSTER_NAME = lv_viewcluster_name
         START_OBJECT = lv_start_object
         MAINTENANCE_ACTION = lv_maintenance_action
         READ_KIND = lv_read_kind
         SHOW_SELECTION_POPUP = lv_show_selection_popup
         CORR_NUMBER = lv_corr_number
         NO_WARNING_FOR_CLIENTINDEP = lv_no_warning_for_clientindep
         RFC_DESTINATION = lv_rfc_destination
         SUPPRESS_WA_POPUP = lv_suppress_wa_popup
    TABLES
         DBA_SELLIST = lt_dba_sellist
         DBA_SELLIST_CLUSTER = lt_dba_sellist_cluster
         EXCL_CUA_FUNCT_ALL_OBJECTS = lt_excl_cua_funct_all_objects
         EXCL_CUA_FUNCT_CLUSTER = lt_excl_cua_funct_cluster
         DPL_SELLIST_FOR_START_OBJECT = lt_dpl_sellist_for_start_object
    EXCEPTIONS
        CLIENT_REFERENCE = 1
        NO_CLIENTINDEP_AUTH = 10
        INVALID_ACTION = 11
        SAVING_CORRECTION_FAILED = 12
        SYSTEM_FAILURE = 13
        UNKNOWN_FIELD_IN_DBA_SELLIST = 14
        MISSING_CORR_NUMBER = 15
        FOREIGN_LOCK = 2
        VIEWCLUSTER_NOT_FOUND = 3
        VIEWCLUSTER_IS_INCONSISTENT = 4
        MISSING_GENERATED_FUNCTION = 5
        NO_UPD_AUTH = 6
        NO_SHOW_AUTH = 7
        OBJECT_NOT_FOUND = 8
        NO_TVDIR_ENTRY = 9
. " VIEWCLUSTER_MAINTENANCE_CALL




ABAP code using 7.40 inline data declarations to call FM VIEWCLUSTER_MAINTENANCE_CALL

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 VCLNAME FROM VCLDIR INTO @DATA(ld_viewcluster_name).
 
 
 
 
 
 
 
 
"SELECT single OBJECT FROM VCLSTRUC INTO @DATA(ld_start_object).
DATA(ld_start_object) = ' '.
 
 
 
 
 
DATA(ld_read_kind) = ' '.
 
 
 
DATA(ld_show_selection_popup) = ' '.
 
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_corr_number).
DATA(ld_corr_number) = ' '.
 
 
 
DATA(ld_no_warning_for_clientindep) = ' '.
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_rfc_destination).
DATA(ld_rfc_destination) = ' '.
 
 
 
DATA(ld_suppress_wa_popup) = ' '.
 


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!