‎2007 Oct 26 9:51 AM
hi all BW friends ,
what is the purpose of STATUS_TEXT_EDIT ,where should i provide the objnr to get the status ,
actually i need objnr to return u the status code..whether complete or outstanding.
any one , kindly explain me in detail and clearly .
points definitely assinged to all friends
thanks in advance
Sherwin
‎2007 Oct 26 12:03 PM
hi
good
STATUS_READ is used to get the Status of a Production Order
See the code below
concatenate 'OR' AFKO-AUFNR into L_AUFNR.
call function 'STATUS_READ'
exporting
OBJNR = L_AUFNR
ONLY_ACTIVE = 'X'
tables
STATUS = IT_JEST
exceptions
OBJECT_NOT_FOUND = 1
others = 2.
if SY-SUBRC <> 0.
endif.
" to get the texts of statuses
if not IT_JEST[] is initial.
select ISTAT TXT04
from TJ02T
into table IT_TJ02T
for all entries in IT_JEST
where ISTAT = IT_JEST-STAT
and SPRAS = SY-LANGU.
endif.
reward point if helpful.
thanks
mrutyun^
‎2007 Oct 26 12:03 PM
hi
good
STATUS_READ is used to get the Status of a Production Order
See the code below
concatenate 'OR' AFKO-AUFNR into L_AUFNR.
call function 'STATUS_READ'
exporting
OBJNR = L_AUFNR
ONLY_ACTIVE = 'X'
tables
STATUS = IT_JEST
exceptions
OBJECT_NOT_FOUND = 1
others = 2.
if SY-SUBRC <> 0.
endif.
" to get the texts of statuses
if not IT_JEST[] is initial.
select ISTAT TXT04
from TJ02T
into table IT_TJ02T
for all entries in IT_JEST
where ISTAT = IT_JEST-STAT
and SPRAS = SY-LANGU.
endif.
reward point if helpful.
thanks
mrutyun^
‎2007 Oct 26 11:53 PM
An object (order, project, cost center, ...) is identified uniquely by
its object number within a client. The object number is used in tables
which cover all objects, for instance in status administration, cost
collection.
Once you pass the object number to the function module STATUS_TEXT_EDIT then you will get the status.
Thanks,
Srinivas