The client needed to mass-correct the maintenance plan category, but it was not editable even in T-code IP02. Therefore, they required their trusted friend, the ABAPer, to help with how to change the Maintenance Plan Category in T-code IP02.
We can accomplish this utilizing the standard FM ‘MAINTENANCE_PLAN_POST’.
However, if you change only the header field MPTYP, the change will reflect at the database level but not at the screen level. Therefore, the trick is to change the category at both the header (MPTYP) and item level (MITYP). For detailed guidance on how to change the maintenance plan category in T-code IP02, please call the FM as shown below and pass the new category to the impla and impos tables.
CALL FUNCTION ‘MAINTENANCE_PLAN_POST’
EXPORTING
x_xaktyp = ‘V’
TABLES
imhis = lit_imhis
immpt = lit_immpt
impla = lit_impla
impos = lit_impos.
YOU MAY LIKE THIS
SAP MM Consultant Salary in india (2024)
Cracking the Code: Your Earning Potential as a SAP ABAP Developer with 5 Years of Experience