cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC Archived.

Former Member
0 Kudos

Hello All,

How to search a IDOC number which has been archived??

Regards

PVR

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

you could try this ( at least in Rel.ERP 2005):

Transaction SARI (Archive Information System) -> Archive Explorer

Archive Object : IDOC

Archive Infostructure: SAP_IDOC_001

In Menue-Point Archive Infostructure -> ADHOC-Evaluation

Then you'll get an generatet report. You can search for specfic IDOC-numbers and so on.

Regards

Wolfgang

Former Member
0 Kudos

Hello

When I executed, system throws an error "No active info structures exist for archiving object IDOC".

is there any other way I can find the Idoc which has already been archived.

Actually I am trying to find the idoc for sales order which has been created 2 months back.

I am not able to see the IDOC number in the sales order, services for object, nor i am able to find the IDOC number in WE02 transaction.

I am stuck up and could nt proceed further ......... Any inputs on this.

Regards

PVR

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

To find the number of IDOC try with this flow: search in table SRRELROLES the link between SO and IDOC (ojbkey is the number of SO, objtype is BUS*). I copy the ABAP for search the link between PO (for STO) and IDOC 'PORDCR1' (for this IDOC ojbkey is BUS2012).

The coding is

data: i_rel1 like srrelroles occurs 1 with header line,

i_rel2 like srrelroles occurs 1 with header line,

i_idocrel like idocrel occurs 1 with header line.

select * from srrelroles

into table i_rel1

where objkey = i_ebeln

and objtype = 'BUS2012'.

read table i_rel1 index 1.

select * from idocrel

into table i_idocrel

where role_b = i_rel1-roleid.

read table i_idocrel index 1.

select * from srrelroles

into table i_rel2

where roleid = i_idocrel-role_a.

read table i_rel2 index 1.

check i_rel2-objtype = 'IDOC'.

select single * from edidc

where docnum = i_rel2-objkey.

if sy-subrc = 0.

e_idoc = i_rel2-objkey.

endif.

The idoc will be e_idoc.

Regards,

Eduardo

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

Perhaps so easy to check this link, see it in generic object services / object service toolbox and check the icon 'display relationships' (check these links):

http://help.sap.com/saphelp_erp2004/helpdata//EN/c8/96c998142f11d389940000e8216438/frameset.htm

http://help.sap.com/saphelp_erp2004/helpdata//EN/c8/96c998142f11d389940000e8216438/frameset.htm

Do it in the screen of SO.

Regards,

Eduardo

Edited by: Eduardo Hinojosa on Apr 26, 2010 6:01 PM