cancel
Showing results for 
Search instead for 
Did you mean: 

Report to display all the status records of an Idoc

Former Member
0 Kudos

Hi,

I need to find out all the status records for an idoc and display them as a report. Is there any existing SAP Report that does that. I checked in table edids and all the status records of the idoc are not stored in the status text which is empty althogh there are 12 counters for the idoc.

regards

Aveek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey Aveek;

Try this, which will get the most recent one. You would just need to change it to loop at the edids records to get at them all...

TABLES: *edidc, *edids, *t100.

DATA: wf_string type string.

CLEAR *edids.

SELECT SINGLE *

INTO *edids

FROM edids

WHERE docnum = *edidc-docnum

AND status = '51'.

SELECT SINGLE text

INTO *t100-text

FROM t100

WHERE sprsl = 'EN'

AND arbgb = *edids-stamid

AND msgnr = *edids-stamno.

CLEAR wf_string.

MOVE *edids-stapa1 TO wf_string.

REPLACE '&' WITH wf_string INTO *t100-text.

IF sy-subrc EQ 0.

CLEAR wf_string.

MOVE *edids-stapa2 TO wf_string.

REPLACE '&' WITH wf_string INTO *t100-text.

IF sy-subrc EQ 0.

CLEAR wf_string.

MOVE *edids-stapa3 TO wf_string.

REPLACE '&' WITH wf_string INTO *t100-text.

IF sy-subrc EQ 0.

CLEAR wf_string.

MOVE *edids-stapa4 TO wf_string.

REPLACE '&' WITH wf_string INTO *t100-text.

ENDIF.

ENDIF.

ENDIF.

A little sloppy (OK, alot!), but it gets the job done...

Cheers,

John

Former Member
0 Kudos

Hi,

I have cheked we05 and that is not what I need. The report although looks like something I can use. I will check and verify. Is it possible to get the complete code for this one.

regards

Aveek

Former Member
0 Kudos

Hi Aveek,

Use function module EDI_DOCUMENT_READ_ALL_STATUS to get what you want.

Srinivas

Former Member
0 Kudos

Please close the thread if the issue is resolved.

Answers (1)

Answers (1)

Former Member
0 Kudos

WE05 will offer this to you