ENGLISH Control Material Master Fields

Bilgi Kaynak Erişimi
SAP Official Blog
Konu Kategorisi
  1. Materials Management (MM)
Kullanıcı Değerlendirmesi
5.00 Oylama

Övünç DİNÇ

Çözüm Ekibi
Kayıtlı Üye
Katılım
8 Eki 2016
Mesajlar
939
Çözümler
4
Tepki puanı
276
Puanları
63
Yaş
42
Konum
İzmir
Web Sitesi
sapforo.com
Kullandığınız SAP Modülleri
  1. SAP MM
  2. SAP PP
  3. SAP FI
  4. SAP QM
Katılım Bölgesi
  1. İzmir
This document contains how many ways do we can control material master fields. We got information related with material master screens and fields Material master screens and fields

We can control material master fields with configuration or transaction variant or user exit/badi.

Related Oss notes :

199165 – Field selection control apparently not working

545211 – FAQ: Material master Customizing

77455 – Purch. group field always defined as required field

403516 – Maintaining purchasing group in the MRP view

418660 – ALE field group control

131004 – Long text maintenance and field selection

71948 – Customizing: Maintain field sel. groups/field sel.

546709 – BadI Special field selection

403477 – Purchasing grp field always defined as required entry field

437098 – Configurable material: different hidden MARC-fields



First way –> i try to control field selection in material master with MM configurations.



Field selection groups : Field selection is effected by field selection groups, we can specify which attribute the fields with HideDisplayRequired entryOptional entry. We can change the assignment of the fields for material master records to the field selection groups. In standart R/3, there are 240 field selection groups. Sap gives permission customers to create new groups 111-120 reserved by us.



Sap provides us a lot of selection field selection influencing factors like PlantMaterial TypeIndustry sectorProcurement typeTransactionSap Solutions (Retail ,Business solution).



SPRO –> Logistics – General –> Material Master –> Field Selection –> Maintain Field Selection for Data Screens



For instance ; Field selection group 12 consists of MARA-AESZN , MARA-BLANZ , MARA-BLATT , MARA-ZEIAR ….



If you change a selection criteria , all fields of group be affected. Also , fields belong to MARA table , you can not control this fields by plant so they are client level . I change field selection group 12 which field referance C be done required field and save and take request.


1_431501.png


Please try , go to MM01 , create a material master with industry sector (Chemical industry)

2_431502.png


Fields of selection group 12 are required field for C Chemical Industry.

3_431503.png


Second example , i want to control material group individually. MARA-MATKL belongs to field selection group 2 with belowed fields.

5_431513.png




How can i control only MARA-MATKL ? I want to do optional entry this field for material type ROH.

SPRO –> Logistics – General –> Material Master –> Field Selection –> Assign Fields to Field Selection Groups

6_431514.png


*Create a new selection group for MARA-MATKL. 111-120 number range reserved for customers, write 111 to selection group and save.

7_431515.png


*After that go to OMSR tcode.

9_431522.png


* Please check for material type ROH. We can see belowed screen shoot that material group is required field for ROH .

8_431523.png




*How can i control MARC-WEBAZ for only plant 1200 ?

Go to OMSR –> Select field referance 001 and copy it.

10_431524.png


* Fill field reference with 1200.

11_431534.png




SPRO –> Logistics – General –> Material Master –> Field Selection –> Define Plant-Specific Field Selection and Plant-Specific Screen Selection

12_431535.png


Please check configuration:

13_431536.png


*Create a material in 1200 plant.

14_431537.png




Now, how can i restrict changing of MARA-MSTAE ?

SPRO –> Logistics – General –> Material Master –> Field Selection –>Define Lock-Relevant Fields

15_431538.png


16_431539.png



Second way –> Transaction Variant based on users.

I refer that document How to Create a Transaction Variant thanks to Malhar Jain

Third way –> Badi – User exit

Badi –> BADI_MATERIAL_REF, BADI_MATERIAL_CHECK / User exit –> MGA00001

I refer document a badi example : How to Restrict Change Material Shot Text to Particular User and Material Type Using BADI_MATERIAL_CHECK – Code Gallery …

For creation material referance to other material or default values :

You can benefit from BADI_MATERIAL_REF

Related threads :

User Exit MGA00001

Problem with Customer Exit MGA00001 ( Enhancement for MM01 )

An example for user exit ; Go to –> CMOD tcode , create a project like a ZMM.

a_431547.png


Add MGA00001 to your project.

b_431548.png


For example : if material type = ROH , i do not want to use valuation class =3100 .

This is a simple control for material master fields.

3_431771.png


Sometimes, you need to do mandatory material master views and some classification fields. For solution please check :

Mandatory Views in Material Master – MM01 and MM02 | SAP Blogs
 
Üst