Quantcast
Channel: SCN: Message List - Enterprise Asset Management (SAP EAM)
Viewing all articles
Browse latest Browse all 10043

Re: PM order priority depending on ABC indicator from reference object?

$
0
0

Hi Patrick,

Greetings!

 

I've spent some time on this issue.

I would use the User-Exit IWO10009 for solution with the code given below.

 

ABCKZ values are 3 (A,B and C), and my priorities are also three in number namely :

1. HIGH

2, MEDIUM

3. LOW

 

Suppose my conditions are One to One.

i.e.,

Order on Category A Equipment can have only priority 1

Order on Category B Equipment can have only priority 2 and

 

Order on Category C Equipment can have only priority 3

 

So I have used the code below to have this example error-message when conditions are not satisfied WHILE SAVING THE ORDER

Capture.JPG

The Code (This is a tested syntax)


IF CAUFVD_IMP-AUART = 'ZM03'" Your Order Type

IF CAUFVD_IMP-ABCKZ = 'A' AND ( CAUFVD_IMP-PRIOK = '2' OR CAUFVD_IMP-PRIOK = '3' ).
MESSAGE:
'Orders on Category A Equipments can only have Priority ''1'' ' TYPE 'E'.
ENDIF.

IF CAUFVD_IMP-ABCKZ = 'B' AND ( CAUFVD_IMP-PRIOK = '1' OR CAUFVD_IMP-PRIOK = '3' ).
MESSAGE:
'Orders on Category B Equipments can only have Priority ''2'' ' TYPE 'E'.
ENDIF.

IF CAUFVD_IMP-ABCKZ = 'C' AND ( CAUFVD_IMP-PRIOK = '1' OR CAUFVD_IMP-PRIOK = '2' ).
MESSAGE:
'Orders on Category B Equipments can only have Priority ''2'' ' TYPE 'E'
.
ENDIF.

ENDIF.

If this looks fitting to your requirement, you may customize the same with your values.

(I assume you also do not have those many priority types to go for a Z table and maintain a database there.)

 

Hope this exercise will be of some use to you.



Best of Luck Patrick!

Jogeswara Rao K



Viewing all articles
Browse latest Browse all 10043

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>