SAP CNET_GRAPHIC_CLUSTER Function Module for Start graphical cluster editor









CNET_GRAPHIC_CLUSTER is a standard cnet graphic cluster SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Start graphical cluster editor 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 cnet graphic cluster FM, simply by entering the name CNET_GRAPHIC_CLUSTER into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNET
Program Name: SAPLCNET
Main Program:
Appliation area: S
Release date: 16-Apr-1997
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CNET_GRAPHIC_CLUSTER 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 'CNET_GRAPHIC_CLUSTER'"Start graphical cluster editor
EXPORTING
* ABAP_CMD = ' ' "Command to graphics
* SUPER = ' ' "Parameters for closing the window
* TITLEBAR = ' ' "Window title
* WAIT_FOR_INPUT = 'X' "
* WINID = ' ' "Window identification
* CONFIRM = ' ' "Indicator: Confirm mode
* PROFILE = 'SAP DEFAULT 0' "Graphics profile
* PWDID = ' ' "Parent window ID
* SET_FOCUS = 'X' "Indicator: Set focus
* SO_CONTENTS = ' ' "Document title
* SO_SEND = ' ' "Indicator: Send graphic
* STAT = ' ' "Status
* STATUS_TEXT = ' ' "Status line text

IMPORTING
GR_MES = "User command
GR_SEL_FIELD = "Selected field
M_TYP = "Message type
RWNID = "Return window ID
SETTINGS = "Settings

TABLES
AREA_POSITIONS = "Field positions
BOXES = "Boxes
BVALS = "Box attributes
* DELETIONS = "Objects to be deleted
FRAMES = "Frames
FVALS = "Frame attributes
* INODES = "Node area nodes
NVALS = "Node attributes

EXCEPTIONS
ERR_IN_PROFILE = 1 INV_PROFILE = 2 INV_WINID = 3 NO_BATCH = 4 FRONTEND_ERROR = 5 INV_COMMUNICATION = 6
.



IMPORTING Parameters details for CNET_GRAPHIC_CLUSTER

ABAP_CMD - Command to graphics

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

SUPER - Parameters for closing the window

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

TITLEBAR - Window title

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

WAIT_FOR_INPUT -

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

WINID - Window identification

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

CONFIRM - Indicator: Confirm mode

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

PROFILE - Graphics profile

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

PWDID - Parent window ID

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

SET_FOCUS - Indicator: Set focus

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

SO_CONTENTS - Document title

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

SO_SEND - Indicator: Send graphic

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

STAT - Status

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

STATUS_TEXT - Status line text

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

EXPORTING Parameters details for CNET_GRAPHIC_CLUSTER

GR_MES - User command

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

GR_SEL_FIELD - Selected field

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

M_TYP - Message type

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

RWNID - Return window ID

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

SETTINGS - Settings

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

TABLES Parameters details for CNET_GRAPHIC_CLUSTER

AREA_POSITIONS - Field positions

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

BOXES - Boxes

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

BVALS - Box attributes

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

DELETIONS - Objects to be deleted

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

FRAMES - Frames

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

FVALS - Frame attributes

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

INODES - Node area nodes

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

NVALS - Node attributes

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

EXCEPTIONS details

ERR_IN_PROFILE - Error in the graphics profile

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

INV_PROFILE - Incorrect graphics profile

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

INV_WINID - Incorrect window ID

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

NO_BATCH - No batch processing

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

FRONTEND_ERROR - Error in the frontend software

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

INV_COMMUNICATION - Internal communication error

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

