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

problem with IDOC loopback

Former Member
0 Likes
572

Hi all,

I'm trying to setup an inter-company (inter company code) ordering process utilizing IDOCs.

Company A creates PO and Company B fulfills it.

I am planing for the following sequence of steps:

1. Upon Purchase Order creation, an IDOC of type ORDERS/ORDERS05 will be generated and sent to a file port

2. A scheduled job for WE16 (manual inbound processing) will process the IDOCs and create Sales Orders on Company B

Both Company codes exist on the same system & client. So it is like an intra-client ALE/EDI.

I did some config and tested the setup.The IDOC was succesfully generated and transferred to the file port. But when I tried to process the inbound order using WE16, I hit an error saying "EDI: Receiver port in control record is invalid". The Receiver port contains the name of the File Port where the outbound IDOC is created.

Can anybody throw any lights on this issue.

DT

2 REPLIES 2
Read only

Former Member
0 Likes
466

check the values in the control record for given idoc no. in we02/we05.

and check for defined edi data has correct data type or structure?

Read only

0 Likes
466

I have solved this by using an ABAP port for the outbound PO instead of a file port. In the ABAP function module I read the data from the IDOC and create the Sales Order, thus eliminating the need for an Inbound IDOC.

Regds

Thiru