cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get Maintenace Item Call - Plan Date in IP10/30

Former Member
0 Kudos

Hi Ladies and Gents,

We are developing a solution to change certain fields in PM Orders created at the back of Maintenance Plans. The calculation logic requires the "Plan Date" (screen shot attached) for Maintenance Plan Item Call objects when the Maintenance Plan is called for the FIRST TIME via IP10 or IP30. As you would understand the dates are not stored in any of the tables at this stage. Therefore it got to be a User Exit/BADI/Enhancement Spot. The solution we develop is to address Single Cycle as well as Strategy Plans (both time & performance based) hence the answer I seek from you guys need to cater to all please.

Could you experts shed some light as to where I could get this information "on-the-fly"?

Many thanks in advance

Rgds

Deepal

Accepted Solutions (0)

Answers (2)

Answers (2)

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Deepal,

You are looking for NPLDA field value for ABNUM field value 1 in MHIS table (or view VIMHIS).

NPLDA = Plandate

ABNUM = Call number

Regards

KJogeswaraRao

Former Member
0 Kudos

Hi Jogeshwara,

Thanks for your response. Your suggestion doesn’t work I’m afraid. I’m trying to change the Basic Finish Date of Preventive Maintenance Orders created at the back of the Maintenance Plan at the Order Creation. For the derivation logic I use the Planned Date of the Maintenance Call Object. For argument sake let’s say below is my formula

Basic Finish Date = Maintenance Call Object Planned Date + (30%* “some” number of days)

First, create a Maintenance Plan where,

• Cycle/Unit                    = 1/Months;

• Scheduling period        = 100 days

• Scheduling Indicator    = Time

• Call Horizon                 = 0

and save the plan. Then, schedule the plan via IP30 where Interval for Call Objects is 100 days.Therefore I expect 3 PM Orders to be created. For all 3 of them I need to change the Basic Finish Date as pointed out earlier at order creation. The problem I face is, as you would understand, in this scenario I cannot take the Maintenance Call Object Planned Date from tables (MHIS for example) as they have not been recorded in the table as yet (by the time I want them for order creation).

Therefore I’m after a BADI/Exit/Enhancement Spot (or equivalent) which provides me this piece of information at the point of IP30 run/order creation so that I can use it for my calculation. Hope it clarifies, please let me know if you need more information.

Cheers

Deepal

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Deepal,

Your original post is centered at PLAN DATE. And the reply above is centered at BASIC FINISH DATE. Shall I understand that you want to change the BASIC FINISH DATE at the time of Order creation?

jogeswararao_kavala
Active Contributor
0 Kudos

The following code in include ZXWOCU07 of user-exit IWO10009 will change the Basic Finish date/time as per your logic. (V_GLTRP and V_GLUZP are the Basic Finish Date/Time values computed by your logic.


CAUFVD_IMP-GLTRP =  V_GLTRP. 

CAUFVD_IMP-GLUZP =  V_GLUZP. 

CALL FUNCTION 'CO_IH_SET_HEADER' 

EXPORTING 

  CAUFVD_IMP = CAUFVD_IMP. 

PERFORM HEADER_UPDATE(SAPLCOIH). 

ENDIF. 

Hope this helps.

peter_atkin
Active Contributor
0 Kudos

Deepal

Your question is not clear.

Maybe an example would help explain your issue.

PeteA

Former Member
0 Kudos

Hi Pete,

Thanks for your response. I’m trying to change the Basic Finish Date of Preventive Maintenance Orders created at the back of the Maintenance Plan at the Order Creation. For the derivation logic I use the Planned Date of the Maintenance Call Object. For argument sake let’s say below is my formula

Basic Finish Date = Maintenance Call Object Planned Date + (30%* “some” number of days)

First, create a Maintenance Plan where,

• Cycle/Unit                    = 1/Months;

• Scheduling period        = 100 days

• Scheduling Indicator    = Time

• Call Horizon                 = 0

and save the plan. Then, schedule the plan via IP30 where Interval for Call Objects is 100 days.Therefore I expect 3 PM Orders to be created. For all 3 of them I need to change the Basic Finish Date as pointed out earlier at order creation. The problem I face is, as you would understand, in this scenario I cannot take the Maintenance Call Object Planned Date from tables (MHIS for example) as they have not been recorded in the table as yet (by the time I want them for order creation).

Therefore I’m after a BADI/Exit/Enhancement Spot (or equivalent) which provides me this piece of information at the point of IP30 run/order creation so that I can use it for my calculation. Hope it clarifies, please let me know if you need more information.

Cheers

Deepal