SAP CNET_GRAPHIC_PAI Function Module for Analyze data returned by the graphic (PAI time)









CNET_GRAPHIC_PAI is a standard cnet graphic pai SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Analyze data returned by the graphic (PAI time) 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 pai FM, simply by entering the name CNET_GRAPHIC_PAI 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_PAI 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_PAI'"Analyze data returned by the graphic (PAI time)
EXPORTING
* INDXKEY = "Database key for archive
* ACTIVATE_HELP = 'X' "WinHelp active
* CONTROL_HANDLE = "Control handle
* AT_CONTROL_DESTROY = "Clean-up when control deleted
* INSTANCE = "Network object

IMPORTING
GR_MES = "Abbreviation for user command
GR_MODE = "Mode for inserting, duplicating, shifting, ...
GR_SEL_FIELD = "Selected field
SETTINGS = "Settings

TABLES
* BOXES = "Boxes (cluster editor)
* NODES = "Nodes
* NVALS = "Node attributes
* POSITIONS = "Positions
* BVALS = "Box attributes (cluster editor)
* CLUSTERS = "Frame/cluster
* CVALS = "Frame/cluster attributes
* DELETIONS = "Nodes and links to be deleted
* FRAMES = "Frame (cluster editor)
* FVALS = "Frame attributes (cluster editor)
* LINES = "Links
* LVALS = "Link attributes

EXCEPTIONS
INV_WINID = 1
.



IMPORTING Parameters details for CNET_GRAPHIC_PAI

INDXKEY - Database key for archive

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

ACTIVATE_HELP - WinHelp active

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

CONTROL_HANDLE - Control handle

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

AT_CONTROL_DESTROY - Clean-up when control deleted

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

INSTANCE - Network object

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

EXPORTING Parameters details for CNET_GRAPHIC_PAI

GR_MES - Abbreviation for user command

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

GR_MODE - Mode for inserting, duplicating, shifting, ...

Data type: NET_GRAPH-GR_MODE
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)

SETTINGS - Settings

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

TABLES Parameters details for CNET_GRAPHIC_PAI

BOXES - Boxes (cluster editor)

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

NODES - Nodes

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

NVALS - Node attributes

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

POSITIONS - Positions

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

BVALS - Box attributes (cluster editor)

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

CLUSTERS - Frame/cluster

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

CVALS - Frame/cluster attributes

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

DELETIONS - Nodes and links to be deleted

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

FRAMES - Frame (cluster editor)

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

FVALS - Frame attributes (cluster editor)

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

LINES - Links

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

LVALS - Link attributes

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

EXCEPTIONS details

INV_WINID - Incorrect window ID

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

Copy and paste ABAP code example for CNET_GRAPHIC_PAI 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_boxes  TYPE STANDARD TABLE OF NET_BOXES, "   
lv_gr_mes  TYPE NET_GRAPH-GR_MES, "   
lv_indxkey  TYPE INDX-SRTFD, "   
lv_inv_winid  TYPE INDX, "   
lt_nodes  TYPE STANDARD TABLE OF CNG_NODES, "   
lt_nvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lt_positions  TYPE STANDARD TABLE OF NET_POS, "   
lt_bvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lv_gr_mode  TYPE NET_GRAPH-GR_MODE, "   
lv_activate_help  TYPE C, "   'X'
lt_clusters  TYPE STANDARD TABLE OF CNG_CLUSTR, "   
lv_gr_sel_field  TYPE NET_GRAPH-SEL_FIELD, "   
lv_control_handle  TYPE CNTL_HANDLE, "   
lt_cvals  TYPE STANDARD TABLE OF NET_CVALS, "   
lv_settings  TYPE NET_SET, "   
lv_at_control_destroy  TYPE C, "   
lv_instance  TYPE CL_GUI_NETCHART, "   
lt_deletions  TYPE STANDARD TABLE OF NET_DELETE, "   
lt_frames  TYPE STANDARD TABLE OF NET_FRAMES, "   
lt_fvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lt_lines  TYPE STANDARD TABLE OF CNG_LINES, "   
lt_lvals  TYPE STANDARD TABLE OF NET_LVALS. "   

  CALL FUNCTION 'CNET_GRAPHIC_PAI'  "Analyze data returned by the graphic (PAI time)
    EXPORTING
         INDXKEY = lv_indxkey
         ACTIVATE_HELP = lv_activate_help
         CONTROL_HANDLE = lv_control_handle
         AT_CONTROL_DESTROY = lv_at_control_destroy
         INSTANCE = lv_instance
    IMPORTING
         GR_MES = lv_gr_mes
         GR_MODE = lv_gr_mode
         GR_SEL_FIELD = lv_gr_sel_field
         SETTINGS = lv_settings
    TABLES
         BOXES = lt_boxes
         NODES = lt_nodes
         NVALS = lt_nvals
         POSITIONS = lt_positions
         BVALS = lt_bvals
         CLUSTERS = lt_clusters
         CVALS = lt_cvals
         DELETIONS = lt_deletions
         FRAMES = lt_frames
         FVALS = lt_fvals
         LINES = lt_lines
         LVALS = lt_ltals
    EXCEPTIONS
        INV_WINID = 1
. " CNET_GRAPHIC_PAI




ABAP code using 7.40 inline data declarations to call FM CNET_GRAPHIC_PAI

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 SRTFD FROM INDX INTO @DATA(ld_indxkey).
 
 
 
 
 
 
"SELECT single GR_MODE FROM NET_GRAPH INTO @DATA(ld_gr_mode).
 
DATA(ld_activate_help) = 'X'.
 
 
"SELECT single SEL_FIELD FROM NET_GRAPH INTO @DATA(ld_gr_sel_field).
 
 
 
 
 
 
 
 
 
 
 


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!