SAP SD_KNVV_MAINTAIN_EXIT Function Module for Exit maint. of further data in customer master record (addl table KNVV)









SD_KNVV_MAINTAIN_EXIT is a standard sd knvv maintain exit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Exit maint. of further data in customer master record (addl table KNVV) 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 sd knvv maintain exit FM, simply by entering the name SD_KNVV_MAINTAIN_EXIT into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_KNVV_MAINTAIN_EXIT 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 'SD_KNVV_MAINTAIN_EXIT'"Exit maint. of further data in customer master record (addl table KNVV)
EXPORTING
CUSTOMER_KNA1 = "Table KNA1 of current customer master
CUSTOMER_KNVV = "Table KNVV of current customer master
MAINTAIN_MODE = "Maintenance mode
UPDATE_SIGN = "Indicator: change in customer master

IMPORTING
CHANGED_KNVV = "Changed fields in Table KNVV
E_UPDATE_SIGN = "Indicator: change in function module
FUNCTION_CODE = "Function code for further processing

TABLES
TAB055 = "Table containing fields without change authorization

EXCEPTIONS
MAINTAIN_MODE_NOT_VALID = 1
.



IMPORTING Parameters details for SD_KNVV_MAINTAIN_EXIT

CUSTOMER_KNA1 - Table KNA1 of current customer master

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

CUSTOMER_KNVV - Table KNVV of current customer master

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

MAINTAIN_MODE - Maintenance mode

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

UPDATE_SIGN - Indicator: change in customer master

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

EXPORTING Parameters details for SD_KNVV_MAINTAIN_EXIT

CHANGED_KNVV - Changed fields in Table KNVV

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

E_UPDATE_SIGN - Indicator: change in function module

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

FUNCTION_CODE - Function code for further processing

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

TABLES Parameters details for SD_KNVV_MAINTAIN_EXIT

TAB055 - Table containing fields without change authorization

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

EXCEPTIONS details

MAINTAIN_MODE_NOT_VALID - Call with invalid maintenance mode

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

Copy and paste ABAP code example for SD_KNVV_MAINTAIN_EXIT 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_tab055  TYPE STANDARD TABLE OF STRING, "   
lv_changed_knvv  TYPE KNVVEXIT, "   
lv_customer_kna1  TYPE KNA1, "   
lv_maintain_mode_not_valid  TYPE KNA1, "   
lv_customer_knvv  TYPE KNVV, "   
lv_e_update_sign  TYPE KNVV, "   
lv_function_code  TYPE T185-FCODE, "   
lv_maintain_mode  TYPE T185, "   
lv_update_sign  TYPE T185. "   

  CALL FUNCTION 'SD_KNVV_MAINTAIN_EXIT'  "Exit maint. of further data in customer master record (addl table KNVV)
    EXPORTING
         CUSTOMER_KNA1 = lv_customer_kna1
         CUSTOMER_KNVV = lv_customer_knvv
         MAINTAIN_MODE = lv_maintain_mode
         UPDATE_SIGN = lv_update_sign
    IMPORTING
         CHANGED_KNVV = lv_changed_knvv
         E_UPDATE_SIGN = lv_e_update_sign
         FUNCTION_CODE = lv_function_code
    TABLES
         TAB055 = lt_tab055
    EXCEPTIONS
        MAINTAIN_MODE_NOT_VALID = 1
. " SD_KNVV_MAINTAIN_EXIT




ABAP code using 7.40 inline data declarations to call FM SD_KNVV_MAINTAIN_EXIT

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 FCODE FROM T185 INTO @DATA(ld_function_code).
 
 
 


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!