cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent Purchase Orders for certain Storage Locations

Former Member
0 Kudos

Hi everybody, here is my case.

I have a plant with two storage locations, for example: PLANT1, with storage location 0001 and 0010.

So right now I have  PO's for both storage locations. But on february I have to make the storage location 0010 stop receiving PO's.

However the storage location must continue receiving the ones that were already created.

Does anyone know if it's possible to do this? Also I would like to prevent the people that are creating the PO's to post them in the storage location 0010?

Thanks, best regards

MB

Accepted Solutions (1)

Accepted Solutions (1)

Prasoon
Active Contributor
0 Kudos

Hi,

   You may check the following options to achieve the requirement.

1. Use the functionality of "Authorization check for storage Locations" in the path: OLMB - Authorization Management - Authorization check for storage Locations. Here, you may activate the authorization check for the storage location 0010. Now, provide the authorization for the object: M_MSEG_LGO only for the users who are allowed to post goods movement for that storage location. If you want to block all movements to the storage location, dont provide authorization to anyone.

2. If you want to control the use of the storage location in PO (in ME21N), there is no authorization object available in standard, as of my knowledge. You may go for development. Please check the similar thread: Authorization object not to allow certain user ... | SCN

3. Another option could be flag material for deletion at storage loc level in MM06. Then maintain the message M7 127 as error message, so that system wont allow GR for that storage location.

Regards,

AKPT

Former Member
0 Kudos

Hi,

Your first point I think it's exactly what I am looking for, but I am having some problems testing it.

I did all the steps you mentioned, but then I can still do the PO for that storage Location (without that authorization in my user).

I go to SU01 and I think I have (not sure) some "kind" of authorization that allows my user to do everything, it's SAP_ALL. I don't know a lot about this.

Do you have any solution or hint to test this?

Regards

MB

former_member183424
Active Contributor
0 Kudos

If you give the SAP_ALL authorization, then user have the authorization for all.

You have to give just another profile and roll.

If you don't have any profile, then you have create it from PFCG.

Refer to document Create Roll and Profile for New user Using PFCG

Assign the profile to the user, then this option will work.

Prasoon
Active Contributor
0 Kudos

Hi,

   If you have SAP_ALL authorization, you will be authorized for all transactions.

   Check with the basis / security team and assign the authorization for the object: M_MSEG_LGO only for the user's roles, who are allowed to post goods movement in that storage location.

Regards,

AKPT

Answers (3)

Answers (3)

0 Kudos

Hi,

You may apply validation on storage location in below badi at item level while PO creation.

"ME_PROCESS_PO_CUST"

Regards,

Deepak Mankeshwar

former_member183424
Active Contributor
0 Kudos

Do you only want to stock receiving material on this storage location and PO creation?

If you don't want to do any transaction for this storage location, then you can delete the storage location under certain plant.

Storage location is not a highest organizational level. It doesn't assign with any one.

You can delete the storage location easily.

JL23
Active Contributor
0 Kudos

Never delete any customizing if you have documents for it in your system.

former_member183424
Active Contributor
0 Kudos

Okay Sir,

I thought, storage location is not assigned to any other organizational structure, so we can delete it if we don't need that..

But be always sure we haven't any stock in this particular storage location.

Any way Point is strictly noted

JL23
Active Contributor
0 Kudos

it is not only about stock.

if you created a material master, then it got a storage location view which is stored in MARD table.

If you now delete this storage location from customizing, what can  you expect from SAP if you open the material master, or if you save it after a change.

I think you know that SAP does not only check the changed field, it is validating the content of the whole material master.

What if you had a a receipt for this storage location in the past, and now you want access the material document?

How would you search material documents for this location in MB51? just try it, enter a location that does not exist in your customizing and hit enter. The same will happen if you delete a location from customizing.

I could continue with examples, but I think it is enough to understand.

Just in case somebody wants to say that SAP should do a check when deleting customizing. No, it cannot, Customizing is made in a development system, your data is a production system.

former_member183424
Active Contributor
0 Kudos

You are right Sir..

Very very much clear about that..

Thanks for the clarification..

I have too small experience about SAP MM.

It helps me a lot.

Thanks Again...

JL23
Active Contributor
0 Kudos

There is actually an authorization object: M_BEST_LGO

But I am unsure if this is only available in certain industry solution (Defense)

OSS note  770961 - Missing authorization objects for storage location  explains how to create it if not present