on 05-11-2012 12:02 PM
I am retrieving User Status values for Work Order Notifications (see thread http://scn.sap.com/thread/3166139) but there are several status values returned for the supplied OBJNR. These are fairly self-evident but I have a couple of questions:
1) Is there a way of ordering the response, e.g through the option string, from RFC_READ_TABLE so that the latest status is always first (or do I have to order it within MII after retrieving the information)?
2) What filter criteria (apart from date and time) do I need to apply to get the correct latest status of the notification. E.g there are 2 entries for the last change I made on the attached example, to change the notification to approved (STAT = E0004, UDATE = 20120511, CHGNR = 3 and 4). One is a few seconds after the other and has the INACT flag set - can I ignore this one?
Fields showing in the example are:
MANDT - Client
OBJNR - Object Number
STAT - Object status
CHGNR - Change Number
USNAM - username
UDATE - Date
UTIME - Time
TCODE - Transaction
CDTCODE - transaction in which change made (IW22 in this case)
INACT - Indicates Status is inactive (but what does that mean?)
CHIND - Change indicator ( I assume I = Insert and U = Update)
Hi Richard,
did you tried the function STATUS_READ to read the status? With this function you get every status only once.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.