2010 Dec 06 9:31 AM
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.
2010 Dec 06 10:00 AM
Hi,
Use BADI ME_PROCESS_PO_CUST , method PROCESS_ITEM.
Regards,
Ashok.
2010 Dec 06 10:16 AM
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.
2010 Dec 06 11:00 AM
>
> 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//
2010 Dec 06 12:26 PM
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.
2010 Dec 06 12:52 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |