2008 Feb 19 1:07 PM
Hi Gurus,
My Requirement is when creating Purchase Order , Restrict the materials based on the Purchasing Group.
For example, There are two Purchasing Groups PG1 and PG2. For PG1 there are some materials 1,2,3,4,5 are there and For PG2 there are A,B,C,D,E materials are there.
When the user creating purchase order suppose he gives purchasing group PG1 , then he need to create PO only for materials 1,2,3,4,5. not for A,B,C,D,E.
But here its created PO for all materials.
Please help me out how to do this requirement.
Its very Urgent.
<REMOVED BY MODERATOR>
Thanks in Advance.
Thanks and Regards
Siri.
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:37 PM
Hi Gurus,
My Requirement is when creating Purchase Order , Restrict the materials based on the Purchasing Group.
For example, There are two Purchasing Groups PG1 and PG2. For PG1 there are some materials 1,2,3,4,5 are there and For PG2 there are A,B,C,D,E materials are there.
When the user creating purchase order suppose he gives purchasing group PG1 , then he need to create PO only for materials 1,2,3,4,5. not for A,B,C,D,E.
But here its created PO for all materials.
Please help me out how to do this requirement.
Its very Urgent.
<REMOVED BY MODERATOR>
Thanks in Advance.
Thanks and Regards
Siri.
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:37 PM
2008 Feb 19 1:17 PM
Hello,
You can do this with the help of the user exit
MM06E005 Customer fields in purchasing document
EXIT_SAPMM06E_006 - Include - ZXM06U36
But I don't know how you can restrict the material with the EKGRP.
If you know the table then it can made easily.
Cheers,
Vasanth
2008 Feb 19 1:34 PM
Hi,
1. In Material Master Purchasing View, we have Purchase group, this data will be stored in the table MARC with respect to the plant.
2. You have to use the user exit or BADI to write the code.
Example:
Use the BADI ME_PROCESS_PO_CUST and write the code n process_item to write the code using loop at screen
Read the data from the Material Number and Plant from MARC table based on your input data on Purchase order and fetch the purchase group.
Check the purchase group from MARC and INputed value from Purchase order header (EKKO-EKGRP), if both are not equal then raise a error.
Thanks,
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |