SAP VIEWCLUSTER_HELP_VALUES Function Module for View cluster: F4 for fld in dep. obj. with check table in higher obj. jek









VIEWCLUSTER_HELP_VALUES is a standard viewcluster help values SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for View cluster: F4 for fld in dep. obj. with check table in higher obj. jek 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 help values FM, simply by entering the name VIEWCLUSTER_HELP_VALUES into the relevant SAP transaction such as SE37 or SE38.

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



Function VIEWCLUSTER_HELP_VALUES 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_HELP_VALUES'"View cluster: F4 for fld in dep. obj. with check table in higher obj. jek
EXPORTING
OBJECT = "View/Table in view cluster
FIELDNAME = "Field in OBJECT for which F4 is performed
* EXTRACT_INDEX = "no longer required

CHANGING
FIELDVALUE = "FIELDNAME field value

EXCEPTIONS
OBJECT_NOT_FOUND = 1 VIEWCLUSTER_NOT_ACTIVE = 2 FIELD_NOT_FOUND = 3 INVALID_USAGE = 4
.



IMPORTING Parameters details for VIEWCLUSTER_HELP_VALUES

OBJECT - View/Table in view cluster

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

FIELDNAME - Field in OBJECT for which F4 is performed

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

EXTRACT_INDEX - no longer required

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

CHANGING Parameters details for VIEWCLUSTER_HELP_VALUES

FIELDVALUE - FIELDNAME field value

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

EXCEPTIONS details

OBJECT_NOT_FOUND - Edited view cluster does not contain OBJECT

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

VIEWCLUSTER_NOT_ACTIVE - View cluster not yet initialized

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

FIELD_NOT_FOUND - Field name not contained in object

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

INVALID_USAGE - Invalid Use of Module

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

Copy and paste ABAP code example for VIEWCLUSTER_HELP_VALUES 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_object  TYPE VCLSTRUDEP-OBJECT, "   
lv_fieldvalue  TYPE VCLSTRUDEP, "   
lv_object_not_found  TYPE VCLSTRUDEP, "   
lv_fieldname  TYPE VCLSTRUDEP-OBJFIELD, "   
lv_viewcluster_not_active  TYPE VCLSTRUDEP, "   
lv_extract_index  TYPE SY-TABIX, "   
lv_field_not_found  TYPE SY, "   
lv_invalid_usage  TYPE SY. "   

  CALL FUNCTION 'VIEWCLUSTER_HELP_VALUES'  "View cluster: F4 for fld in dep. obj. with check table in higher obj. jek
    EXPORTING
         OBJECT = lv_object
         FIELDNAME = lv_fieldname
         EXTRACT_INDEX = lv_extract_index
    CHANGING
         FIELDVALUE = lv_fieldvalue
    EXCEPTIONS
        OBJECT_NOT_FOUND = 1
        VIEWCLUSTER_NOT_ACTIVE = 2
        FIELD_NOT_FOUND = 3
        INVALID_USAGE = 4
. " VIEWCLUSTER_HELP_VALUES




ABAP code using 7.40 inline data declarations to call FM VIEWCLUSTER_HELP_VALUES

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 OBJECT FROM VCLSTRUDEP INTO @DATA(ld_object).
 
 
 
"SELECT single OBJFIELD FROM VCLSTRUDEP INTO @DATA(ld_fieldname).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_extract_index).
 
 
 


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!