SAP CNET_LOGIC_INET Function Module for Network logic management









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

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



Function CNET_LOGIC_INET 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_LOGIC_INET'"Network logic management
EXPORTING
* CONFIRM = ' ' "Confirm mode
* LG_MES = ' ' "Command
* LG_MODE = ' ' "Mode for inserting, duplicating
* LINE_TYPE_AT_GENERATION = '0' "Category of edges to be generated

TABLES
ALL_LINES = "All links
ALL_LVALS = "Values for all edges
ALL_NODES = "All nodes
ALL_NVALS = "Values for all nodes
DELETIONS = "Nodes and links to be deleted
LINES = "Links
LVALS = "Link values
NODES = "Nodes
NVALS = "Node values
.



IMPORTING Parameters details for CNET_LOGIC_INET

CONFIRM - Confirm mode

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

LG_MES - Command

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

LG_MODE - Mode for inserting, duplicating

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

LINE_TYPE_AT_GENERATION - Category of edges to be generated

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

TABLES Parameters details for CNET_LOGIC_INET

ALL_LINES - All links

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

ALL_LVALS - Values for all edges

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

ALL_NODES - All nodes

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

ALL_NVALS - Values for all nodes

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

DELETIONS - Nodes and links to be deleted

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

LINES - Links

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

LVALS - Link values

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

NODES - Nodes

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

NVALS - Node values

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

Copy and paste ABAP code example for CNET_LOGIC_INET 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_confirm  TYPE NET_SET-CONFIRM, "   SPACE
lt_all_lines  TYPE STANDARD TABLE OF CNG_LINES, "   
lv_lg_mes  TYPE NET_GRAPH-GR_MES, "   SPACE
lt_all_lvals  TYPE STANDARD TABLE OF NET_LVALS, "   
lv_lg_mode  TYPE NET_GRAPH-GR_MODE, "   SPACE
lt_all_nodes  TYPE STANDARD TABLE OF CNG_INODES, "   
lt_all_nvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lv_line_type_at_generation  TYPE CNG_LINES-TYPE, "   '0'
lt_deletions  TYPE STANDARD TABLE OF NET_DELETE, "   
lt_lines  TYPE STANDARD TABLE OF CNG_LINES, "   
lt_lvals  TYPE STANDARD TABLE OF NET_LVALS, "   
lt_nodes  TYPE STANDARD TABLE OF CNG_NODES, "   
lt_nvals  TYPE STANDARD TABLE OF NET_NVALS. "   

  CALL FUNCTION 'CNET_LOGIC_INET'  "Network logic management
    EXPORTING
         CONFIRM = lv_confirm
         LG_MES = lv_lg_mes
         LG_MODE = lv_lg_mode
         LINE_TYPE_AT_GENERATION = lv_line_type_at_generation
    TABLES
         ALL_LINES = lt_all_lines
         ALL_LVALS = lt_all_ltals
         ALL_NODES = lt_all_nodes
         ALL_NVALS = lt_all_nvals
         DELETIONS = lt_deletions
         LINES = lt_lines
         LVALS = lt_ltals
         NODES = lt_nodes
         NVALS = lt_nvals
. " CNET_LOGIC_INET




ABAP code using 7.40 inline data declarations to call FM CNET_LOGIC_INET

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 CONFIRM FROM NET_SET INTO @DATA(ld_confirm).
DATA(ld_confirm) = ' '.
 
 
"SELECT single GR_MES FROM NET_GRAPH INTO @DATA(ld_lg_mes).
DATA(ld_lg_mes) = ' '.
 
 
"SELECT single GR_MODE FROM NET_GRAPH INTO @DATA(ld_lg_mode).
DATA(ld_lg_mode) = ' '.
 
 
 
"SELECT single TYPE FROM CNG_LINES INTO @DATA(ld_line_type_at_generation).
DATA(ld_line_type_at_generation) = '0'.
 
 
 
 
 
 


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!