cancel
Showing results for 
Search instead for 
Did you mean: 

priority Ordre PM

YBS
Participant
0 Kudos

Hello,

Please how we can do to manage the priority of order preventive ?

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Not sure I'm getting your question, but the priority you enter on a maintenance item is the one that is transferred to an order when it is created by scheduling the plan.

Paul

Answers (1)

Answers (1)

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Sine,

One known application of Priority type is to adjust the Basic Start and Finish Date and Times as per your logic specified in include ZXWOCU09 (user-exit IWO10012) .


Sample code:

IF CAUFVD_IMP-PRIOK = '1'.
   GSTRP = SY-DATUM.
   GSUZP = SY-UZEIT.
   GLTRP = GSTRP + 1.
   GLUZP = '240000'.
ENDIF.

What this does is, as soon as you select Priority '1'  in the Priority field of the PM Order, the date time fields Basic Start /Finish change automatically to the above given values.

GSTRP - Basic Start date

GSUZP - Basic Start time

GLTRP - Basic Finish date and

GLUZP - Basic Finish Time

The logics for the above values can change from user to user. For example, someone has a requirement of these values to be determined according to the ABC indicators of Technical object. See this discussion.

KJogeswaraRao

YBS
Participant
0 Kudos

Hello Rao,

Thank you for your answer,

Please add the this code is it going to solve the problem? that is i will get to change the dates from the priority?

Regards,

jogeswararao_kavala
Active Contributor
0 Kudos

Yes,

But the values you want to give to the Date, Time fields should be through a logic. That will be another code. For example, suppose you decided Basic start date on some criteria. And then you decided the start time on some other criteria. And then decided the difference between the Start and Finish Date and Times depending upon the priority you selected. So this code is to be developed by your ABAPer.