on 08-21-2015 12:25 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
Deepal
Your question is not clear.
Maybe an example would help explain your issue.
PeteA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.