cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting the correct User Status from TJ30T

Former Member
0 Kudos

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)

Accepted Solutions (0)

Answers (1)

Answers (1)

KlausKB
Discoverer
0 Kudos

Hi Richard,

did you tried the function STATUS_READ to read the status? With this function you get every status only once.