cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict material groups at PR/PO creation for items w/o material master

Former Member
0 Kudos

Dear SAP experts

I have one question related to restricting material groups which are possible for selection during purchase requisition or purchase order creation.

The material group is created and several material master records are linked to it. Now the requirement is that when users are creating either purchase requisitions or purchase orders it shouldn't be possible to select that specific material group>

But this should be valid only if PR or PO are being created for items without material master record. If PR/PO is created for item with material master record then the restriction should not take place.

What would be the nicest solution to achieve that?

Thank you all in advance for your help.

Regards,

Miha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Miha,

As you know we have authorization groups in the configuration of Material groups.

May be you can create 2 authorization group, 1 which is Correct (ZOK) and Other incorrect (ZNOTOK).

Now on PR and PO save user exit you can put following condition.

Check if Material Group is incorrect, then check if the material exist, then allow the PO/PR creation.

Else If material doesnt exit then stop the PO/PR creation.

I hope it helps.

Kind Regards,

Prakash

Former Member
0 Kudos

Hello Prakash

Thank you very much for your answer. i think it is a very good starting point.

However I am not too familiar with authorization group configuration of material groups.

Right now in our system (transaction OMSF) field authorization group is empty for all existing material groups.

Does this mean that for the material group that I want to have restricted I need to have two entries: one with Authorization group ZOK and another with ZNOTOK (or whatever the naming would be)?

Furthermore I would like to ask you where is then the link between authorization group and user exit?

And thirdly: do you perhaps have some more details which user exit(s) are relevant for our topic?

So far thank you very much and I hope that you can provide me also with additional info.

Rgds

Miha

Former Member
0 Kudos

Hi Miha,

For the specific material groups which you dont want to use, please put the authrization group as say 'ZNOTOK' in OMSF.

Now, in the user exit we can put the logic as given below:

Get Authorization Group of Material Group.

If the Authorization Group is 'ZNOTOK' then check if the material exist, then allow the PO/PR creation.

Else If material doesnt exit then stop the PO/PR creation.

So, with help of authorization group, we are just trying to make our life easy while making use of the user exit.

For PR: User Exit: ME_PROCESS_REQ_CUST

For PO: User Exit: ME_PROCESS_PO_CUST

I hope it helps.

Kind Regards,

Prakash

Edited by: Prakash Ayer on Mar 19, 2009 4:03 PM

Former Member
0 Kudos

Dear Prakash

Thanks really a lot.

I have added points to your answer. Problem solved.

Best regards

Miha Egart

Answers (0)