2008 Dec 23 1:22 PM
hi all,
i need to put the idoc status description in the output of report.
whats the table/field for that????
2008 Dec 23 1:26 PM
Please Check the view V_STACUST
The Corresponding table is TEDS2
2008 Dec 23 1:27 PM
Hi,
The Status contains in the table EDIDC and its description contains in the table TEDS2.
I hope it will use ful to you
2008 Dec 23 1:36 PM
Hi ...
please check the table EDIDS to get the IDOC status description.
For more details check the sample code.
Get Idoc status record
select docnum " IDoc number
countr " IDoc status counter
statxt " Text for status code
stapa1 " Parameter 1
statyp " Type of message(A,W,E,S,I)
stamid " Status message ID
stamno " Status message number
from edids
into table i_edids
where docnum = wa_edidc-docnum.
Thanks
Subhankar
2008 Dec 23 1:39 PM
Hi Kunal
you can find the status text ( description of what that status code stands for) in EDIDS table and the field name is STATXT. EDIDS table contain all the status which an idoc has passed through and thier meaning.
2008 Dec 23 1:40 PM
HI,
You can find the description of the IDOC in table TEDS2 and you find the status of the idoc in table EDIDC.
Thanks & Regards
Sathish R Raj
2008 Dec 31 7:47 AM
Hi,
Table Name : TEDS2
Field : Descrp
Data Element : EDI_TEXT60
Regards
2008 Dec 31 9:18 AM
Hi Kunal,
You will get the STATUS Details of an Idoc from EDIDS table.
But, thats for IDOCS whose Logical Message DOES NOT START WITH 'w'. (eg. ACC_GL_POSTING)
SELECT docnum
credat
statxt
stapa1
stapa2
stapa3
stapa4
stamid
stamno
FROM edids
INTO TABLE it_edids.
For IDocs having message type starting with 'W' (eg, WPUBON, WPUFIB etc)...you have to go to WPLST table.
SELECT docnum
erzdt
msgnr
msgid
parameter1
parameter2
parameter3
parameter4
FROM wplst
INTO TABLE it_wplst.
then, on the basis of MSNGR and MSGID...hit T100 table to fetch exact and complete description.
SELECT msgnr
arbgb
text
INTO TABLE it_message
FROM t100
WHERE sprsl EQ 'E' AND
arbgb EQ it_mssg-msgid AND
msgnr EQ it_mssg-msgnr.