Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC Number for a Application document

Former Member
0 Likes
1,818

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,528

Goto Tcode : VA02/VA03

and Select Menu Path : System -> Services for Object

You can see idoc number.

Read only

birendra_chatterjee
Active Participant
0 Likes
1,528

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...

Read only

Former Member
0 Likes
1,528

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

Read only

birendra_chatterjee
Active Participant
0 Likes
1,528

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?

Read only

0 Likes
1,528

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

Read only

0 Likes
1,528

hi bhadwraj,

thank you for ur answer, can u pl tell me how to find the idoc in case of outbound

vin

Read only

0 Likes
1,528

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

Read only

0 Likes
1,528

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.

Read only

0 Likes
1,528

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