Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to get know the Sales Order IDOC#, if I know the created Sales Order#?

Hi Experts,

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.

thanq

Edited by: SAP ABAPer on Sep 8, 2008 5:29 AM

Tags:
replied

Hello

This can be done much easier using fm SREL_GET_NEXT_NEIGHBORS:

Input:

OBJECT-OBJKEY = <number of sales order>  " with leading zeros!!!
OBJECT-OBJTYPE = 'BUS2032'

MAX_HOPS = '01'

Result:

NEIGHBORS-OBJKEY = <IDoc number with leading zeros>
NEIGHBORS-OBJTYPE = 'IDOC'
NEIGHBORS-ROLETYPE = 'INIDOC'.

Regards

Uwe

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question