on 08-03-2005 6:30 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WE05 will offer this to you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.