Application Development 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: 

run MRP for STO only when material type MTART = FERT (condition)

Ashutoshshukla
Explorer
0 Kudos
157

Dear Expert

I am trying to implement BADI MD_CHANGE_MRP_DATA and method CHANGE_MDPSX_MDUP. This will exclude considering STRs for MRP depending on the condtions written in the code.

the condition is material type mtart will be fert only so can anyone provide me sample code to make this enhamncement and above badi and method are right place for this code.

I think can be the option to solve the issue. Please let me know your thoughts.

Thanks

2 REPLIES 2

madhu_vadlamani
Active Contributor
0 Kudos
54

Hi Shukla,

Check this note note 190298.

*--> delete flag for availability

clear ch_mdps-vrfkz.

*--> set changing flag

ch_changed = 'X'.

endmethod. "IF_EX_MD_CHANGE_MRP_DATA~CHANGE_MDPSX_MDUp

Regards,

Madhu.

Edited by: madhurao123 on Jul 12, 2011 10:18 AM

shafiqahmed_khan
Explorer
0 Kudos
54

Hi Shukla,

U can check the sample/default implementation of that BADI so that u could get some idea how to code.

regards,

Shafiq.