How can I find an invoice no linked to an idoc no

Question: Hi All,
Can any one tell me how can I find the link between and FI Document
and the cooresponding IDoc no if the Document is posted through IDoc.
Which FI table can I find the IDoc no of the FI Document.

Thanks,

With Warm Regards,
Sharath Chandra

Answer:
No direct way .. but if you go and do some investigation on the FB03 -> Environment -> Document Environment -> Relationship Browser .. you'll get the corresponding IDOC no. Check this function module too:

SREL_GET_NEXT_NEIGHBORS
where OBJECT-OBJKEY = <BUKRS><BELNR><GJAHR>
and OBJECT-OBJTYPE = BKPF

Answer:
FM 'EDI_GET_LINKED_OBJECTS' gives you objects linked to one IDoc.
Table SWW_CONTOB contains those relations.
All you have to do is just write correct query.

Hope this helps!
Copyright ?2007 - 2008 www.jt77.com