Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

STATUS_TEXT_EDIT,

Former Member
0 Likes
2,060

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,310

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^

2 REPLIES 2
Read only

Former Member
0 Likes
1,311

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^

Read only

Former Member
0 Likes
1,310

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