SAP EXIT_SAPMM06E_013 Function Module for Update Customer's Own Data in Purchasing Document









EXIT_SAPMM06E_013 is a standard exit sapmm06e 013 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update Customer's Own Data in Purchasing Document 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 sapmm06e 013 FM, simply by entering the name EXIT_SAPMM06E_013 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPMM06E_013 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_SAPMM06E_013'"Update Customer's Own Data in Purchasing Document
EXPORTING
I_EKKO = "New Purchasing Document Header
I_EKKO_OLD = "Old Purchasing Document Header
* I_LOGSY = "Logical System (ALE)
* I_VORGA = "Transaction/Event in Purchasing Document

TABLES
XEKET = "Schedule Line Table (New)
* XEKES = "New Confirmations
* XEKEH = "New Release History for Scheduling Agreement
* XEKEK = "New Release History for Scheduling Agreement
* XEINA = "New Info Records (General Data)
* XEINE = "New Info Records (Purchasing Organization Data)
* YEINA = "Old Info Records (General Data)
* YEINE = "Old Info Records (Purchasing Organization Data)
* YEKES = "Old Confirmations
* YEKEH = "Old Release History for Scheduling Agreement
* YEKEK = "Old Release History for Scheduling Agreement
XEKKN = "Account Assignment Table (New)
* XBATU = "Purchase Requisitions
* XEKPA = "New Partners
* YEKPA = "Old Partners
* XEKPV = "Shipping-Specific Data
XEKPO = "Item Table (New)
XKOMV = "Condition Table (New)
YEKET = "Schedule Line Table (Old)
YEKKN = "Account Assignment Table (Old)
YEKPO = "Item Table (Old)
YKOMVI = "Condition Table (Old)
XEKBES = "PO History Totals Records
.



IMPORTING Parameters details for EXIT_SAPMM06E_013

I_EKKO - New Purchasing Document Header

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

I_EKKO_OLD - Old Purchasing Document Header

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

I_LOGSY - Logical System (ALE)

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

I_VORGA - Transaction/Event in Purchasing Document

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

TABLES Parameters details for EXIT_SAPMM06E_013

XEKET - Schedule Line Table (New)

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

XEKES - New Confirmations

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

XEKEH - New Release History for Scheduling Agreement

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

XEKEK - New Release History for Scheduling Agreement

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

XEINA - New Info Records (General Data)

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

XEINE - New Info Records (Purchasing Organization Data)

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

YEINA - Old Info Records (General Data)

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

YEINE - Old Info Records (Purchasing Organization Data)

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

YEKES - Old Confirmations

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

YEKEH - Old Release History for Scheduling Agreement

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

YEKEK - Old Release History for Scheduling Agreement

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

XEKKN - Account Assignment Table (New)

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

XBATU - Purchase Requisitions

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

XEKPA - New Partners

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

YEKPA - Old Partners

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

XEKPV - Shipping-Specific Data

Data type: EKPV
Optional: Yes
Call by Reference: Yes

XEKPO - Item Table (New)

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

XKOMV - Condition Table (New)

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

YEKET - Schedule Line Table (Old)

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

YEKKN - Account Assignment Table (Old)

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

YEKPO - Item Table (Old)

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

YKOMVI - Condition Table (Old)

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

XEKBES - PO History Totals Records

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

Copy and paste ABAP code example for EXIT_SAPMM06E_013 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_xeket  TYPE STANDARD TABLE OF UEKET, "   
lv_i_ekko  TYPE EKKO, "   
lt_xekes  TYPE STANDARD TABLE OF UEKES, "   
lt_xekeh  TYPE STANDARD TABLE OF IEKEH, "   
lt_xekek  TYPE STANDARD TABLE OF UEKEK, "   
lt_xeina  TYPE STANDARD TABLE OF EINAU, "   
lt_xeine  TYPE STANDARD TABLE OF EINEU, "   
lt_yeina  TYPE STANDARD TABLE OF EINA, "   
lt_yeine  TYPE STANDARD TABLE OF EINE, "   
lt_yekes  TYPE STANDARD TABLE OF UEKES, "   
lt_yekeh  TYPE STANDARD TABLE OF IEKEH, "   
lt_yekek  TYPE STANDARD TABLE OF UEKEK, "   
lt_xekkn  TYPE STANDARD TABLE OF UEKKN, "   
lv_i_ekko_old  TYPE EKKO, "   
lt_xbatu  TYPE STANDARD TABLE OF FEBAN, "   
lt_xekpa  TYPE STANDARD TABLE OF UEKPA, "   
lt_yekpa  TYPE STANDARD TABLE OF UEKPA, "   
lt_xekpv  TYPE STANDARD TABLE OF EKPV, "   
lt_xekpo  TYPE STANDARD TABLE OF UEKPO, "   
lv_i_logsy  TYPE EKKO-LOGSY, "   
lt_xkomv  TYPE STANDARD TABLE OF KOMV, "   
lv_i_vorga  TYPE T160-VORGA, "   
lt_yeket  TYPE STANDARD TABLE OF UEKET, "   
lt_yekkn  TYPE STANDARD TABLE OF UEKKN, "   
lt_yekpo  TYPE STANDARD TABLE OF UEKPO, "   
lt_ykomvi  TYPE STANDARD TABLE OF KOMV, "   
lt_xekbes  TYPE STANDARD TABLE OF EKBES. "   

  CALL FUNCTION 'EXIT_SAPMM06E_013'  "Update Customer's Own Data in Purchasing Document
    EXPORTING
         I_EKKO = lv_i_ekko
         I_EKKO_OLD = lv_i_ekko_old
         I_LOGSY = lv_i_logsy
         I_VORGA = lv_i_vorga
    TABLES
         XEKET = lt_xeket
         XEKES = lt_xekes
         XEKEH = lt_xekeh
         XEKEK = lt_xekek
         XEINA = lt_xeina
         XEINE = lt_xeine
         YEINA = lt_yeina
         YEINE = lt_yeine
         YEKES = lt_yekes
         YEKEH = lt_yekeh
         YEKEK = lt_yekek
         XEKKN = lt_xekkn
         XBATU = lt_xbatu
         XEKPA = lt_xekpa
         YEKPA = lt_yekpa
         XEKPV = lt_xekpv
         XEKPO = lt_xekpo
         XKOMV = lt_xkomv
         YEKET = lt_yeket
         YEKKN = lt_yekkn
         YEKPO = lt_yekpo
         YKOMVI = lt_ykomvi
         XEKBES = lt_xekbes
. " EXIT_SAPMM06E_013




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMM06E_013

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 LOGSY FROM EKKO INTO @DATA(ld_i_logsy).
 
 
"SELECT single VORGA FROM T160 INTO @DATA(ld_i_vorga).
 
 
 
 
 
 


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!