Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Purchase Order

Former Member
0 Likes
408

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

2 REPLIES 2
Read only

Former Member
0 Likes
390

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

Read only

Former Member
0 Likes
390

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,