Hello
The method to change PIRs is CHANGE_MDPSX_MDPB.
Please observe that this BAdI only allows you to manipulate the MRP and LTP planning elements.
The logic to implement something similar to the period of adjustment is more complex and you should discuss it with your ABAP consultant.
Regards
Caetano