cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound IDOC from an Outbound IDOC in same client

Former Member
0 Kudos

Hi,

Can anybody help me translate a control record from a outbound file to a Inbound file?

I have a file port defined to get the outbound and it''s working properly.

Now I''m trying to upload the generated file through a inbound IDOC.

Does anybody know how to set this up?

Thanks a lot.

Accepted Solutions (0)

Answers (2)

Answers (2)

Peter_Inotai
Active Contributor
0 Kudos

Do you really need a file for this? If you do it to the same client may be it's easier to use transactional RFC port for this.

Once I set up such scenario, and I didn't have to change the Idocs manually.

Peter

brad_bohn
Active Contributor
0 Kudos

Agreed. If you want a good example of this, look at inter-company billing, where 2 companies (company codes) exist in the same client. One company sells a product that belongs to and is delivered from a plant from another company. The intercompany invoice is sent via EDI/ALE through a tRFC port and received into the same system as an FI invoice receipt. The setup, message types, process codes, etc. are well documented in the help files.

Former Member
0 Kudos

Hi Persio,

The key thing to change is the <b>direction</b>. If I recall an outbound Idoc has direction 1 in the control record. You need to change this direction to 2.

The other data to focus on is your sending/receiving partners. Depending upon what you are trying to do, you may need to manipulate the values in these fields to achieve what you want.

But changing the direction should be enough to get the idoc into your system.

If you are talking about triggering the inbound processing, you can start an RFC call to the function ALE_INBOUND_ASYNCHRONOUS, or you can run the EDI function (can't remember its name - get back to me if you need this and I'll have a look).

Note also, that you can use a logical system and RFC port and avoid writing a file altogether. This is a much cleaner way to handle <i>turnaround</i> documents.

Cheers,

Brad