ASN appendToDocumentList service

I need help to finish my ASN outbound mapping…We are in WM 6.0.1 mapping IDOC DESADV to X12 -V4010- 856DT. After using the appendToDocumentList service the first output if append to the HL document list (array(0)) and the following outputs pointing to the same HL documnent list are write in array(1) so the output is not correctly, placing the first sequence at the bottom of the document list… See layout… there is any special use in the ASN document that I’m missing ?
In my map I’m looping to the segment and mapping values to a temporary HL documnet them I appendToDocumentList and drop the temporary HL.
Here the Layout:
ST8560000
BSN000080253719200309301200004
HL
1S
DTM
20020325
TD1G372.484KG
N1
SF
Sabex 2002 Inc.912440620710330
N1
ST
CPDN ONT91247191323
REFBM86630830-1 TERRE RC 101 BTES**
PERDIShipping DepartmentTE450-XXXX-4903 x- 2131
HL2
HL**1
O
PRF0080253719
HL

HL**
HL42I
LIN**UP
057513017605VC1760LT0000111302
SN180EA
DTM
03620050228
HL
52I
LIN
UP057513020506VC2050LT0000110712
SN1**120
EA
DTM03620030131
HL62I
LIN**UP
057513020902VC2090LT0000110716
SN110EA
DTM
03620030131
HL
72I
LIN
UP057513023019VC2301LT0000111543
SN1**200
EA
DTM03620040228
HL82I
LIN**UP
057513023101VC2310LT0000109729
SN140EA
DTM
03620031031
HL
92I
LIN
UP057513023705VC2370LT0000110158
SN1**80
EA
DTM03620031130
HL102I
LIN**UP
057513024009VC2400LT0000111457
SN1300EA
DTM
03620040228
HL
112I
LIN
UP057513024610VC2461LT0000111338
SN1**20
EA
DTM03620030831
HL122I
LIN**UP
057513024702VC2470LT0000110799
SN166EA
DTM
03620030731
HL
132I
LIN
UP057513027307VC2730LT0000111099
SN1**120
EA
DTM03620050131
HL142I
LIN**UP
057513028618VC2861LT0000111137
SN1120EA
DTM
03620030731
HL
152I
LIN
UP057513035203VC3520LT0000111375
SN1**330
EA
DTM03620030831
HL162I
LIN**UP
057513052200VC5220LT0000111097
SN1198EA
DTM
03620040131
HL
172I
LIN
UP057513057601VC5760LT0000109712
SN1**30
EA
DTM03620030430
HL182I
LIN**UP
057513058318VC5831LT0000111339
SN1120EA
DTM
03620050228
HL
192I
LIN
UP057513058417VC5841LT0000110995
SN1**120
EA
DTM03620050131
HL202I
LIN**UP
057513059018VC5901LT0000111372
SN11040EA
DTM
03620050228
HL
212I
LIN
UP057513059209VC5920LT*00001

Hi Javier,

I’m having the same problem that you had when trying to map EDI856 to ASN!
Did you find a solution for this issue?!

Andre,

Please elaborate on your issue even though you are having same issue as originator.Tell us what your current mapping for appendDocumentList logic…Let see if we can help on this.

If you are struggling with append logic,try to search in the forum on appendToRecordList or DocumentList you will see the basic procedure when handling loops and append from temp document to original document.

HTH,
RMG

Hello,

Yemi Bedu

Hi Andre,

I will review my notes about this issue and I will contact you.