Configuring Order Level Segments

How to:

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


Top of page

x
Procedure: How to Configure the HL (Hierarchy) Elements
  1. Right-click the SG0 tag, which is located under inv_order, select Add, move your pointer over Variable and select HLCTR.

  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 HLCTR variable below the SG0 tag.
  3. Right-click the SG0 tag, which is located under inv_order, select Add, move your pointer over Variable and select LEVEL2.

  4. Right-click the LEVEL2 variable tag in the Output pane and select Properties from the context menu.

    The Output Node Properties - LEVEL2 dialog box opens.

  5. Select SET from the Action drop-down list.
  6. Click OK.
  7. Configure the mapping values for the LEVEL2 variable as indicated by the following table:

    Element

    Value

    LEVEL2

    @VARIABLE('HLCTR','GET')

    Your screen should now resemble the following image:

  8. Use the position icons (Move Up and Move Down) on the toolbar (or right-click and select from the control menu) to position the LEVEL2 variable below the HLCTR variable tag.

    Your screen should now resemble the following image:

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

    Element

    Value

    HL01

    @VARIABLE('HLCTR','GET'

    HL02

    @VARIABLE('LEVEL1','GET')

    HL03

    O



x
Procedure: How to Configure the PRF (PO Number) Elements
  1. Add a hidden group node above the PRF element and move the PRF element into the new group.
  2. Set the looping to false.
  3. Set the context to the following:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDK02

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

  6. Configure the mapping values for the PRF elements as indicated by the following table:

    Element

    Value

    PRF01

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDK02/BELNR

    PRF04

    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDK02/DATUM

    Your screen should now resemble the following image:



x
Procedure: How to Configure the REF DP (Department) Elements
  1. Add a hidden group node and move the PRF segment into it.
  2. Set the looping to false.
  3. Set the context 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 == 'Z002'

  6. Configure the mapping values for the REF elements as indicated by the following table:

    Element

    Value

    REF01

    DP

    REF02

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

    Your screen should now resemble the following image:



x
Procedure: How to Configure the REF MR (Merchandise Type) Element
  1. Copy the group you just mapped.
  2. Highlight SG0 at the top of the order group.
  3. Paste the REF DP element.

  4. Move the group to below the REF DP element.

  5. Change the specified condition in the Filter tab from Z002 to Z003.

  6. Change REF01 from DP to MR. Your screen should now resemble the following image:


Top of page

x
Procedure: How to Configure the REF IA (Internal Vendor Number) Element
  1. Copy the group you just mapped.
  2. Highlight SG0 at the top of the order group.
  3. Paste the REF MR element.

  4. Move the group up until it is located below the REF MR element.

  5. Change the filter from Z003 to Z002.

  6. Set value IA to REF01 and value VENDORID to REF02.

    You have now mapped three of the four required REF segments.


Top of page

x
Procedure: How to Configure the REF IV (Invoice Number) Element
  1. Paste one more REF node and leave it as the last one in the group. Leave the filter set to Z002 and the context set the same as the previous REF elements.
  2. Set value REF01 to IV and map ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/Z1INVOICE/BELNR to REF02. Your screen should now resemble the following image:

    Note that the invoice number is located in ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/Z1INVOICE/BELNR. This field is an extension field to the IDoc. The stock SAP IDoc for the ASN does not contain the invoice number. This is due to the order of operations in the flow to ship merchandise, as shown in the following diagram.

    The ASN IDoc is usually created as a byproduct of the Material Goods Issue Update process. Depending on the shipping system, it might be possible to create the ASN IDoc from the "truck has left" notification from the shipping system to SAP. Invoicing is usually a batch process that runs overnight. In this example, because the trading partner requires the invoice number on the ASN, the Invoicing process is run periodically during the day, either for all customers or just those EDI customers that require the invoice number on the ASN. The invoice number appears in an extension field on the IDoc. The following image is how the flow should now appear.


Top of page

x
Procedure: How to Configure the N1 BY (Buyer) Element
  1. Add a new hidden group tag. Move it up so the new tag is above the SG3 group.
  2. Move the SG3 group to the new group.
  3. Set the context to the following:
    ZWALASN/IDOC/Z1BILL_DOC/E1EDL20/E1EDK01/E1EDKA1

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

  6. Click OK.

    Your screen should now resemble the following image:

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

    Element

    Value

    N101

    BY

    N102

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

    N103

    UL

    N104

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

    Your screen should now resemble the following image:


iWay Software