Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3510

Re: Exit IMRC0001 is used for condition based maintenance. Can any one would provide me the code to implement the logic?

$
0
0

Hello Hari,

In the subject line you are asking for code, which members will not be in a position to share. In the query you have rightly asked for the logic, which should be the case, where you might get some help.

 

Few points in this regard:

  • In a very rare case, even if you get some code, you will not be able to apply it directly for your situation, without the ABAP coding knowledge.
  • When ABAP skills are there you do not need code, you only need logic.
  • According to me it is a very easy job for an expert ABAPer.
  • Only thing he needs to spend some time to correlate the fields of IK11 (Reading, Counter reading, UOM, upper range, lower range etc...) to those of IMRG_INS structure of the user-exit . (The code mainly uses thisstructure of the user-exit)
  • The above can be done by creating some documents and studying which fields of IMRG table are updating during this event.
  • Study different cases of IK11: viz., Simple reading, Counter reading and with valuation codes. (as per your requirement)

 

Part1 of the code is to trigger a Notification:

1. Through BDCDATA coding (Call transaction IW21)

2. Through FMs in sequence:

    BAPI_ALM_NOTIF_CREATE, 

    BAPI_ALM_NOTIF_SAVE and

    BAPI_TRANSACTION_COMMIT

 

Part2 of the code

If so required, you can opt for triggering e-mails alongwith Notification trigger, using relevant FM, (Email-ID can be stored in a z-table)

 

 

Go through some of my earlier replies on same subject

Lower Limit - Upper Limit in Measuring Points

Condition Based Notification

Performance Determination by Measuring point

 

 

So the present post has full clues for an ABAPer to meet the requirement. And full details for a functional persons to write the FS. Many other threads are also available in SCN on the topic.

 

 

Best of luck

KJogeswaraRao


Also go through this link: http://www.wikiguga.com/topic/9e1e3402b92060a46793a2b37eeb3123


Viewing all articles
Browse latest Browse all 3510


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