SAP EXIT_SAPMM06E_007 Function Module for Export Data to Customer Subscreen for Purchasing Document Header (PAI)









EXIT_SAPMM06E_007 is a standard exit sapmm06e 007 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Export Data to Customer Subscreen for Purchasing Document Header (PAI) 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 007 FM, simply by entering the name EXIT_SAPMM06E_007 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_007 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_007'"Export Data to Customer Subscreen for Purchasing Document Header (PAI)
EXPORTING
I_EKKO = "Document Header
* I_EKKO_OLD = "
I_VORGA = "
* I_UCOMM = "
I_TRTYP = "Create, Change, Display
I_BSTYP = "Document Category (Purchase Order, RFQ, ...)
I_NO_SCREEN = "No Screen Input Possible
I_LFA1 = "Vendor: General Data
I_LFM1 = "Vendor: Purchasing Organization Data
I_KEKKO = "Header Data of Contract (Contract Release Order)
I_AEKKO = "Header Data of RFQ (Reference RFQ)
I_REKKO = "Header Data of Reference document (Reference Copy)

TABLES
* TEKPO = "All Items of Purchasing Document
* TEKET = "All Delivery Schedule Lines of Purchasing Document
* TEKKN = "All Account Assignments of Purchasing Document
* TKOMV = "All Conditions of Purchasing Document
.



IMPORTING Parameters details for EXIT_SAPMM06E_007

I_EKKO - Document Header

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

I_EKKO_OLD -

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

I_VORGA -

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

I_UCOMM -

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

I_TRTYP - Create, Change, Display

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

I_BSTYP - Document Category (Purchase Order, RFQ, ...)

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

I_NO_SCREEN - No Screen Input Possible

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

I_LFA1 - Vendor: General Data

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

I_LFM1 - Vendor: Purchasing Organization Data

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

I_KEKKO - Header Data of Contract (Contract Release Order)

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

I_AEKKO - Header Data of RFQ (Reference RFQ)

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

I_REKKO - Header Data of Reference document (Reference Copy)

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

TABLES Parameters details for EXIT_SAPMM06E_007

TEKPO - All Items of Purchasing Document

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

TEKET - All Delivery Schedule Lines of Purchasing Document

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

TEKKN - All Account Assignments of Purchasing Document

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

TKOMV - All Conditions of Purchasing Document

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

Copy and paste ABAP code example for EXIT_SAPMM06E_007 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_tekpo  TYPE STANDARD TABLE OF BEKPO, "   
lv_i_ekko  TYPE EKKO, "   
lv_i_ekko_old  TYPE EKKO, "   
lv_i_vorga  TYPE T160-VORGA, "   
lv_i_ucomm  TYPE SY-UCOMM, "   
lt_teket  TYPE STANDARD TABLE OF BEKET, "   
lv_i_trtyp  TYPE BEKET, "   
lt_tekkn  TYPE STANDARD TABLE OF EKKNU, "   
lv_i_bstyp  TYPE EKKO-BSTYP, "   
lt_tkomv  TYPE STANDARD TABLE OF KOMV, "   
lv_i_no_screen  TYPE KOMV, "   
lv_i_lfa1  TYPE LFA1, "   
lv_i_lfm1  TYPE LFM1, "   
lv_i_kekko  TYPE EKKO, "   
lv_i_aekko  TYPE EKKO, "   
lv_i_rekko  TYPE EKKO. "   

  CALL FUNCTION 'EXIT_SAPMM06E_007'  "Export Data to Customer Subscreen for Purchasing Document Header (PAI)
    EXPORTING
         I_EKKO = lv_i_ekko
         I_EKKO_OLD = lv_i_ekko_old
         I_VORGA = lv_i_vorga
         I_UCOMM = lv_i_ucomm
         I_TRTYP = lv_i_trtyp
         I_BSTYP = lv_i_bstyp
         I_NO_SCREEN = lv_i_no_screen
         I_LFA1 = lv_i_lfa1
         I_LFM1 = lv_i_lfm1
         I_KEKKO = lv_i_kekko
         I_AEKKO = lv_i_aekko
         I_REKKO = lv_i_rekko
    TABLES
         TEKPO = lt_tekpo
         TEKET = lt_teket
         TEKKN = lt_tekkn
         TKOMV = lt_tkomv
. " EXIT_SAPMM06E_007




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMM06E_007

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 VORGA FROM T160 INTO @DATA(ld_i_vorga).
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_i_ucomm).
 
 
 
 
"SELECT single BSTYP FROM EKKO INTO @DATA(ld_i_bstyp).
 
 
 
 
 
 
 
 


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!