SAP EXIT_SAPMC29M_001 Function Module for BOM; Material Where-Used List









EXIT_SAPMC29M_001 is a standard exit sapmc29m 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 BOM; Material Where-Used List 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 sapmc29m 001 FM, simply by entering the name EXIT_SAPMC29M_001 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPMC29M_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_SAPMC29M_001'"BOM; Material Where-Used List
EXPORTING
DATUB = "Date 'Valid to'
* I_RC29N = "EATAB BOMs - initial screens
* I_RC29P = "EATAB BOM Items
* DELFLAG_SCHGT = "Checkbox field
* DELFLAG_SANKA = "Checkbox field
DATUV = "Date 'Valid from'
MATNR = "Material
* POSTP = ' ' "Item category
* WERKS = ' ' "Plant
* MCLMT = "Maximum number of counters in a BOM
* MNSTL = "Bill of Material
* MXSTL = "Bill of Material
* I_RC29L = "BOM Display input/output table

IMPORTING
NO_DIALOG = "

TABLES
WULTB = "Where-Used List Table (Items)
* EQUICAT = "Assembly Groups Table: Equipment
* KNDCAT = "Assembly Groups Table: Sales Orders
* MATCAT = "Assembly Groups Table: Materials
* STDCAT = "Assembly Groups Table: Standard Objects
* TPLCAT = "Assembly Groups Table: Technical Centers
* PRJCAT = "Assembly Groups Table: Projects
T_INDEXTAB = "
.



IMPORTING Parameters details for EXIT_SAPMC29M_001

DATUB - Date 'Valid to'

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

I_RC29N - EATAB BOMs - initial screens

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

I_RC29P - EATAB BOM Items

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

DELFLAG_SCHGT - Checkbox field

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

DELFLAG_SANKA - Checkbox field

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

DATUV - Date 'Valid from'

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

MATNR - Material

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

POSTP - Item category

Data type: RC29L-POSTP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WERKS - Plant

Data type: RC29L-WERKS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MCLMT - Maximum number of counters in a BOM

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

MNSTL - Bill of Material

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

MXSTL - Bill of Material

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

I_RC29L - BOM Display input/output table

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

EXPORTING Parameters details for EXIT_SAPMC29M_001

NO_DIALOG -

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

TABLES Parameters details for EXIT_SAPMC29M_001

WULTB - Where-Used List Table (Items)

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

EQUICAT - Assembly Groups Table: Equipment

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

KNDCAT - Assembly Groups Table: Sales Orders

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

MATCAT - Assembly Groups Table: Materials

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

STDCAT - Assembly Groups Table: Standard Objects

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

TPLCAT - Assembly Groups Table: Technical Centers

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

PRJCAT - Assembly Groups Table: Projects

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

T_INDEXTAB -

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

Copy and paste ABAP code example for EXIT_SAPMC29M_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_datub  TYPE RC29L-DATUB, "   
lt_wultb  TYPE STANDARD TABLE OF STPOV, "   
lv_no_dialog  TYPE CSDATA-XFELD, "   
lv_i_rc29n  TYPE RC29N, "   
lv_i_rc29p  TYPE RC29P, "   
lv_delflag_schgt  TYPE CSDATA-XFELD, "   
lv_delflag_sanka  TYPE CSDATA-XFELD, "   
lv_datuv  TYPE RC29L-DATUV, "   
lt_equicat  TYPE STANDARD TABLE OF CSCEQUI, "   
lv_matnr  TYPE RC29L-MATNR, "   
lt_kndcat  TYPE STANDARD TABLE OF CSCKND, "   
lv_postp  TYPE RC29L-POSTP, "   SPACE
lt_matcat  TYPE STANDARD TABLE OF CSCMAT, "   
lv_werks  TYPE RC29L-WERKS, "   SPACE
lt_stdcat  TYPE STANDARD TABLE OF CSCSTD, "   
lv_mclmt  TYPE STZU-STUEZ, "   
lt_tplcat  TYPE STANDARD TABLE OF CSCTPL, "   
lv_mnstl  TYPE STZU-STLNR, "   
lt_prjcat  TYPE STANDARD TABLE OF CSCPRJ, "   
lv_mxstl  TYPE STZU-STLNR, "   
lt_t_indextab  TYPE STANDARD TABLE OF INDEXTAB, "   
lv_i_rc29l  TYPE RC29L. "   

  CALL FUNCTION 'EXIT_SAPMC29M_001'  "BOM; Material Where-Used List
    EXPORTING
         DATUB = lv_datub
         I_RC29N = lv_i_rc29n
         I_RC29P = lv_i_rc29p
         DELFLAG_SCHGT = lv_delflag_schgt
         DELFLAG_SANKA = lv_delflag_sanka
         DATUV = lv_datuv
         MATNR = lv_matnr
         POSTP = lv_postp
         WERKS = lv_werks
         MCLMT = lv_mclmt
         MNSTL = lv_mnstl
         MXSTL = lv_mxstl
         I_RC29L = lv_i_rc29l
    IMPORTING
         NO_DIALOG = lv_no_dialog
    TABLES
         WULTB = lt_wultb
         EQUICAT = lt_equicat
         KNDCAT = lt_kndcat
         MATCAT = lt_matcat
         STDCAT = lt_stdcat
         TPLCAT = lt_tplcat
         PRJCAT = lt_prjcat
         T_INDEXTAB = lt_t_indextab
. " EXIT_SAPMC29M_001




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMC29M_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 DATUB FROM RC29L INTO @DATA(ld_datub).
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_no_dialog).
 
 
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_delflag_schgt).
 
"SELECT single XFELD FROM CSDATA INTO @DATA(ld_delflag_sanka).
 
"SELECT single DATUV FROM RC29L INTO @DATA(ld_datuv).
 
 
"SELECT single MATNR FROM RC29L INTO @DATA(ld_matnr).
 
 
"SELECT single POSTP FROM RC29L INTO @DATA(ld_postp).
DATA(ld_postp) = ' '.
 
 
"SELECT single WERKS FROM RC29L INTO @DATA(ld_werks).
DATA(ld_werks) = ' '.
 
 
"SELECT single STUEZ FROM STZU INTO @DATA(ld_mclmt).
 
 
"SELECT single STLNR FROM STZU INTO @DATA(ld_mnstl).
 
 
"SELECT single STLNR FROM STZU INTO @DATA(ld_mxstl).
 
 
 


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!