Skip to Content
0
Former Member
Feb 21, 2011 at 02:10 PM

BADI MD_PIR_FLEX_CONS

1439 Views

Dear all,

We have implemented BADI MD_PIR_FLEX_CONS, and it works perfectly (see below for code).

This BADI checks if independent requirements with consumption indicator 4 should be consumed by certain MRP elements. I think is this controlled by ch_cons_reduc_active = 'X'.

My question is, what is ch_cons_reduc_active = 'X'. How can I see the definition of this element?

Which table is updated? Can I check somewhere in a (transparant) table if this MRP element will consume PIR;s or not?

Thank you very much for any guidance to find the answer!!!

Kind regards,

a functional person without access to ABAP people.

Code of BADI:

method IF_EX_MD_PIR_FLEX_CONS~CHECK_PIR_CONS_REDUC.

*----


*--> the sample coding realizes a consumption and reduction of planned

*independent requirements by all MM document types in case of stock

*transfers

*----


**--> reset return value

CLEAR ch_cons_reduc_active.

*--> check MRP element indicator

CHECK im_delkz EQ 'U1' "Release order for a stock transfer order

OR im_delkz EQ 'U2' "Release order for a stk. trans. req.

OR im_delkz EQ 'U3' "Release order for a stk. trans. pln ord.

OR im_delkz EQ 'U4'. "Release order for stk. trans. sched agr

*--> set consumption/reduction indicator

ch_cons_reduc_active = 'X'.

ENDMETHOD.