# How to LOOP NAD @area=heading & LOOP NAD @area= detail

**URL:** <https://techcommunity.softwareag.com/t/how-to-loop-nad-area-heading-loop-nad-area-detail/232191>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [August 12, 2020, 8:15am UTC](https://techcommunity.softwareag.com/t/how-to-loop-nad-area-heading-loop-nad-area-detail/232191 "2020-08-12T08:15:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rockylee](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rockylee](https://techcommunity.softwareag.com/u/rockylee)\
**Post date:** [August 12, 2020, 8:15am UTC](https://techcommunity.softwareag.com/t/how-to-loop-nad-area-heading-loop-nad-area-detail/232191/1 "2020-08-12T08:15:39Z")

</div>

Hi,  
While I do EDI mapping, I have a question like below:

How to LOOP NAD @area=heading? What value is assigned to the Input array of LOOP properties?

 ![image](https://global.discourse-cdn.com/techcommunity/original/2X/d/d7b414a07e0528cd1742ad6bfd200c848cf2e48f.png)

How to LOOP NAD @area=detail? What value is assigned to the Input array of LOOP properties?

 ![image](https://global.discourse-cdn.com/techcommunity/original/2X/3/3402fea12f3578944f6a6b4061ec6a84630cdf06.png)

---

<div class="post-metadata">

**Author:** ![Akshay\_Anand](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Akshay\_Anand](https://techcommunity.softwareag.com/u/Akshay_Anand)\
**Post date:** [December 8, 2020, 10:32am UTC](https://techcommunity.softwareag.com/t/how-to-loop-nad-area-heading-loop-nad-area-detail/232191/2 "2020-12-08T10:32:48Z")

</div>

If your LOOP executes against a document list called LineItems that contains children called Item, Qty, and UnitPrice, you would specify LineItems as the Input array for the LOOP step,  
but services within the loop would take the individual elements of LineItems (for example, Item,Qty, UnitPrice, and so forth) as input.  
In this case, to loop through NAD the input array should be assigned with value “/EDIValues/UNH/NAD” and use “@area” while mapping to map different values such as heading or details.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:45pm UTC](https://techcommunity.softwareag.com/t/how-to-loop-nad-area-heading-loop-nad-area-detail/232191/3 "2021-04-02T15:45:03Z")

</div>


