Skip to Content
0

Plant specific material status mandatory only for ROH in Plant 2

Oct 19, 2016 at 09:07 AM

220

avatar image

Hi all, I know how to make plant specific material status mandatory in material master data for ROH. But here is the problem, business wants it only for plant #2, and the way I have made it, affects not only plant 2, actually, the field is now mandatory in the purchasing and MRP1 view of all ROH materials in all the 6 Plants that we have.

How to restrict it to only plant # 2

Thank You very much.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

Prabhakar A Oct 19, 2016 at 09:28 AM
0

Try using transaction variant with value. Mark mandatory field as required.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Rosh have you tried it yourself ?

1
Syed Ali Oct 19, 2016 at 10:41 AM
0

Hi Jean,

Please check below link:

https://blogs.sap.com/2014/04/13/control-material-master-fields/

I hope it helps.

Regards,

Arsh

Share
10 |10000 characters needed characters left characters exceeded
PRASOON AK Oct 19, 2016 at 02:44 PM
0

Hi,

You may proceed with below steps:

  • Go to OMS9 and create a new field reference key (for example, as the plant code) using new entries button.
  • Select the field selection key assigned to the specific field (plant specific material status).
  • Make the field as mandatory only for the new field reference key, and optional for all other keys.
  • Go to OMSA transaction and assign the field reference key created in first step to the required plant.

Test the scenario and revert back.

Regards,

AKPT

Share
10 |10000 characters needed characters left characters exceeded
Jean Cote Oct 20, 2016 at 03:07 AM
0

Thank You Rosh, please how can I set up that variant? do I need the help of my ABAP colleague?

Thank You Prasoon, I will try your solution. But I think that there are 2 parameters here. The plant and the material type.

So may be all material types of the plant will have the plant specific material status mandatory which is not what I want. I want only the material type ROH to have the plant specific material status mandatory. Any how, I will try and let You know.

Thank You all.

,

Thank you all.

Please Rosh, I can I set up the variant, do I need the help of my ABAP colleague?

Please Prasoon, I will try your solution but it seems to me that we have 2 parameters here: The plant and the material type. I am under the impression that when I will have created the new field reference, made the plant specific material status mandatory for that new field reference and assigned that new field reference to the plant then all material types will have the field mandatory. But I want only one material type to have the field mandatory.

Any how, I will try it and we'll see.

Thanks again

Share
10 |10000 characters needed characters left characters exceeded
Prabhakar A Oct 20, 2016 at 11:12 AM
0

Hi Jean,

Please go for Plant-specific field selection as suggested by Prasoon. Creating transaction variant couldn't fulfill your requirement, kindly ignore my previous comment.

If the standard field selection options doesn't meet your requirement, then use "EXIT_SAPLMGMU_001" and write your own logic such as,

Transaction = MM01

Material Type = ROH

Plant = 'xxxx'

Plant-specific material status(MARC-MMSTA) = Obligatory

BR, Rosh.

Share
10 |10000 characters needed characters left characters exceeded
Jean Cote Oct 23, 2016 at 05:12 AM
0

Thank You All, please here is what I tried:

  • I went in to OMS9 and I created a new field reference key ZROH
  • I Selected the field selection key assigned to the field "plant specific material status"
  • I made the field mandatory for ZROH.
  • I assigned ZROH to material type ROH
  • I went in to OMSA and I assigned ZROH to the required plant.

When I tested it, all the ROH belonging the Plant had the field "Plant specific material status" mandatory but also the ROH materials belonging to other plants which is something that I do not want.

Then I assigned ROH mat type to it's original field reference ROH but I kept my plant assigned to ZROH. Then all materials belonging to the plant regardless their material type had the field "Plant specific material status" mandatory which is something that I do not want.

So now I would like to test the user exit solution proposed by Rosh and I will keep you updated.

Thank You all for your help and your support.


Share
10 |10000 characters needed characters left characters exceeded