2010 Jun 08 9:40 AM
Hi frinds,
Using Idocs we create application documents like Sales orders(inbound),invoices, delivery etc (outbound) to create application document in some other system or used in case of B2B scenario.
my requirement is can we get the Idoc # form the slaesorders number using some function module (to get the idoc #'s of huge number of sales orders). however we can find the sales order number form the Idoc number using WE05 i want the reverse way.
Thanks,
vin.
Hi frinds,
Using Idocs we create application documents like Sales orders(inbound),invoices, delivery etc (outbound) to create application document in some other system or used in case of B2B scenario.
my requirement is can we get the Idoc # form the slaesorders number using some function module (to get the idoc #'s of huge number of sales orders). however we can find the sales order number form the Idoc number using WE05 i want the reverse way.
Thanks,
vin.
2010 Jun 08 10:11 AM
Goto Tcode : VA02/VA03
and Select Menu Path : System -> Services for Object
You can see idoc number.
2010 Jun 08 10:14 AM
Execute transaction WE09
Enter Logical Message, Basic Type, Enter Segment Name (in Search in Segment ...), Enter Fieldname (in Search in Field ...), enter Sales Order Number (in for Value ...). Click on execute, you will get the idoc number for Sales Order Number...
2010 Jun 08 10:22 AM
Hi,
You can try as , If you know the Sales Order Number, then goto EDID4 table enter Sales Order Number , You should be able to get the IDoc Number. You may get multiple Entries for the same Sales Order, if there are multiple IDocs generated for the same Sales Order by Changing Sales Order Number.
Please revert for further Qs.
Thanks and Regards,
P.Bharadwaj
2010 Jun 08 10:28 AM
Hi Bharadwaj,
Can You please elaborate how do You enter the sales order number in EDID4.
I believe one should know what is the segment name being used, so You can enter the segment name OK. But which mechanism You use to enter the Sales Order Number in field SDATA?
2010 Jun 08 10:56 AM
Hi,
Yes you have to mention the segment name.
Instead you can use FM "SREL_GET_NEXT_NEIGHBORS".
Input object-key(sales order) , object type(bus2032),max_hops='01'.
output : neighbors-objkey(idoc num) , neighbors-objtype = 'IDOC' , neighbors-roletype = 'INIIDOC'
Thanks and Regards,
P.Bharadwaj
2010 Jun 11 8:08 PM
hi bhadwraj,
thank you for ur answer, can u pl tell me how to find the idoc in case of outbound
vin
2010 Jun 14 7:28 AM
Hi,
If your requirement is like Xi generates an outbound idoc to R/3 which is different to inbound idoc number of R/3.
USe SREL_GET_NEXT_NEIGHBORS ,
object-objkey = idoc num object-objtyp = 'IDOC', max_hops = '99'.
You can get the list of outbound,inbound idoc numbers and sales order .
Thanks and Regards,
P.Bharadwaj
Edited by: Bharadwaj p on Jun 14, 2010 8:31 AM
2010 Jun 15 12:20 PM
Hi Bharadwaj,
i want to find out the idoc # in case of R/3 sending the documents to the external system.
Like Delivery document # number by knowing the delivery number itself
thanks,
VIN.
2010 Jun 16 1:52 PM
Hi,
Please use SREL_GET_NEXT_NEIGHBORS pass the Sales order and check the neighbors table for roletype outidoc.You can get the outbound idoc numbers.
Thanks and Regards,
P.Bharadwaj
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |