Parsing data for delfor 96A

Hi All,
i am working on UNEDIFACT Delfor 96A standard on webMethods v4.6 with service patch 2 installed. I struck in a problem where segements are uncorrectly collecting under the UNH segment level.

I am using the following services to parse the data:
getTemplate
recordToDocument
convertToValues

The above program works fine when the sequence of segments in the data file is

UNH
.....
.....
UNS
NAD
LOC <--
LIN <--
RFF
QTY
.....
we are able to process the data correctly.

But when the sequence changes to:
UNH
......
......
UNS
NAD
LIN <--
LOC <--(LIN LOC changed their place)
RFF
QTY
.....

all the segments after UNS appear uncorrectly at the same level under UNH. All the RFF datas are collected under one RFF segment, all the QTY datas are collected under the same one QTY segment.

WRONG OUTPUT:

-UNH
|___-BGM
|___-RFF
|   |___-DTM
|___-UNS
|___-NAD
|   |___-CTA
-LIN
|
-LOC
|
-RFF
|
-QTY
|___-QTY[0]
|___-QTY[1]
|___-QTY[2]
...............
-SCC
|___-SCC[0]
|___-SCC[1]
..............
-DTM
|___-DTM[0]
|___-DTM[1]
.............

while it should show like this

RIGHT OUPUT:

......................
......................
|___-LIN
    |___-LOC
        |___-QTY[0]
        |   |___-SCC
        |       |___-DTM
        |___-QTY[1]
            |___-SCC
                |___-DTM
.........................

And to add to worse the program is also not showing any error.

Can anyone can tell where the problem goes.

Hi Sunil,

How is your Delfor Template generated?

Have you installed any delfor patches?

There was a known problem with original DELFOR 96A template provided with webMethods 4.6. Ask support to provide you SEF file for Delfor 96A and generate template from there. Or you can use the .SEF from webMethods 6.1 for this message structure.