Configuring Shipment Level Segments

How to:

The following sections describe how to map the shipment level segments.


Top of page

x
Procedure: How to Configure the HL (Hierarchy) Elements
  1. Right-click the SG0 tag, select Add, move your pointer over Variable, and then select LEVEL1.

  2. Use the position icons (Move Up and Move Down) on the tool bar (or right-click and select from the control menu) to position the LEVEL1 variable below the SG0 tag, as shown in the following image.

  3. Configure the mapping values for the HL elements as indicated by the following table:

    Element

    Value

    HL01

    @VARIABLE('HLCTR','GET')

    HL03

    S

    Your screen should now resemble the following image:



x
Procedure: How to Configure the Carton Count
  1. Right-click the SGO tag, select Add, and then select Group.

  2. Double-click the default name of the added group (OUTPUT_GROUP_NODE) and change it to COUNT_THE_CARTONS.
  3. Use the position icons (Move Up and Move Down) on the toolbar (or right-click and select from the control menu) to position the new COUNT_THE_CARTONS group below the PKG group.

  4. Right-click the COUNT_THE_CARTONS group in the Output pane and select Properties from the context menu.

    The Output Node Properties - COUNT_THE_CARTONS dialog box opens.

  5. Click the Filter tab.
  6. Select the Don't show the Group node option, and then click OK.
  7. Right-click the COUNT_THE_CARTONS tag, select Add, move your pointer over Variable, and then select CTNCNT.

  8. Use the position icons (Move Up and Move Down) on the tool bar (or right-click and select from the control menu) to position the CTNCNT variable below the COUNT_THE_CARTONS tag.
  9. Right-click the COUNT_THE_CARTONS group in the Output pane and select Properties from the context menu.

    The Output Node Properties - COUNT_THE_CARTONS dialog box opens.

  10. Enter the following in the Context field:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/Z1TOTE/TOTE_NUMBER
  11. Click OK.

    Your screen should now resemble the following image:


Top of page

x
Procedure: How to Configure the TD1 (Total Details) Elements
  1. Set the context for the TD1 group in the Output Node Properties dialog box, as shown in the following image.

  2. Click OK.
  3. Configure the mapping values for the TD1 elements as indicated by the following table:

    Element

    Value

    TD101

    CTN

    TD102

    @VARIABLE('CTNCNT','GET')

    TD106

    @IF(@LEN(ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/BTGEW) > '0','G','')

    TD107

    @LTRIM(ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/BTGEW)

    TD108

    @IF(@LEN(ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/BTGEW) > '0','LB','')

    This is where the carton count gets inserted into the output document. As a best practice, only insert qualifiers if the data is present.

    Your screen should now resemble the following image:



x
Procedure: How to Configure the REF BM/CN (Bill of Lading Number) Groups

You need to output two REF groups from the same source element.

  1. Add a new invisible parent group node to contain the REF group.
  2. Copy the REF group so there are two instances of this group.
  3. Set the context of the invisible parent group node to the following:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKT1

  4. Click the Filter tab.
  5. Enter the following in the Condition field:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKT1/TDID == 'Z004'

  6. Click OK.
  7. Configure the mapping values for the REF groups as indicated by the following table:

    Group

    Value

    REF02

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKT1/E1EDKT2/TDLINE

    REF02

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKT1/E1EDKT2/TDLINE

    Your screen should now resemble the following image:



x
Procedure: How to Configure the DTM 011 (Shipment Date) Elements
  1. Add a new group element (OUTPUT_GROUP_NODE) and align it below the DTM element in the HL loop.
  2. Drag and drop the DTM element into this new group.
  3. Set the context to the following:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDT13

  4. Click the Filter tab.
  5. Enter the following in the Condition field:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDT13/QUALF == '006'

  6. Click OK.
  7. Configure the mapping values for the DTM elements as indicated by the following table:

    Element

    Value

    DTM01

    011

    DTM02

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDT13/NTEND

    Your screen should now resemble the following image:



x
Procedure: How to Configure the FOB Element
  1. Configure the mapping value for the FOB element as indicated by the following table:

    Element

    Value

    FOB01

    PP

    Your screen should now resemble the following image:



x
Procedure: How to Configure the N1 ST (Ship-To) Segment
  1. Add a new hidden group tag.
  2. Move the new tag up so it is above the SG4 group.
  3. Copy the SG4 group and paste the copy under the new group.
  4. Set the context to the following:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1

  5. Click the Filter tab.
  6. Enter the following in the Condition field:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1/PARVW == 'WE'

    Your screen should now resemble the following image:

  7. Configure the mapping values for the N1 ST elements as indicated by the following table:

    Element

    Value

    N101

    ST

    N102

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1/NAME1

    N103

    UL

    N104

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1/E1EDKA3/STDPN

    N301

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1/STRAS

    N401

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1/ORT01

    N402

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1/REGIO

    N403

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1/PSTLZ

    Your screen should now resemble the following image:



x
Procedure: How to Configure the N1 SF (Ship From) Element
  1. The N1 SF element is hard-coded, as shown in the following image:

    This information was extracted from the IDoc, but can be accepted from other sources as well.


iWay Software