How to change the Maintenance Plan Category in T-code IP02?

Dump in SAP Maintenance
Share on Facebook4Share on LinkedIn0Tweet about this on TwitterShare on Google+0
Please Share!!

mp

Client wanted to mass correct the maintenance plan category. But it was not editable even in change mode in T-code. So, they called for their trusted companion, the ABAPer.. ūüôā

We can achieve this using the standard FM ‘MAINTENANCE_PLAN_POST’.

But if you change only the header field MPTYP, then the change would reflect at database level, but not at screen level. So, the trick here is to change the category both at header(MPTYP) and item level (MITYP). Please call the FM as shown below and pass the new category to impla and impos table.

CALL¬†FUNCTION¬†‘MAINTENANCE_PLAN_POST’
EXPORTING
x_xaktyp¬†=¬†‘V’
TABLES
imhis    = lit_imhis
immpt    = lit_immpt
impla    = lit_impla
impos    = lit_impos.

[adToAppearHere]

 

Image source : www.completeimaging.co.uk

Share on Facebook4Share on LinkedIn0Tweet about this on TwitterShare on Google+0
Please Share!!

About the Author

SAP Yard
SAP Yard
SAPYard is one stop page for all Technical Folks in SAP. You would find un-conventional explanations, tutorials, and tricks. Please like our Facebook Page and also join our LinkedIn Group.

Be the first to comment on "How to change the Maintenance Plan Category in T-code IP02?"

Please help us improve. Please Shout Often & Loud!!