BAPI_BUS2001_GET_STATUS 这个函数是取得项目状态用的, 经过查看该函数代码及跟踪测试,得知项目状态关系到的三个表,即PROJ,JEST,TJ02T.
SELECT DISTINCT proj~pspid proj~post1 INTO CORRESPONDING FIELDS OF TABLE it_proj
FROM proj
INNER JOIN jest ON jest~objnr = proj~objnr
INNER JOIN tj02t ON tj02t~istat = jest~stat
AND tj02t~txt04 <> 'CLSD'
AND tj02t~spras = 'E'
WHERE tj02t~txt04 <> 'TECO' .