I have searched the forum, but found no answer to my problem. I try to describe what I have done so far and where my problem is.
First I create a XSD for ORDERS05 in WE60, so I could create a record in SAP BC which I called “order”.
The routing rule to send IDoc from BC to SAP was defined as follows:
Transport: ALE (R/3 IDOC)
A flow service was automatically created, which includes a Map (sets tranService to “pub.sap.transport.ALE:OutboundProcess” and server to “TD1”) and a OutboundProcess.
Between these two services I call a service with a Map setting the data in the IDoc and call a transformHierarchyToFlat. Here is the first problem I have, because boundNote had the right data inside, but IdocList is empty after transformHierarchyToFlat.
Another problem I have is that i don’t know what to map to IDOC_CONTROL(_REC_40) or IDOC_DATA(_REC_40). I have read the AdapterGuide, but didn’t understand where to find the data or control stuff.
Do I have to set $tid and $action? If yes with which values?
Last question, what is tranService good for, it is never used in the service.
PS: I use SAP BC Developer 4.7 on Windows
The EDI_DC40 data I have set are (maybee something wrong here):