SapMaterial.com
User status for a production order - How to read

* Read object number
select single objnr
into lv_objnr
from vbak
where vbeln = itab_hol_contracts-vbeln.

* Read user status
select single stat into lv_status
from jest
where objnr = lv_objnr and stat like 'E%'
and inact <> 'X'.

* Read text for user status
select single txt04
into lv_txt04
from tj30t
where stsma = 'ZCONTRAC'
and estat = lv_status
and spras = 'E'.
All of the  product names here are trademarks of their respective companies.  The site
www.allsaplinks.com no way affiliated with SAP AG. We have made every effort for the content
integrity.  Information used on this site is at your own risk.