How to get know the Sales Order IDOC#, if I know the created Sales Order#?
Let me know that, How to get know the IODC #, if I know the Sales Order#?
Scenario is that, sales order(say 12345678) was created from Inbound EDI. I also Know the MATERIAL too.
So, How to pull the associated Inbound ORDERS idoc, which is created this Sales order-12345678?
Is it from EDID4 table? or EDIDC? or any thing else?
reples r appreciated.
Edited by: SAP ABAPer on Sep 8, 2008 5:29 AM
Uwe Schieferstein replied
This can be done much easier using fm SREL_GET_NEXT_NEIGHBORS:
OBJECT-OBJKEY = <number of sales order> " with leading zeros!!! OBJECT-OBJTYPE = 'BUS2032' MAX_HOPS = '01'
NEIGHBORS-OBJKEY = <IDoc number with leading zeros> NEIGHBORS-OBJTYPE = 'IDOC' NEIGHBORS-ROLETYPE = 'INIDOC'.