Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

I have a requirement where the old material no. in tcode MM01 needs to be done mandetory for a specific material type.

Former Member
0 Kudos

Is there any way to make the field (old material no.-BISMT) mandatory for a particular material type in tcode MM01?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Go to transaction SE18 and enter BADI -> BADI_MATERIAL_CHECK.

Create your own implementation for this BADI.

do implementation for BADI method: CHECK_DATA

this method has an importing parameter WMARA. which has both the fields material (MATNR) and material type (MTART).

so check based on your material type whether material is filled. if not stop for furthur action.

for example:

if WMARA-MTART = 'FERT'

if WMARA-MATNR is initial.

error message.....

endif.

endif.

Let me know if its not clear.

Regards,

Prasad

7 REPLIES 7

shaik_sajid
Active Contributor
0 Kudos

Hi

Using the following BADI, you can achieve this.

http://wiki.scn.sap.com/wiki/display/Snippets/How+to+Restrict+Change+Material+Shot+Text+to+Particula...

Regards

Sajid Shaik

Former Member
0 Kudos

Hi,

you can use BADI: BADI_MAT_F_SPEC_SEL

or

create an own structure of data Screen for each Screen sequence
Tcode (OMT3B) and assign it to your materialtype (Tcode: OMT3E)

Regards, Dieter

Former Member
0 Kudos

Check the following

Enhancement

MGA00001                                Material Master (Industry): Checks and Enhancements

MGA00002                                Material Master (Industry): Number Assignment

MGA00003                                Material Master (Industry and Retail): Number Display

Business Add-in

CDT_CHECK_MATERIAL                      Checks for Existence of a Material in a CDT

BADI_MM_MATNR                           Modification-Free Archiving Enhancement of MM_MATNR

BADI_MAT_F_SPEC_SEL                     BAdI for Material Special Field Selection

BADI_MATNR_CHECK_PVS                    Check Material for Use in iPPE

BADI_MATERIAL_REF                       Addition of customer-defined default data for material

BADI_MATERIAL_OD                        Integration of New Objects in Material or Article Master

BADI_MATERIAL_CHECK                     Enhanced Checks for Material Master Tables

BADI_GTIN_VARIANT                       User Exit for Customer-Specific GTIN Variant Check

BADI_EAN_SYSTEMATIC                     BAdI for Internal Control of EAN Logic

WRF_DISCONT_PARAMS_I                    BAdI: Parameters in Fashion Discontinuation

WRF_DISCONT_FACT_E                      BAdI: Follow-Up Actions in Discontinuation

WRF_DISCONT_CHECKS_I                    BAdI: Scope of Check in Material Reorganization

MG_MASS_NEWSEG                          User-Specific Fields & Segments in Mass Maintenance

MATGRP_SKU_UPD                          BAdI for Article Hierarchy Connection

Reward points if useful

Regards

Former Member
0 Kudos

Hi,

Go to transaction SE18 and enter BADI -> BADI_MATERIAL_CHECK.

Create your own implementation for this BADI.

do implementation for BADI method: CHECK_DATA

this method has an importing parameter WMARA. which has both the fields material (MATNR) and material type (MTART).

so check based on your material type whether material is filled. if not stop for furthur action.

for example:

if WMARA-MTART = 'FERT'

if WMARA-MATNR is initial.

error message.....

endif.

endif.

Let me know if its not clear.

Regards,

Prasad

0 Kudos

I did implement the BADi a u suggested,but nothing is happening....i set the breakpoint to the BADi too but its not getting executed.

0 Kudos

Hi,

After you implemented BADI, make sure that it is activated like below. other wise it will not be called.

i hope u might know this, but cross check pls.

Regards,

Prasad

0 Kudos

It is working fine...thanku so much!