Copy and paste ABAP code example for CNET_GRAPHIC_CLUSTER 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_gr_mes  TYPE NET_GRAPH-GR_MES, "   
lv_abap_cmd  TYPE NET_GRAPH-ABAP_CMD, "   SPACE
lt_area_positions  TYPE STANDARD TABLE OF NET_ARPOS, "   
lv_err_in_profile  TYPE NET_ARPOS, "   
lv_super  TYPE NET_GRAPH-SUPER, "   SPACE
lv_titlebar  TYPE NET_GRAPH-TITLEBAR, "   SPACE
lv_wait_for_input  TYPE NET_GRAPH-FLAG, "   'X'
lv_winid  TYPE NET_GRAPH-WINID, "   SPACE
lt_boxes  TYPE STANDARD TABLE OF NET_BOXES, "   
lv_confirm  TYPE NET_SET-CONFIRM, "   SPACE
lv_inv_profile  TYPE NET_SET, "   
lv_gr_sel_field  TYPE NET_GRAPH-SEL_FIELD, "   
lt_bvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lv_m_typ  TYPE NET_GRAPH-M_TYP, "   
lv_profile  TYPE NET_PROFIL, "   'SAP DEFAULT 0'
lv_inv_winid  TYPE NET_PROFIL, "   
lv_pwdid  TYPE NET_GRAPH-PWDID, "   SPACE
lv_rwnid  TYPE NET_GRAPH-RWNID, "   
lv_no_batch  TYPE NET_GRAPH, "   
lt_deletions  TYPE STANDARD TABLE OF NET_DELETE, "   
lt_frames  TYPE STANDARD TABLE OF NET_FRAMES, "   
lv_settings  TYPE NET_SET, "   
lv_set_focus  TYPE NET_GRAPH-FLAG, "   'X'
lv_frontend_error  TYPE NET_GRAPH, "   
lt_fvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lv_so_contents  TYPE SOS00-S_OBJDES, "   SPACE
lv_inv_communication  TYPE SOS00, "   
lt_inodes  TYPE STANDARD TABLE OF CNG_INODES, "   
lv_so_send  TYPE NET_GRAPH-FLAG, "   SPACE
lv_stat  TYPE NET_GRAPH-STAT, "   SPACE
lt_nvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lv_status_text  TYPE NET_GRAPH-STATUSTEXT. "   SPACE

  CALL FUNCTION 'CNET_GRAPHIC_CLUSTER'  "Start graphical cluster editor
    EXPORTING
         ABAP_CMD = lv_abap_cmd
         SUPER = lv_super
         TITLEBAR = lv_titlebar
         WAIT_FOR_INPUT = lv_wait_for_input
         WINID = lv_winid
         CONFIRM = lv_confirm
         PROFILE = lv_profile
         PWDID = lv_pwdid
         SET_FOCUS = lv_set_focus
         SO_CONTENTS = lv_so_contents
         SO_SEND = lv_so_send
         STAT = lv_stat
         STATUS_TEXT = lv_status_text
    IMPORTING
         GR_MES = lv_gr_mes
         GR_SEL_FIELD = lv_gr_sel_field
         M_TYP = lv_m_typ
         RWNID = lv_rwnid
         SETTINGS = lv_settings
    TABLES
         AREA_POSITIONS = lt_area_positions
         BOXES = lt_boxes
         BVALS = lt_bvals
         DELETIONS = lt_deletions
         FRAMES = lt_frames
         FVALS = lt_fvals
         INODES = lt_inodes
         NVALS = lt_nvals
    EXCEPTIONS
        ERR_IN_PROFILE = 1
        INV_PROFILE = 2
        INV_WINID = 3
        NO_BATCH = 4
        FRONTEND_ERROR = 5
        INV_COMMUNICATION = 6
. " CNET_GRAPHIC_CLUSTER




ABAP code using 7.40 inline data declarations to call FM CNET_GRAPHIC_CLUSTER

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 GR_MES FROM NET_GRAPH INTO @DATA(ld_gr_mes).
 
"SELECT single ABAP_CMD FROM NET_GRAPH INTO @DATA(ld_abap_cmd).
DATA(ld_abap_cmd) = ' '.
 
 
 
"SELECT single SUPER FROM NET_GRAPH INTO @DATA(ld_super).
DATA(ld_super) = ' '.
 
"SELECT single TITLEBAR FROM NET_GRAPH INTO @DATA(ld_titlebar).
DATA(ld_titlebar) = ' '.
 
"SELECT single FLAG FROM NET_GRAPH INTO @DATA(ld_wait_for_input).
DATA(ld_wait_for_input) = 'X'.
 
"SELECT single WINID FROM NET_GRAPH INTO @DATA(ld_winid).
DATA(ld_winid) = ' '.
 
 
"SELECT single CONFIRM FROM NET_SET INTO @DATA(ld_confirm).
DATA(ld_confirm) = ' '.
 
 
"SELECT single SEL_FIELD FROM NET_GRAPH INTO @DATA(ld_gr_sel_field).
 
 
"SELECT single M_TYP FROM NET_GRAPH INTO @DATA(ld_m_typ).
 
DATA(ld_profile) = 'SAP DEFAULT 0'.
 
 
"SELECT single PWDID FROM NET_GRAPH INTO @DATA(ld_pwdid).
DATA(ld_pwdid) = ' '.
 
"SELECT single RWNID FROM NET_GRAPH INTO @DATA(ld_rwnid).
 
 
 
 
 
"SELECT single FLAG FROM NET_GRAPH INTO @DATA(ld_set_focus).
DATA(ld_set_focus) = 'X'.
 
 
 
"SELECT single S_OBJDES FROM SOS00 INTO @DATA(ld_so_contents).
DATA(ld_so_contents) = ' '.
 
 
 
"SELECT single FLAG FROM NET_GRAPH INTO @DATA(ld_so_send).
DATA(ld_so_send) = ' '.
 
"SELECT single STAT FROM NET_GRAPH INTO @DATA(ld_stat).
DATA(ld_stat) = ' '.
 
 
"SELECT single STATUSTEXT FROM NET_GRAPH INTO @DATA(ld_status_text).
DATA(ld_status_text) = ' '.
 


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!