SAP EXIT_SAPMF02D_001 Function Module for Customers: User Exit for Checks prior to Saving









EXIT_SAPMF02D_001 is a standard exit sapmf02d 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customers: User Exit for Checks prior to Saving 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 exit sapmf02d 001 FM, simply by entering the name EXIT_SAPMF02D_001 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XF04
Program Name: SAPLXF04
Main Program:
Appliation area: F
Release date: 25-Nov-1994
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPMF02D_001 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 'EXIT_SAPMF02D_001'"Customers: User Exit for Checks prior to Saving
EXPORTING
I_KNA1 = "General data
* I_KNB1 = "Company code data
* I_KNVV = "Sales area data
* I_ADDRHANDLE = "Address handle (temporary key)

TABLES
* T_KNAS = "VAT registration numbers
* T_KNVK = "Contact person
* T_KNVL = "Licenses
* T_KNVP = "Partner functions
* T_KNZA = "Alternative payer
* T_KNAT = "Tax groupings
* T_KNB5 = "Dunning data
* T_KNBK = "Bank details
* T_KNBW = "Withholding tax types
* T_KNEX = "Export data/foreign trade
* T_KNVA = "Unloading points
* T_KNVD = "Document request for SD/messages
* T_KNVI = "Tax indicators
.



IMPORTING Parameters details for EXIT_SAPMF02D_001

I_KNA1 - General data

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

I_KNB1 - Company code data

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

I_KNVV - Sales area data

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

I_ADDRHANDLE - Address handle (temporary key)

Data type: ADDR1_SEL-ADDRHANDLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for EXIT_SAPMF02D_001

T_KNAS - VAT registration numbers

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

T_KNVK - Contact person

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

T_KNVL - Licenses

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

T_KNVP - Partner functions

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

T_KNZA - Alternative payer

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

T_KNAT - Tax groupings

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

T_KNB5 - Dunning data

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

T_KNBK - Bank details

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

T_KNBW - Withholding tax types

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

T_KNEX - Export data/foreign trade

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

T_KNVA - Unloading points

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

T_KNVD - Document request for SD/messages

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

T_KNVI - Tax indicators

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

Copy and paste ABAP code example for EXIT_SAPMF02D_001 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_i_kna1  TYPE KNA1, "   
lt_t_knas  TYPE STANDARD TABLE OF KNAS, "   
lt_t_knvk  TYPE STANDARD TABLE OF KNVK, "   
lt_t_knvl  TYPE STANDARD TABLE OF KNVL, "   
lt_t_knvp  TYPE STANDARD TABLE OF KNVP, "   
lt_t_knza  TYPE STANDARD TABLE OF KNZA, "   
lv_i_knb1  TYPE KNB1, "   
lt_t_knat  TYPE STANDARD TABLE OF KNAT, "   
lv_i_knvv  TYPE KNVV, "   
lt_t_knb5  TYPE STANDARD TABLE OF KNB5, "   
lt_t_knbk  TYPE STANDARD TABLE OF KNBK, "   
lv_i_addrhandle  TYPE ADDR1_SEL-ADDRHANDLE, "   
lt_t_knbw  TYPE STANDARD TABLE OF KNBW, "   
lt_t_knex  TYPE STANDARD TABLE OF KNEX, "   
lt_t_knva  TYPE STANDARD TABLE OF KNVA, "   
lt_t_knvd  TYPE STANDARD TABLE OF KNVD, "   
lt_t_knvi  TYPE STANDARD TABLE OF KNVI. "   

  CALL FUNCTION 'EXIT_SAPMF02D_001'  "Customers: User Exit for Checks prior to Saving
    EXPORTING
         I_KNA1 = lv_i_kna1
         I_KNB1 = lv_i_knb1
         I_KNVV = lv_i_knvv
         I_ADDRHANDLE = lv_i_addrhandle
    TABLES
         T_KNAS = lt_t_knas
         T_KNVK = lt_t_knvk
         T_KNVL = lt_t_knvl
         T_KNVP = lt_t_knvp
         T_KNZA = lt_t_knza
         T_KNAT = lt_t_knat
         T_KNB5 = lt_t_knb5
         T_KNBK = lt_t_knbk
         T_KNBW = lt_t_knbw
         T_KNEX = lt_t_knex
         T_KNVA = lt_t_knva
         T_KNVD = lt_t_knvd
         T_KNVI = lt_t_knvi
. " EXIT_SAPMF02D_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMF02D_001

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 ADDRHANDLE FROM ADDR1_SEL INTO @DATA(ld_i_addrhandle).
 
 
 
 
 
 


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!