cancel
Showing results for 
Search instead for 
Did you mean: 

BADI: - MD_PIR_FLEX_CONS is not reducing the PIR based on the MRP element U1, U2 and U3.

Former Member
0 Kudos

part-one.png

The Business require the reduction of PIR of planning material through STO (PO).

The consumption should happen on creation of STO and reduction in PIR should happen when outbound PGI is done from the supply plant.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Caetano,

Thank you for the details and quick response.

We have checked the pre-requisites and other details as per your reply but still we are facing the issue.

Badi is trigerring fine in all flows for Sales document but not for PR/PO.

And consequently withdrawal Qty in MD73 is only visible for delivered Qty against the SO and not for GR done for PO.

Please find more details on what is required and what issue we are facing on it and it would be great if you can help in this.

Consumption indicator set as = 4MD73/MD62 PIR on plannaing materialMRP Run Md04 = Planned order generatedSales created order on finished good and Badi trigerredNo change Md73 Blank MRP Run Md04 = Planned order generatedConvert plannned order into PR but BADI not trigeredConvert PR into PO STO created

but BADI not trigered

it should have MD73 assigmnet quanity updated agaisnt STOand stock supply against STO Badi not trigerringShould have MD73 Withdrawal quanity updated for PO and not for SOInbound in sales plantsales delivery created for SOdelivered to the cutomer

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Check question 5 of FAQ note 772856.

Regards,

Caetano

Former Member
0 Kudos

Hello Caetano,

Thanks again for quick reply.

This point is checked and settings are as expected.

Also it mentioned to make consumption indicator as 3 but I think to set reduction via Badi we need it as "4" or you mean to say consumption mode as 3 in material master.

Regards,

Pankaj

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Pankaj

This BAdI is only called for a specific planning element if the consumption/reduction settings allow the PIR reduction/consumption. Therefore, if your planning strategy settings do not allow consumption/reduction with stock transfers, the BAdI will not be helpful.

Make sure that all the all the pre-requisites for PIR consumption are met and the following notes may be helpful:

https://archive.sap.com/documents/docs/DOC-46812

Regards,

Caetano

Former Member
0 Kudos

Hi Caetano,

Thank you for the details and quick response.

We have checked the pre-requisites and other details as per your reply but still we are facing the issue.

Badi is trigerring fine in all flows for Sales document but not for PR/PO.

And consequently withdrawal Qty in MD73 is only visible for delivered Qty against the SO and not for GR done for PO.

Please find more details on what is required and what issue we are facing on it and it would be great if you can help in this.

Consumption indicator set as = 4MD73/MD62 PIR on plannaing materialMRP Run Md04 = Planned order generatedSales created order on finished good and Badi trigerredNo change Md73 Blank MRP Run Md04 = Planned order generatedConvert plannned order into PR but BADI not trigeredConvert PR into PO STO created

but BADI not trigered

it should have MD73 assigmnet quanity updated agaisnt STOand stock supply against STO Badi not trigerringShould have MD73 Withdrawal quanity updated for PO and not for SOInbound in sales plantsales delivery created for SOdelivered to the cutomer