SAP MMPUR_UI_GET_CUST_DATA Function Module for Delivers purchasing customizing data for search helps









MMPUR_UI_GET_CUST_DATA is a standard mmpur ui get cust data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delivers purchasing customizing data for search helps 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 mmpur ui get cust data FM, simply by entering the name MMPUR_UI_GET_CUST_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: MMPUR_UI_SRM_INTEGRATION
Program Name: SAPLMMPUR_UI_SRM_INTEGRATION
Main Program: SAPLMMPUR_UI_SRM_INTEGRATION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function MMPUR_UI_GET_CUST_DATA 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 'MMPUR_UI_GET_CUST_DATA'"Delivers purchasing customizing data for search helps
EXPORTING
* IF_BUKRS = "Select Company Code
* IF_LGORT = "Select Storage Location
* IF_MATKL = "Select Material Group
* IF_MTART = "Select Material Type
* IF_KNTTP = "Select Account Assignment Category
* IF_FRGGR_F = "Select Release Group for PO
* IF_FRGGR_B = "Select Release Group for PR
* IF_FRGCO_F = "Select Release Code for PO
* IF_FRGCO_B = "Select Release Code for PO
* IF_SPEC_NO = "Select Model Service Specification
* IF_WARPL = "Select Maitenance Plan
* IF_EKORG = "Select Purchasing Organization
* IF_FKNUM = "Select Shipment Cost Number
* IF_BWART = "Select Movement Type
* IF_SOBKZ = "Select Special Stock
* IF_BSTAE = "Select Confirmation Control
* IF_WERKS_BUKRS = "Select Company Code against Plant
* IRG_LANGU = "Language Key
* IF_EKGRP = "Select Purchasing Group
* IF_BSART_K = "Select Purchasing Document Contract
* IF_BSART_F = "Select Purchasing Document Purchase Order
* IF_BSART_L = "Select Purchasing Document Scheduling Agreement
* IF_BSART_B = "Select Purchasing Document Purchase Requisition
* IF_PSTYP = "Select Item Category
* IF_WERKS = "Select Plant

IMPORTING
ET_EKORG_SHLP = "Purchasing Organizations (for SRM Search Help)
ET_BSART_SHLP_B = "Purchasing Document Type Data: PR
ET_WERKS_SHLP = "Plants (for SRM Search Help)
ET_LGORT_SHLP = "Storage Location Data
ET_MATKL_SHLP_ID = "Material Group ID
ET_MATKL_SHLP = "Material Group Data
ET_MTART_SHLP_ID = "Material Type ID
ET_MTART_SHLP = "Material Type Data
ET_BUKRS_SHLP = "Company Codes (for SRM Search Help)
ET_PSTYP_SHLP = "Texts for Item Categories
ET_KNTTP_SHLP = "Account Assignment Category Data
ET_EKGRP_SHLP = "Purchasing Groups (for SRM Search Help)
ET_FRGCO_SHLP_B = "Release Codes of Purchase Requisition
ET_FRGCO_SHLP_F = "Release Codes of Purchase Order
ET_FRGGR_SHLP_B = "Release Groups of Purchase Requisition
ET_FRGGR_SHLP_F = "Release Groups of Purchase Order
ET_SPEC_NO_SHLP = "Model Service Specification
ET_WARPL_SHLP = "Maintenance Plan
ET_FKNUM_SHLP = "Shipment Cost Number
ET_BWART_SHLP = "Movement Type
ET_SOBKZ_SHLP = "Special Stock
ET_BSTAE_SHLP = "Confirmation Control
ET_BSART_SHLP_K_ID = "Purchasing Document Type ID: CO
ET_WERKS_BUKRS_SHLP = "Relation between Plant and Company Code
ET_BSART_SHLP_K = "Purchasing Document Type Data: CO
ET_BSART_SHLP_F_ID = "Purchasing Document Type ID: PO
ET_BSART_SHLP_F = "Purchasing Document Type Data: PO
ET_BSART_SHLP_L_ID = "Purchasing Document Type ID: SA
ET_BSART_SHLP_L = "Purchasing Document Type Data: SA
ET_BSART_SHLP_B_ID = "Purchasing Document Type ID: PR
.



IMPORTING Parameters details for MMPUR_UI_GET_CUST_DATA

IF_BUKRS - Select Company Code

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

IF_LGORT - Select Storage Location

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

IF_MATKL - Select Material Group

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

IF_MTART - Select Material Type

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

IF_KNTTP - Select Account Assignment Category

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

IF_FRGGR_F - Select Release Group for PO

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

IF_FRGGR_B - Select Release Group for PR

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

IF_FRGCO_F - Select Release Code for PO

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

IF_FRGCO_B - Select Release Code for PO

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

IF_SPEC_NO - Select Model Service Specification

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

IF_WARPL - Select Maitenance Plan

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

IF_EKORG - Select Purchasing Organization

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

IF_FKNUM - Select Shipment Cost Number

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

IF_BWART - Select Movement Type

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

