SAP IDoc to UNEDIFACT

Hi,
I have a similar question like Franz in the previous post:
I generated an ORDERS02-IDoc and it arrives successfully in SAP BC. I have the UNEDIFACT and EDI-Module installed and copied the EDIFACT ORDERS93A-Template as described in the EDI-Manual. But how should the flow look like?
Is it like:

  1. [IDoc arriving in Business-Connector and routed to flow]
  2. transformFlatToHierarchy
  3. getTemplate
  4. convertToString
    ???

Has anybody ever created an EDI-Doc out of a SAP-IDoc? So far it seems like there is no experience on this :frowning:

Thanks a lot in advance,
Gunter

Hi Gunter

We send invoices(INVOIC93A) and delivery orders(INSDES96A).
e.g. The invoices’ map looks like:

  1. [IDoc arriving in Business-Connector and routed to flow]

  2. decodeSDATA

  3. transformFlatToHierarchy

  4. maps the IDoc to a service that has a Record
    Reference to INVOIC01 record (that I created in
    SAP BC using the DTD file generated by SAP ->
    WE60 -> Documentation -> Generate DTD) like
    Service in. Then the service (and sub-services)
    fill a Record Reference of a INVOIC93A record
    mapping values
    e.g.

    INVOIC01/IDOC/E1EDK01[0]/BELNR -->
    –> INVOIC93A/UNH/BGM/BGM02

    and so on…

  5. addICEnvelopeEDIFACT

Best regards,

Sebastian Miranda

Pastas Gallo / Barcelona, Spain