# ASN appendToDocumentList service

**URL:** <https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [October 1, 2003, 12:58am UTC](https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047 "2003-10-01T00:58:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![javier.monzon.45096](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@javier.monzon.45096](https://techcommunity.softwareag.com/u/javier.monzon.45096)\
**Post date:** [October 1, 2003, 12:58am UTC](https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047/1 "2003-10-01T00:58:34Z")

</div>

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:  
ST_856_0000  
BSN_00_0080253719_20030930_1200_004  
HL_1**S  
DTM**20020325  
TD1_G372.484KG  
N1SFSabex 2002 Inc.912440620710330  
N1ST_CPDN ONT_91_247191323  
REF_BM_86630830-1 TERRE RC 101 BTES\*\*  
PER_DI_Shipping Department_TE_450-XXXX-4903 x- 2131  
HL_2  
HL\*\*1_O  
PRF_0080253719  
HL_  
HL\*\*  
HL_4_2_I  
LIN\*\*UP_057513017605_VC_1760_LT_0000111302  
SN1**80_EA  
DTM_036_20050228  
HL_5_2_I  
LIN**UP_057513020506_VC_2050_LT_0000110712  
SN1\*\*120_EA  
DTM_036_20030131  
HL_6_2_I  
LIN\*\*UP_057513020902_VC_2090_LT_0000110716  
SN1**10_EA  
DTM_036_20030131  
HL_7_2_I  
LIN**UP_057513023019_VC_2301_LT_0000111543  
SN1\*\*200_EA  
DTM_036_20040228  
HL_8_2_I  
LIN\*\*UP_057513023101_VC_2310_LT_0000109729  
SN1**40_EA  
DTM_036_20031031  
HL_9_2_I  
LIN**UP_057513023705_VC_2370_LT_0000110158  
SN1\*\*80_EA  
DTM_036_20031130  
HL_10_2_I  
LIN\*\*UP_057513024009_VC_2400_LT_0000111457  
SN1**300_EA  
DTM_036_20040228  
HL_11_2_I  
LIN**UP_057513024610_VC_2461_LT_0000111338  
SN1\*\*20_EA  
DTM_036_20030831  
HL_12_2_I  
LIN\*\*UP_057513024702_VC_2470_LT_0000110799  
SN1**66_EA  
DTM_036_20030731  
HL_13_2_I  
LIN**UP_057513027307_VC_2730_LT_0000111099  
SN1\*\*120_EA  
DTM_036_20050131  
HL_14_2_I  
LIN\*\*UP_057513028618_VC_2861_LT_0000111137  
SN1**120_EA  
DTM_036_20030731  
HL_15_2_I  
LIN**UP_057513035203_VC_3520_LT_0000111375  
SN1\*\*330_EA  
DTM_036_20030831  
HL_16_2_I  
LIN\*\*UP_057513052200_VC_5220_LT_0000111097  
SN1**198_EA  
DTM_036_20040131  
HL_17_2_I  
LIN**UP_057513057601_VC_5760_LT_0000109712  
SN1\*\*30_EA  
DTM_036_20030430  
HL_18_2_I  
LIN\*\*UP_057513058318_VC_5831_LT_0000111339  
SN1**120_EA  
DTM_036_20050228  
HL_19_2_I  
LIN**UP_057513058417_VC_5841_LT_0000110995  
SN1\*\*120_EA  
DTM_036_20050131  
HL_20_2_I  
LIN\*\*UP_057513059018_VC_5901_LT_0000111372  
SN1**1040_EA  
DTM_036_20050228  
HL_21_2_I  
LIN**UP_057513059209_VC_5920_LT\*00001

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [December 8, 2005, 1:32am UTC](https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047/2 "2005-12-08T01:32:34Z")

</div>

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?!

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [December 8, 2005, 2:19am UTC](https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047/3 "2005-12-08T02:19:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Yemi\_Bedu](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@Yemi\_Bedu](https://techcommunity.softwareag.com/u/Yemi_Bedu)\
**Post date:** [December 8, 2005, 3:24am UTC](https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047/4 "2005-12-08T03:24:04Z")

</div>

Hello,

> [@](#):
>
> Sometimes a stinging issue is when you use a document reference for your temporary document and try to drop that in a loop. The data carries over into the next loop. Good day.

Yemi Bedu

---

<div class="post-metadata">

**Author:** ![javier.monzon.45096](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@javier.monzon.45096](https://techcommunity.softwareag.com/u/javier.monzon.45096)\
**Post date:** [December 8, 2005, 9:08pm UTC](https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047/5 "2005-12-08T21:08:15Z")

</div>

Hi Andre,

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

---

<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:05pm UTC](https://techcommunity.softwareag.com/t/asn-appendtodocumentlist-service/108047/6 "2021-04-02T15:05:03Z")

</div>


