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

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?

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

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.