on 03-19-2009 2:15 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
98 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.