SAP VIEWCLUSTER_GET_DEFINITION Function Module for Read a View Cluster Definition









VIEWCLUSTER_GET_DEFINITION is a standard viewcluster get definition SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read a View Cluster Definition 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 get definition FM, simply by entering the name VIEWCLUSTER_GET_DEFINITION into the relevant SAP transaction such as SE37 or SE38.

Function Group: SVCD
Program Name: SAPLSVCD
Main Program:
Appliation area:
Release date: 02-Dec-1998
Mode(Normal, Remote etc): Normal Function Module
Update:



Function VIEWCLUSTER_GET_DEFINITION 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_GET_DEFINITION'"Read a View Cluster Definition
EXPORTING
VCLNAME = "View Cluster Name

IMPORTING
VCLDIR_ENTRY = "Header Entry

TABLES
* VCLSTRUC_TAB = "Object structure
* VCLSTRUDEP_TAB = "Field Dependence
* VCLMF_TAB = "Times

EXCEPTIONS
VIEWCLUSTER_NOT_FOUND = 1 INCOMPLETE_VIEWCLUSTER = 2
.



IMPORTING Parameters details for VIEWCLUSTER_GET_DEFINITION

VCLNAME - View Cluster Name

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

EXPORTING Parameters details for VIEWCLUSTER_GET_DEFINITION

VCLDIR_ENTRY - Header Entry

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

TABLES Parameters details for VIEWCLUSTER_GET_DEFINITION

VCLSTRUC_TAB - Object structure

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

VCLSTRUDEP_TAB - Field Dependence

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

VCLMF_TAB - Times

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

EXCEPTIONS details

VIEWCLUSTER_NOT_FOUND - View Cluster VCLNAME Does Not Exist

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

INCOMPLETE_VIEWCLUSTER - View Cluster VCLNAME is incomplete

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

Copy and paste ABAP code example for VIEWCLUSTER_GET_DEFINITION 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_vclname  TYPE VCL_NAME, "   
lv_vcldir_entry  TYPE V_VCLDIR, "   
lt_vclstruc_tab  TYPE STANDARD TABLE OF V_VCLSTRUC, "   
lv_viewcluster_not_found  TYPE V_VCLSTRUC, "   
lt_vclstrudep_tab  TYPE STANDARD TABLE OF V_VCLSTDEP, "   
lv_incomplete_viewcluster  TYPE V_VCLSTDEP, "   
lt_vclmf_tab  TYPE STANDARD TABLE OF V_VCLMF. "   

  CALL FUNCTION 'VIEWCLUSTER_GET_DEFINITION'  "Read a View Cluster Definition
    EXPORTING
         VCLNAME = lv_vclname
    IMPORTING
         VCLDIR_ENTRY = lv_vcldir_entry
    TABLES
         VCLSTRUC_TAB = lt_vclstruc_tab
         VCLSTRUDEP_TAB = lt_vclstrudep_tab
         VCLMF_TAB = lt_vclmf_tab
    EXCEPTIONS
        VIEWCLUSTER_NOT_FOUND = 1
        INCOMPLETE_VIEWCLUSTER = 2
. " VIEWCLUSTER_GET_DEFINITION




ABAP code using 7.40 inline data declarations to call FM VIEWCLUSTER_GET_DEFINITION

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.

 
 
 
 
 
 
 


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!