SAP NW_GR_LOGIC_NETWORK Function Module for Management of logic of networks
NW_GR_LOGIC_NETWORK is a standard nw gr logic network SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Management of logic of networks 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 nw gr logic network FM, simply by entering the name NW_GR_LOGIC_NETWORK into the relevant SAP transaction such as SE37 or SE38.
Function Group: NWGR
Program Name: SAPLNWGR
Main Program: SAPLNWGR
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function NW_GR_LOGIC_NETWORK 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 'NW_GR_LOGIC_NETWORK'"Management of logic of networks.
EXPORTING
* LG_MES = ' ' "
* LG_MODE = ' ' "
TABLES
* CLUSTERS = "
* CVALS = "
DELETIONS = "Nodes and links to be deleted
LINES = "
LVALS = "
NODES = "
NVALS = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLNWGR_001 Network Maintenance: Fill Nodes with Other Information
EXIT_SAPLNWGR_002 Network Maintenance: Fill DIN field in Legend with Other Information
EXIT_SAPLNWGR_004 PS Info System: Fill Nodes in Network/Hierarchy and Structure with Info
IMPORTING Parameters details for NW_GR_LOGIC_NETWORK
LG_MES -
Data type: NET_GRAPH-GR_MESDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LG_MODE -
Data type: NET_GRAPH-GR_MODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for NW_GR_LOGIC_NETWORK
CLUSTERS -
Data type: CNG_CLUSTROptional: Yes
Call by Reference: No ( called with pass by value option)
CVALS -
Data type: NET_CVALSOptional: Yes
Call by Reference: No ( called with pass by value option)
DELETIONS - Nodes and links to be deleted
Data type: NET_DELETEOptional: No
Call by Reference: No ( called with pass by value option)
LINES -
Data type: CNG_LINESOptional: No
Call by Reference: No ( called with pass by value option)
LVALS -
Data type: NET_LVALSOptional: No
Call by Reference: No ( called with pass by value option)
NODES -
Data type: CNG_NODESOptional: No
Call by Reference: No ( called with pass by value option)
NVALS -
Data type: NET_NVALSOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for NW_GR_LOGIC_NETWORK 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_lg_mes | TYPE NET_GRAPH-GR_MES, " SPACE | |||
| lt_clusters | TYPE STANDARD TABLE OF CNG_CLUSTR, " | |||
| lt_cvals | TYPE STANDARD TABLE OF NET_CVALS, " | |||
| lv_lg_mode | TYPE NET_GRAPH-GR_MODE, " SPACE | |||
| 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 'NW_GR_LOGIC_NETWORK' "Management of logic of networks |
| EXPORTING | ||
| LG_MES | = lv_lg_mes | |
| LG_MODE | = lv_lg_mode | |
| TABLES | ||
| CLUSTERS | = lt_clusters | |
| CVALS | = lt_cvals | |
| DELETIONS | = lt_deletions | |
| LINES | = lt_lines | |
| LVALS | = lt_ltals | |
| NODES | = lt_nodes | |
| NVALS | = lt_nvals | |
| . " NW_GR_LOGIC_NETWORK | ||
ABAP code using 7.40 inline data declarations to call FM NW_GR_LOGIC_NETWORK
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_lg_mes). | ||||
| DATA(ld_lg_mes) | = ' '. | |||
| "SELECT single GR_MODE FROM NET_GRAPH INTO @DATA(ld_lg_mode). | ||||
| DATA(ld_lg_mode) | = ' '. | |||
Search for further information about these or an SAP related objects