I am using BAPI BAPI_PPMSRVAPS_SAVEMULTI_30A to change the PPMs.
I have a PPM1 in system date ranging between 01.01.2009 to 30.01.2009. Now I create another PPM2 from 16.01.2009 to 30.01.2009. Using my logic I truncate the date of old PPM1 and new dates are
PPM1 --> 01.01.2009 to 15.01.2009
PPM2 --> 16.01.2009 to 30.01.2009.
Now when I try to create another PPM3 date ranging 20.01.2009 to 30.01.2009 then new dates are
PPM2 --> 16.01.2009 to 10.02.2009
PPM3 --> 20.01.2009 to 30.01.2009
BUT PPM1 GETS DEACTIVATED. EVEN AFTER I USE ALL THE PARAMETERS TO RECREATE THE PPM1 with PLAN_STAT = '1' (Active).
So in my iteration at a time ONLY TWO PPMs REMAIN ACTIVE but I want all of the previous PPMs to be active (if the date range does not overlap).
Can somebody suggest me how to use it so that all other PPMs remain active.
Thanks in advance,