Skip to Content

Table / FM to display the current status of Maintenance Plan in SAP - PM

Dear PM experts,

I am preparing a z report to show the Maintenance plan details, I need to display the current status of the maintenance plan

Currently i have used the logic to fetch the status from JCDS - JEST tables.

i am unable to fetch the correct status of maintenance plan for the following scenario

1. Intial status of the maintenance plan - 10000001 - is CRTD and  If i change the status to "DLFL" / "INAC" - Now the report is showing "DLFL" / "INAC". But if i change the status  back to CRTD. The report has to show the current status as "CRTD",  but it is showing the last status of "INAC" / "DLFL"

   

I have tried using the table VIMPLASTAT, but there also the same issue

Please suggest some Function module or any other tables which will resolve this issue

Please help me on this issue

Regards

J.Balakrishnan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 29, 2014 at 11:08 AM

    Also FM  'STATUS_READ' will help. Here just pass OBJNR value (also ONLY_ACTIVE value as 'X') in the import parameters and Execute. Your status will be coming through a table STATUS. (field STAT).

    Note

    1. If your plan is in CRTD status then you will be getting one entry in this table with value I0001 (CRTD).

    2. When your plan is in INAC/DLFL status then you will be getting two entries i,e, both I0001(CRTD) and I0076 (DLFL).

    So you can code accordingly.

    KJogeswaraRao

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 29, 2014 at 10:30 AM

    Hello Bala,

    The answer is FM 'STATUS_TEXT_EDIT '.

    Here just pass OBJNR value of the plan (also ONLY_ACTIVE value as 'X' and SPRAS value as 'EN') in the Import parameters and Execute. You will get the Current Status as CRTD OR as DLFL in the Export parameter LINE of the FM.

    And then where you will get the OBJNR value of the plan. Just pass the Plan number in the WARPL field of the table MPLA. You will get the OBJNR value.

    See this screen-shot of SE37.

    KJogeswaraRao


    1.PNG (11.5 kB)
    Add comment
    10|10000 characters needed characters exceeded