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

For specific purchase group ,user can insert specific material

Former Member
0 Likes
740

Hi,

I need to keep a check in me23n transaction for material . For specific purchase group ,user can insert specific material else it display an error meaasge on status bar.

I found one badi i.e 'ME_DEFINE_CALCTYPE'. In this badi structure of ekko and ekpo are there from where I can get EKGRP(purchasing group) and matnr .

Please tell me is my analysis is correct if not then whats wrong and how I can correct it.

Regards,

Seema.

Hi,

I need to keep a check in me23n transaction for material . For specific purchase group ,user can insert specific material else it display an error meaasge on status bar.

I found one badi i.e 'ME_DEFINE_CALCTYPE'. In this badi structure of ekko and ekpo are there from where I can get EKGRP(purchasing group) and matnr .

Please tell me is my analysis is correct if not then whats wrong and how I can correct it.

Regards,

Seema.

5 REPLIES 5
Read only

Former Member
0 Likes
707

Hi,

Use BADI ME_PROCESS_PO_CUST , method PROCESS_ITEM.

Regards,

Ashok.

Read only

0 Likes
707

Hi,

How I'll get ekgrp (purchase group) and matnr (material) from this method.And if I Use Me_define_calctpe then will it work.

Regards.

Read only

0 Likes
707

>

> Hi,

>

> How I'll get ekgrp (purchase group) and matnr (material) from this method.And if I Use Me_define_calctpe then will it work.

>

> Regards.

In the strucutr MEPOITEM of the BADI you will get the matnr and also from the header you can get the EKGRP field//

Read only

0 Likes
707

Hi ,

Check the example class CL_EXM_IM_ME_PROCESS_PO_CUST.

By using method GET_HEADER and GET_DATA in Interface IF_PURCHASE_ORDER_ITEM_MM, we can get header and items.

Regards,

Ashok.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
707

If its hard to use that badi then just write your code in function module EXIT_SAPMM06E_012.

the ekgrp will available in importing parameter I_EKKO and the materials will be available in TEKPO.