Hi Guru
In the AFKO table pass the AUFNR production order number and get the AUFPL value.then pass the AUFPL in AFVC table and get the field value for OBJNR.
If you pass OBJNR in JSTO table you will get what user status profile you have for your operation.
If you pass OBJNR in JEST table you will get what active user status for your operation by field value INACT having with out X.
Then pass the STAT field of JEST and STSMA field value of JSTO in table TJ30 then you will get the your operation active user status.
Regards
Kesava