Hello Sitaram
You should provide a better description of the issue when opening a thread.
Initially you have provided the followign description:
I am trying to modify the MRP by adding the functionality of scheduling, currently we have to go for change mode and then schedule the planned order.
Scheduling is one of the most basic MRP functionalities, as you can observe from the answers on this thread.
According to your last reply, it looks to me that you are trying to add the functionality of finite capacity planning during the MRP run. This functionality does not exist on MRP and this is very well explained on the following thread:
Finite Capacity Planning and Capacity Leveling
In my opinion, it is nonsense to develop anything in this area. It is a very complex development and I would not recommend any change on the standard system in this area.
Nevertheless, if you still want to try, I can suggest you to use BAdI MD_PLDORD_CHANGE, which allows yoo to change the order dates on the planned order headers. However, there is no BAdI to change the planned order scheduling at operations leveling.
Take a look on the following document for more details about the BAdIs available on MRP:
Also, there is no BAPI or function module released to customer to schedule planned orders.
If you you want to find which function modules are used internally to schedule a planned order, you can run a trance on SE30 and find out by yourself.
BR
Caetano