IF_SOBKZ - Select Special Stock

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

IF_BSTAE - Select Confirmation Control

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

IF_WERKS_BUKRS - Select Company Code against Plant

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

IRG_LANGU - Language Key

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

IF_EKGRP - Select Purchasing Group

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

IF_BSART_K - Select Purchasing Document Contract

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

IF_BSART_F - Select Purchasing Document Purchase Order

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

IF_BSART_L - Select Purchasing Document Scheduling Agreement

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

IF_BSART_B - Select Purchasing Document Purchase Requisition

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

IF_PSTYP - Select Item Category

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

IF_WERKS - Select Plant

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

EXPORTING Parameters details for MMPUR_UI_GET_CUST_DATA

ET_EKORG_SHLP - Purchasing Organizations (for SRM Search Help)

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

ET_BSART_SHLP_B - Purchasing Document Type Data: PR

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

ET_WERKS_SHLP - Plants (for SRM Search Help)

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

ET_LGORT_SHLP - Storage Location Data

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

ET_MATKL_SHLP_ID - Material Group ID

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

ET_MATKL_SHLP - Material Group Data

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

ET_MTART_SHLP_ID - Material Type ID

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

ET_MTART_SHLP - Material Type Data

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

ET_BUKRS_SHLP - Company Codes (for SRM Search Help)

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

ET_PSTYP_SHLP - Texts for Item Categories

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

ET_KNTTP_SHLP - Account Assignment Category Data

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

ET_EKGRP_SHLP - Purchasing Groups (for SRM Search Help)

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

ET_FRGCO_SHLP_B - Release Codes of Purchase Requisition

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

ET_FRGCO_SHLP_F - Release Codes of Purchase Order

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

ET_FRGGR_SHLP_B - Release Groups of Purchase Requisition

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

ET_FRGGR_SHLP_F - Release Groups of Purchase Order

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

ET_SPEC_NO_SHLP - Model Service Specification

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

ET_WARPL_SHLP - Maintenance Plan

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

ET_FKNUM_SHLP - Shipment Cost Number

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

ET_BWART_SHLP - Movement Type

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

ET_SOBKZ_SHLP - Special Stock

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

ET_BSTAE_SHLP - Confirmation Control

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

ET_BSART_SHLP_K_ID - Purchasing Document Type ID: CO

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

ET_WERKS_BUKRS_SHLP - Relation between Plant and Company Code

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

ET_BSART_SHLP_K - Purchasing Document Type Data: CO

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

ET_BSART_SHLP_F_ID - Purchasing Document Type ID: PO

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

ET_BSART_SHLP_F - Purchasing Document Type Data: PO

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

ET_BSART_SHLP_L_ID - Purchasing Document Type ID: SA

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

ET_BSART_SHLP_L - Purchasing Document Type Data: SA

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

ET_BSART_SHLP_B_ID - Purchasing Document Type ID: PR

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

