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_INBOUND_ASYNCHRONOUS

Former Member
0 Likes
1,178

I am processing a

IDOC (eg A )which inturn creates an another IDOC( eg B). Now I want idoc A to

have the information of idoc B in one of its segment. While I was debugging

the IDOC A I saw that IDOC B was being generated in FM

IDOC_INBOUND_ASYNCHRONOUS.

6 REPLIES 6
Read only

Former Member
0 Likes
921

This would lead me to believe that you have a process that is creating and saving IDOC B upon arrival of IDOC A or after processing IDOC A. If that is the case, then perhaps you can code an exit for IDOC A (if you can figure out what the values in B will be) or programmatically add a row to IDOC A .

Read only

0 Likes
921

You have understood the question thank you. Now IDOC_INBOUND_ASYNCHRONOUS is the one that is generating the IDOC number for B. Now how to fetch IDOC number of B to IDOC A.

Read only

0 Likes
921

If there is no business requirement to process the IDOC A immediately, then you can deveop a small standalone program that will read the IDOC B data and then open the IDOC A for editing with the changes read from IDOC B and then process the IDOC A using transaction code BD87

Read only

0 Likes
921

IDOCS A and B are created successfully.........I want to store IDOC number of B in one of the segements of IDOC A....

Read only

0 Likes
921

Well, I don't like direct updates to DB tables, but if you know your IDOC number from A, you could retrieve it from EDIDC4, load the segnam you need into an appropriate structure and put the IDOC B number into the correct field, or put your IDOC B number into the correct positions in SDATA, and update EDIDC4 table from your table or structure you just worked on.

In somewhat similar situations, I've seen a custom table with both IDOC number written to it, and that serves as a cross-reference between A&B or B&A.

Read only

naimesh_patel
Active Contributor
0 Likes
921

You must not change the Segment information once the IDOC is created.

What you should do is, once the IDOC B is created, add that information back into Status message with the IDOC B.

Regards,

Naimesh Patel