How to find IDOC number from a TID

Question: This topic has come up a few times in this forum with no answers. I opened an OSS topic and this is the answer that i got. Unfortunatly it didnt' work for us as our TID is being generated from a different system but it might be some help to others .....

This is the text from the OSS message

The FM SREL_GET_NEXT_NEIGHBORS use the object linking, and you need the
the TID or the IDoc number of the sending system. The information are
saved within tables IDOCREL and SRRELROLES. To read you can use FM
SREL_GET_NEXT_NEIGHBORS in the receiving system.
case 1: you have the TID
fill for import parameter object OBJKEY the TID and for OBJTYPE TRANSID

SREL_GET_NEXT_NEIGHBORS. Fill the import parameter OBJECT with
OBJKEY = <the TID>
OBJTYPE = 'TRANSID'
And then the table NEIGHBORS (field OBJKEY) will give you old and new
DOCNUM.

case 2: you have the idoc number of the sending system
OBJKEY idocnumber (16-digit) OBJTYPE IDOC and for LOGSYS the sending
logical system.
If you specify
OBJKEY = <the DOCNUM, new or old>
OBJTYPE = 'IDOC'
then this function module will return the corresponding TID.

Answer:
Jon,

check your previous post.
I added the RFC coding we used last week.

Regards
Journey
Copyright ?2007 - 2008 www.jt77.com