I've created an outbound 856 map using Inovis' Catalyst mapper. My problem is that in the source doucment I have carton records that have lot nbrs, for one line item there are multiple carton's some with the same lot nbrs. I want to write a REF segment only for unique lot nbrs, example below has the part # 7T4E 6C524 DA with 32 cartons, I want an REF segment for each unique lot number, in this example I should have 3 REF segment (for lots 7425, 26 and 28). Currently it creates a segment for each carton, I've tried the find formula, the if, I even did a cardinality link to the pallet record, in doing so it only creates one segment per pallet. I thought about using Java Script to read the source file and extract only the cartons with unique lot nbrs, but my java scripting skills are next to none.
Could someone please help me.
L001|702295|1330|BF6PA|7T4E 6C524 DA|2100|0|111111|||VCT ASSY|9039023|
P001|702295|1330|BF6PA|32|32||AMMO4|9038938||7T4E 6C524 DA||2100|
C001|702295|1330|BF6PA|1447766|7425|3|
C001|702295|1330|BF6PA|1447767|7425|3|
C001|702295|1330|BF6PA|1447768|7425|3|
C001|702295|1330|BF6PA|1447769|7425|3|
C001|702295|1330|BF6PA|1447770|7425|3|
C001|702295|1330|BF6PA|1447771|7425|3|
C001|702295|1330|BF6PA|1447772|7426|3|
C001|702295|1330|BF6PA|1447773|7426|3|
C001|702295|1330|BF6PA|1447774|7428|3|
C001|702295|1330|BF6PA|1447775|7425|3|
1330.20070503-134304.asn FLAT FILE FOR ASN
|