Problem: -------- Mapping the proper N1 segment when more than one are received. Solution: --------- In general a partner will send N1 segments to identify different addresses for the Ship to and Bill to. The ship to will carry a qualifier ST and the bill to BT. We must map the N1 segment only once. To accomplish this we will map the N104 (Entity Identifier) to the order.cust-no. Use a formula to perform the logic necessary to choose the correct N1 segment. For example: if |element|[2] = "ST" then |currelem| else "" Make sure the add/append switch on the element definition is set to append. What happens is the following: For each iteration of the N1 segment the formula will be executed each time appending the order.cust-no field with the result of the formula. When the ST is encountered the value in the N104 will be appended to order.cust-no. When the qualifier is not an ST then "" will be appended. The result after reading each N1 segment will be that the proper customer number will be in order.cust-no. Note that you may have to assign a translation table for the customer number to change the inbound customer number to your internal customer number.