Copy and paste ABAP code example for MMPUR_UI_GET_CUST_DATA 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_if_bukrs  TYPE CHAR1, "   
lv_et_ekorg_shlp  TYPE MMPURUI_PORG_TTY, "   
lv_if_lgort  TYPE CHAR1, "   
lv_et_bsart_shlp_b  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_matkl  TYPE CHAR1, "   
lv_et_werks_shlp  TYPE MMPURUI_PLANT_TTY, "   
lv_if_mtart  TYPE CHAR1, "   
lv_et_lgort_shlp  TYPE MMPURUI_LGORT_TTY, "   
lv_if_knttp  TYPE CHAR1, "   
lv_et_matkl_shlp_id  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_if_frggr_f  TYPE CHAR1, "   
lv_et_matkl_shlp  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_frggr_b  TYPE CHAR1, "   
lv_et_mtart_shlp_id  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_if_frgco_f  TYPE CHAR1, "   
lv_et_mtart_shlp  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_frgco_b  TYPE CHAR1, "   
lv_et_bukrs_shlp  TYPE MMPURUI_COMP_CODE_TTY, "   
lv_if_spec_no  TYPE CHAR1, "   
lv_et_pstyp_shlp  TYPE MMPURUI_PSTYP_TXT_TTY, "   
lv_if_warpl  TYPE CHAR1, "   
lv_et_knttp_shlp  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_ekorg  TYPE CHAR1, "   
lv_et_ekgrp_shlp  TYPE MMPURUI_PGRP_TTY, "   
lv_if_fknum  TYPE CHAR1, "   
lv_et_frgco_shlp_b  TYPE MMPURUI_FRGCO_TTY, "   
lv_if_bwart  TYPE CHAR1, "   
lv_et_frgco_shlp_f  TYPE MMPURUI_FRGCO_TTY, "   
lv_if_sobkz  TYPE CHAR1, "   
lv_et_frggr_shlp_b  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_bstae  TYPE CHAR1, "   
lv_et_frggr_shlp_f  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_werks_bukrs  TYPE CHAR1, "   
lv_et_spec_no_shlp  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_irg_langu  TYPE TSPSRLANG, "   
lv_et_warpl_shlp  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_et_fknum_shlp  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_et_bwart_shlp  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_et_sobkz_shlp  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_et_bstae_shlp  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_ekgrp  TYPE CHAR1, "   
lv_et_bsart_shlp_k_id  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_et_werks_bukrs_shlp  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_bsart_k  TYPE CHAR1, "   
lv_et_bsart_shlp_k  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_bsart_f  TYPE CHAR1, "   
lv_et_bsart_shlp_f_id  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_if_bsart_l  TYPE CHAR1, "   
lv_et_bsart_shlp_f  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_bsart_b  TYPE CHAR1, "   
lv_et_bsart_shlp_l_id  TYPE MMPURUI_NAME_SHLP_TTY, "   
lv_if_pstyp  TYPE CHAR1, "   
lv_et_bsart_shlp_l  TYPE MMPURUI_NAMEVALUE_SHLP_TTY, "   
lv_if_werks  TYPE CHAR1, "   
lv_et_bsart_shlp_b_id  TYPE MMPURUI_NAME_SHLP_TTY. "   

  CALL FUNCTION 'MMPUR_UI_GET_CUST_DATA'  "Delivers purchasing customizing data for search helps
    EXPORTING
         IF_BUKRS = lv_if_bukrs
         IF_LGORT = lv_if_lgort
         IF_MATKL = lv_if_matkl
         IF_MTART = lv_if_mtart
         IF_KNTTP = lv_if_knttp
         IF_FRGGR_F = lv_if_frggr_f
         IF_FRGGR_B = lv_if_frggr_b
         IF_FRGCO_F = lv_if_frgco_f
         IF_FRGCO_B = lv_if_frgco_b
         IF_SPEC_NO = lv_if_spec_no
         IF_WARPL = lv_if_warpl
         IF_EKORG = lv_if_ekorg
         IF_FKNUM = lv_if_fknum
         IF_BWART = lv_if_bwart
         IF_SOBKZ = lv_if_sobkz
         IF_BSTAE = lv_if_bstae
         IF_WERKS_BUKRS = lv_if_werks_bukrs
         IRG_LANGU = lv_irg_langu
         IF_EKGRP = lv_if_ekgrp
         IF_BSART_K = lv_if_bsart_k
         IF_BSART_F = lv_if_bsart_f
         IF_BSART_L = lv_if_bsart_l
         IF_BSART_B = lv_if_bsart_b
         IF_PSTYP = lv_if_pstyp
         IF_WERKS = lv_if_werks
    IMPORTING
         ET_EKORG_SHLP = lv_et_ekorg_shlp
         ET_BSART_SHLP_B = lv_et_bsart_shlp_b
         ET_WERKS_SHLP = lv_et_werks_shlp
         ET_LGORT_SHLP = lv_et_lgort_shlp
         ET_MATKL_SHLP_ID = lv_et_matkl_shlp_id
         ET_MATKL_SHLP = lv_et_matkl_shlp
         ET_MTART_SHLP_ID = lv_et_mtart_shlp_id
         ET_MTART_SHLP = lv_et_mtart_shlp
         ET_BUKRS_SHLP = lv_et_bukrs_shlp
         ET_PSTYP_SHLP = lv_et_pstyp_shlp
         ET_KNTTP_SHLP = lv_et_knttp_shlp
         ET_EKGRP_SHLP = lv_et_ekgrp_shlp
         ET_FRGCO_SHLP_B = lv_et_frgco_shlp_b
         ET_FRGCO_SHLP_F = lv_et_frgco_shlp_f
         ET_FRGGR_SHLP_B = lv_et_frggr_shlp_b
         ET_FRGGR_SHLP_F = lv_et_frggr_shlp_f
         ET_SPEC_NO_SHLP = lv_et_spec_no_shlp
         ET_WARPL_SHLP = lv_et_warpl_shlp
         ET_FKNUM_SHLP = lv_et_fknum_shlp
         ET_BWART_SHLP = lv_et_bwart_shlp
         ET_SOBKZ_SHLP = lv_et_sobkz_shlp
         ET_BSTAE_SHLP = lv_et_bstae_shlp
         ET_BSART_SHLP_K_ID = lv_et_bsart_shlp_k_id
         ET_WERKS_BUKRS_SHLP = lv_et_werks_bukrs_shlp
         ET_BSART_SHLP_K = lv_et_bsart_shlp_k
         ET_BSART_SHLP_F_ID = lv_et_bsart_shlp_f_id
         ET_BSART_SHLP_F = lv_et_bsart_shlp_f
         ET_BSART_SHLP_L_ID = lv_et_bsart_shlp_l_id
         ET_BSART_SHLP_L = lv_et_bsart_shlp_l
         ET_BSART_SHLP_B_ID = lv_et_bsart_shlp_b_id
. " MMPUR_UI_GET_CUST_DATA




ABAP code using 7.40 inline data declarations to call FM MMPUR_UI_GET_CUST_DATA

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!