SAP SDU_LOGIC_MODEL Function Module for









SDU_LOGIC_MODEL is a standard sdu logic model SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sdu logic model FM, simply by entering the name SDU_LOGIC_MODEL into the relevant SAP transaction such as SE37 or SE38.

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



Function SDU_LOGIC_MODEL 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 'SDU_LOGIC_MODEL'"
EXPORTING
* LG_MES = ' ' "Command indicating what is to happen to data
* LG_MODE = ' ' "Mode for insertion, duplication

TABLES
ALL_CLUSTR = "All clusters
LINES = "Transfer table for lines
LVALS = "Transfer table for values for lines
NODES = "Transfer table for nodes
NVALS = "Transfer table for node values
ALL_CVALS = "All cluster assignments and values
ALL_LINES = "All lines
ALL_LVALS = "All values for all lines
ALL_NODES = "All nodes
ALL_NVALS = "All values for all nodes
CLUSTR = "Transfer table for clusters
CVALS = "Transfer table for cluster assignment and values
DELETIONS = "Deletion table

EXCEPTIONS
INV_LG_MES = 1 INV_LINE_FORMAT = 2 INV_LINE_HIGHLIGHT = 3
.



IMPORTING Parameters details for SDU_LOGIC_MODEL

LG_MES - Command indicating what is to happen to data

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

LG_MODE - Mode for insertion, duplication

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

TABLES Parameters details for SDU_LOGIC_MODEL

ALL_CLUSTR - All clusters

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

LINES - Transfer table for lines

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

LVALS - Transfer table for values for lines

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

NODES - Transfer table for nodes

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

NVALS - Transfer table for node values

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

ALL_CVALS - All cluster assignments and values

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

ALL_LINES - All lines

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

ALL_LVALS - All values for all lines

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 - All values for all nodes

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

CLUSTR - Transfer table for clusters

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

CVALS - Transfer table for cluster assignment and values

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

DELETIONS - Deletion table

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

EXCEPTIONS details

INV_LG_MES - Incorrect value in LG_MES

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

INV_LINE_FORMAT - Incorrect value in LINE_FORMAT

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

INV_LINE_HIGHLIGHT - Incorrect value in LINE_HIGHLIGHT

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

Copy and paste ABAP code example for SDU_LOGIC_MODEL 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_all_clustr  TYPE STANDARD TABLE OF CNG_CLUSTR, "   
lv_inv_lg_mes  TYPE CNG_CLUSTR, "   
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, "   
lv_lg_mode  TYPE NET_GRAPH-GR_MODE, "   SPACE
lt_all_cvals  TYPE STANDARD TABLE OF NET_CVALS, "   
lv_inv_line_format  TYPE NET_CVALS, "   
lt_all_lines  TYPE STANDARD TABLE OF CNG_LINES, "   
lv_inv_line_highlight  TYPE CNG_LINES, "   
lt_all_lvals  TYPE STANDARD TABLE OF NET_LVALS, "   
lt_all_nodes  TYPE STANDARD TABLE OF CNG_INODES, "   
lt_all_nvals  TYPE STANDARD TABLE OF NET_NVALS, "   
lt_clustr  TYPE STANDARD TABLE OF CNG_CLUSTR, "   
lt_cvals  TYPE STANDARD TABLE OF NET_CVALS, "   
lt_deletions  TYPE STANDARD TABLE OF NET_DELETE. "   

  CALL FUNCTION 'SDU_LOGIC_MODEL'  "
    EXPORTING
         LG_MES = lv_lg_mes
         LG_MODE = lv_lg_mode
    TABLES
         ALL_CLUSTR = lt_all_clustr
         LINES = lt_lines
         LVALS = lt_ltals
         NODES = lt_nodes
         NVALS = lt_nvals
         ALL_CVALS = lt_all_cvals
         ALL_LINES = lt_all_lines
         ALL_LVALS = lt_all_ltals
         ALL_NODES = lt_all_nodes
         ALL_NVALS = lt_all_nvals
         CLUSTR = lt_clustr
         CVALS = lt_cvals
         DELETIONS = lt_deletions
    EXCEPTIONS
        INV_LG_MES = 1
        INV_LINE_FORMAT = 2
        INV_LINE_HIGHLIGHT = 3
. " SDU_LOGIC_MODEL




ABAP code using 7.40 inline data declarations to call FM SDU_LOGIC_MODEL

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



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!