Hi Eviona,
What do you mean by "used"? In my opinion there are two possible interpretations for that:
- User status is assigned in order
- User status is ticked by user in the order
For both interpretations you can use join table of AUFK, JEST and TJ30T:
- AUFK: get status object number (OBJNR) and user status profile (STSMA) using order number (AUFNR) and date
- JEST: get user status code (STAT) given the object number
- TJ30T: get user status description (TXT30) given the user status code (ESTAT), user status profile (STSMA) and language (SPRAS)
I assume that you are more interested to know the second interpretation. So, you can get the number by summing up the occurrence of every combination of user status code and user status profile.
Compare this result with list of all user statuses in TJ30T, then you can get what you need.
Note: user statuses can have the same code (E0001, E0002, ...), but different description if assigned to different status profile.
Regards,
Julian