SAP FZ_MATRIX_ADD_ROWS Function Module for Addiert die Zeileneinträge einer Matrix









FZ_MATRIX_ADD_ROWS is a standard fz matrix add rows SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Addiert die Zeileneinträge einer Matrix 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 fz matrix add rows FM, simply by entering the name FZ_MATRIX_ADD_ROWS into the relevant SAP transaction such as SE37 or SE38.

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



Function FZ_MATRIX_ADD_ROWS 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 'FZ_MATRIX_ADD_ROWS'"Addiert die Zeileneinträge einer Matrix
EXPORTING
I_MATRIX = "Die Matrix
I_MATRIX_ROWS = "Anzahl Zeilen der MAtrix
I_MATRIX_COLS = "Anzahl Spalten der Matrix
I_ROW = "Einträge welcher Zeile addiert werden sollen.

IMPORTING
E_SUM = "Die Summe der Einträge der fraglichen Zeile
.



IMPORTING Parameters details for FZ_MATRIX_ADD_ROWS

I_MATRIX - Die Matrix

Data type: FZP_DEALRISK2FAZCOLLAT_TAB
Optional: No
Call by Reference: Yes

I_MATRIX_ROWS - Anzahl Zeilen der MAtrix

Data type: I
Optional: No
Call by Reference: Yes

I_MATRIX_COLS - Anzahl Spalten der Matrix

Data type: I
Optional: No
Call by Reference: Yes

I_ROW - Einträge welcher Zeile addiert werden sollen.

Data type: I
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FZ_MATRIX_ADD_ROWS

E_SUM - Die Summe der Einträge der fraglichen Zeile

Data type: FZDE_AMOUNT
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FZ_MATRIX_ADD_ROWS 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_e_sum  TYPE FZDE_AMOUNT, "   
lv_i_matrix  TYPE FZP_DEALRISK2FAZCOLLAT_TAB, "   
lv_i_matrix_rows  TYPE I, "   
lv_i_matrix_cols  TYPE I, "   
lv_i_row  TYPE I. "   

  CALL FUNCTION 'FZ_MATRIX_ADD_ROWS'  "Addiert die Zeileneinträge einer Matrix
    EXPORTING
         I_MATRIX = lv_i_matrix
         I_MATRIX_ROWS = lv_i_matrix_rows
         I_MATRIX_COLS = lv_i_matrix_cols
         I_ROW = lv_i_row
    IMPORTING
         E_SUM = lv_e_sum
. " FZ_MATRIX_ADD_ROWS




ABAP code using 7.40 inline data declarations to call FM FZ_MATRIX_ADD_ROWS

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.

 
 
 
 
 


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!