AnsweredAssumed Answered

Separate criteria for multiple N1 segments

Question asked by elugomasimo on May 14, 2018

Hello Community,

 

I am creating the map for an outbound 855 and I need to create multiple N1 segments depending on the source data. 

 

Example:

 

855.N1 Segment (Create Condition: BRANCH_ID is not empty)

N101 = 'DB'

N103 = '92'

N104 = BRANCH_ID

 

855.N1 Segment (Create Condition: GRP_SENDER = 'TradingPartner1')

N101 = 'SU'

N102 = 'My Corporation'

 

855.N1 Segment (Create Condition: SHIP_TO_ID is not empty OR CUSTOMER_NAME is not empty)

N101 = 'ST'

N102 = CUSTOMER_NAME

N103 = SHIP_TO_CODE

N104 = SHIP_TO_ID

 

If the conditions for each segment are not fulfill that segment should not be created. Each N1 segment is independent of the other.

 

 

There are multiple qualifier instances created for each N1 needed.

 

I tried the Write Rule option on the original N1 loop.

 

But that would mean that all the qualifier instances inherit the same config and that all the elements (N101,N102,N103, etc.) therefore cannot be modified.

 

 

Is there a way to individually config a write rule option in each qualifier instance?

 

What would be the best approach?

Outcomes