Hello Sugan
You can use enhancement APOCFPIP to influence the publication of order data from SAP APO to SAP R/3 using APO-CIF. There are multiple exits available, please try EXIT_/SAPAPO/SAPLCIF_G_IP_002 till.......007. You will have create project for this enhancement and activate the project to use it.
However quicker work-around would be Running the Heuristic in 2 steps -
1. Running Heuristic for first 3 months.
2. Then Publication of Planned Orders in ECC
3. Running it again for 4 months and forward. (but do not publish the planned orders).
Another option is -
1. Running the Heuristic for entire horizon.
2. Deleting the planned orders in APO which are in future 4 month and forward. (//RLDDEL or //DELETE_PP_ORDER program)
3. Publishing the planned orders
4. Rerunning the Heuristic for 4 months and forward. (but no publication)
Please check if something like this is feasible. I am just throwing some ideas.
Thank you
Satish Waghmare