Problem: -------- 810/880 outbound question: My map is generating segments on the invoice line level for as many times as I have serialized items on my invoice- lines. For this partner, I may or may not have serialized items associated with invoice lines to be sent. I am not mapping any invoice-ln-s fields to any segments. So, why am I getting segments generated for as many serialized items as I have for that invoice? Solution: -------- It’s all dependent on the levels put on your maps. If you have serialized items (invoice-ln-s) and want serialized invoice-line information generated for each serialized item, then put the segments mapping to the serialized item information at level 2 for the 810 transaction set(or level 3 on the 880 transaction set) and set your invoice-line segments to level 3 for the 810 transaction set and level 4 for the 880 transaction set on your maps. 810: If you never have serialized items on your invoices then you can use either level 2 or level 3 for your invoice line segments (item level) segments. 880: If you never have serialized items on your invoices then you can use either level 3 or level 4 for your invoice line segments (item level) segments. If you use serialized items, but your partner does not want to see segments generated for each serialized item, then generate all your item level segments at level 3 for the 810 transaction set (level 4 for the 880 transaction set). Of course, do not map any segments on this level to the invoice-ln-s table. For those of you who are more technically inclined, here is an explanation of how the program works: ------------------------------------------------------------ This is what is happening in the code: -------------------------------------- Note that part one and part two happen independently from one another. -->For a particular invoice: Section I: Go through each invoice line: --------------PART ONE -------------- Section II: 810: If the invoice has serialized items: Generate level 2 mapped segments for each serialized invoice-line belonging to each invoice line. End of 'if the invoice has serialized items' OR 880: If the invoice has serialized items: Generate level 3 mapped segments for each serialized invoice-line belonging to each invoice line. End of 'if the invoice has serialized items' Section III: Now, 810:If the invoice line has no serialized items Generate all Level 2 segments for each invoice-line. 880:If the invoice line has no serialized items Generate all Level 3 segments for each invoice-line. --------- END OF PART ONE ---------- -------- PART TWO ----------- Section IV: 810: Generate all level three segments. 880: Generate all level four segments. -------- END OF PART TWO ------- End of 'Going through each invoice-line' End of 'for a particular invoice'