SAP EXIT_SAPMF02K_001 Function Module for Vendors: User Exit for Checks prior to Saving









EXIT_SAPMF02K_001 is a standard exit sapmf02k 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 Vendors: 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 sapmf02k 001 FM, simply by entering the name EXIT_SAPMF02K_001 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XF05
Program Name: SAPLXF05
Main Program:
Appliation area: F
Release date: 22-Dec-1994
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPMF02K_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_SAPMF02K_001'"Vendors: User Exit for Checks prior to Saving
EXPORTING
I_LFA1 = "Contents of structure LFA1
I_LFB1 = "Contents of structure LFB1
I_LFM1 = "Contents of structure LFM1
* I_ADDRHANDLE = "Address handle (temporary key)

TABLES
* T_LFBK = "Bank details
* T_WYT1T = "
* T_WYT3 = "
* T_LFB5 = "Dunning areas
* T_LFZA = "Alternative payee
* T_LFBW = "Withholding tax
* T_LFAS = "
* T_LFAT = "
* T_LFLR = "
* T_LFM2 = "
* T_WYT1 = "
.



IMPORTING Parameters details for EXIT_SAPMF02K_001

I_LFA1 - Contents of structure LFA1

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

I_LFB1 - Contents of structure LFB1

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

I_LFM1 - Contents of structure LFM1

Data type: LFM1
Optional: No
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_SAPMF02K_001

T_LFBK - Bank details

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

T_WYT1T -

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

T_WYT3 -

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

T_LFB5 - Dunning areas

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

T_LFZA - Alternative payee

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

T_LFBW - Withholding tax

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

T_LFAS -

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

T_LFAT -

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

T_LFLR -

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

T_LFM2 -

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

T_WYT1 -

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

Copy and paste ABAP code example for EXIT_SAPMF02K_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_lfa1  TYPE LFA1, "   
lt_t_lfbk  TYPE STANDARD TABLE OF LFBK, "   
lt_t_wyt1t  TYPE STANDARD TABLE OF WYT1T, "   
lt_t_wyt3  TYPE STANDARD TABLE OF WYT3, "   
lv_i_lfb1  TYPE LFB1, "   
lt_t_lfb5  TYPE STANDARD TABLE OF LFB5, "   
lv_i_lfm1  TYPE LFM1, "   
lt_t_lfza  TYPE STANDARD TABLE OF LFZA, "   
lt_t_lfbw  TYPE STANDARD TABLE OF LFBW, "   
lv_i_addrhandle  TYPE ADDR1_SEL-ADDRHANDLE, "   
lt_t_lfas  TYPE STANDARD TABLE OF LFAS, "   
lt_t_lfat  TYPE STANDARD TABLE OF LFAT, "   
lt_t_lflr  TYPE STANDARD TABLE OF LFLR, "   
lt_t_lfm2  TYPE STANDARD TABLE OF LFM2, "   
lt_t_wyt1  TYPE STANDARD TABLE OF WYT1. "   

  CALL FUNCTION 'EXIT_SAPMF02K_001'  "Vendors: User Exit for Checks prior to Saving
    EXPORTING
         I_LFA1 = lv_i_lfa1
         I_LFB1 = lv_i_lfb1
         I_LFM1 = lv_i_lfm1
         I_ADDRHANDLE = lv_i_addrhandle
    TABLES
         T_LFBK = lt_t_lfbk
         T_WYT1T = lt_t_wyt1t
         T_WYT3 = lt_t_wyt3
         T_LFB5 = lt_t_lfb5
         T_LFZA = lt_t_lfza
         T_LFBW = lt_t_lfbw
         T_LFAS = lt_t_lfas
         T_LFAT = lt_t_lfat
         T_LFLR = lt_t_lflr
         T_LFM2 = lt_t_lfm2
         T_WYT1 = lt_t_wyt1
. " EXIT_SAPMF02K_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMF02K_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!