Groovy web console

subscribe to the feed Subscribe
to this
site
idoc test (via #groovywebconsole)
tweet this snippet Tweet
this
script

idoc test

Published 6 months ago by OM with tags hci
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def body = '<DELVRY03 xmlns="urn:sap-com:document:sap:idoc:soap:messages"><IDOC BEGIN="1"><EDI_DC40 SEGMENT="1"><TABNAM>EDI_DC40</TABNAM><MANDT>300</MANDT><DOCNUM>0000000000303669</DOCNUM><DOCREL>702</DOCREL><STATUS>30</STATUS><DIRECT>1</DIRECT><OUTMOD>2</OUTMOD><IDOCTYP>DELVRY03</IDOCTYP><MESTYP>DESADV</MESTYP><SNDPOR>SAPRRQ</SNDPOR><SNDPRT>LS</SNDPRT><SNDPRN>RRQCLNT300</SNDPRN><RCVPOR>HCI_DESADV</RCVPOR><RCVPRT>KU</RCVPRT><RCVPFC>WE</RCVPFC><RCVPRN>0000010122</RCVPRN><CREDAT>20180614</CREDAT><CRETIM>150405</CRETIM><ARCKEY>urn:sap.com:msgid=005056BA6EEC1ED89BF960FEF2DDA0EC</ARCKEY><SERIAL>20180614150404</SERIAL></EDI_DC40><E1EDL20 SEGMENT="1"><VBELN>0080281098</VBELN><VSTEL>1100</VSTEL><VKORG>1000</VKORG><LGNUM>Z10</LGNUM><INCO1>CPT</INCO1><INCO2>ESPOO</INCO2><ROUTE>FI00</ROUTE><VSBED>01</VSBED><BTGEW>        3476.586</BTGEW><NTGEW>3296.586</NTGEW><GEWEI>KGM</GEWEI><VOLUM>0.000</VOLUM><ANZPK>00009</ANZPK><PODAT>20180614</PODAT><POTIM>140404</POTIM><E1EDL22 SEGMENT="1"><VSTEL_BEZ>Lähetyspaikka 0001</VSTEL_BEZ><VKORG_BEZ>Myyntiorg. 0001</VKORG_BEZ><INCO1_BEZ>Kuljetus maksettuna</INCO1_BEZ><VSBED_BEZ>Standard</VSBED_BEZ></E1EDL22><E1EDL21 SEGMENT="1"><LFART>LF</LFART><LPRIO>00</LPRIO><KDGRP>51</KDGRP><TRAGR>0001</TRAGR><E1EDL23 SEGMENT="1"><LFART_BEZ>Lähtevä toimitus</LFART_BEZ><KDGRP_BEZ>INEX PARTNERS</KDGRP_BEZ><TRAGR_BEZ>Rani standard</TRAGR_BEZ></E1EDL23></E1EDL21><E1EDL18 SEGMENT="1"><QUALF>ORI</QUALF></E1EDL18><E1ADRM1 SEGMENT="1"><PARTNER_Q>AG</PARTNER_Q><PARTNER_ID>0000010122</PARTNER_ID><LANGUAGE>FI</LANGUAGE><NAME1>SOK</NAME1><STREET1>Fleminginkatu 34</STREET1><POSTL_COD1>00510</POSTL_COD1><CITY1>HELSINKI</CITY1><COUNTRY1>FI</COUNTRY1></E1ADRM1><E1ADRM1 SEGMENT="1"><PARTNER_Q>WE</PARTNER_Q><PARTNER_ID>0000011437</PARTNER_ID><LANGUAGE>FI</LANGUAGE><NAME1>SOK</NAME1><NAME2>c/o Inex Partners Oy</NAME2><STREET1>Karantie 2</STREET1><POSTL_COD1>02630</POSTL_COD1><CITY1>ESPOO</CITY1><COUNTRY1>FI</COUNTRY1></E1ADRM1><E1ADRM1 SEGMENT="1"><PARTNER_Q>OSP</PARTNER_Q><PARTNER_ID>1100</PARTNER_ID><LANGUAGE>EN</LANGUAGE><NAME1>Ab Rani Plast Oy, Byn</NAME1><STREET1>Fabriksvägen 6</STREET1><POSTL_COD1>68700</POSTL_COD1><CITY1>TEERIJÄRVI</CITY1><COUNTRY1>FI</COUNTRY1></E1ADRM1><E1ADRM1 SEGMENT="1"><PARTNER_Q>OSO</PARTNER_Q><PARTNER_ID>1000</PARTNER_ID><LANGUAGE>EN</LANGUAGE><NAME1>Packaging</NAME1><STREET1>Tehtaantie 6</STREET1><POSTL_COD1>68700</POSTL_COD1><CITY1>TEERIJÄRVI</CITY1><COUNTRY1>FI</COUNTRY1></E1ADRM1><E1EDT13 SEGMENT="1"><QUALF>006</QUALF><NTANF>20170220</NTANF><NTANZ>000000</NTANZ><NTEND>20170220</NTEND><NTENZ>000000</NTENZ><TZONE_BEG>CET</TZONE_BEG><ISDD>20170220</ISDD><ISDZ>000000</ISDZ><IEDD>20170220</IEDD><IEDZ>000000</IEDZ><TZONE_END>CET</TZONE_END></E1EDT13><E1EDT13 SEGMENT="1"><QUALF>003</QUALF><NTANF>20170220</NTANF><NTANZ>000000</NTANZ><NTEND>20170220</NTEND><NTENZ>000000</NTENZ><TZONE_BEG>CET</TZONE_BEG><ISDD>00000000</ISDD><ISDZ>000000</ISDZ><IEDD>00000000</IEDD><IEDZ>000000</IEDZ></E1EDT13><E1EDT13 SEGMENT="1"><QUALF>001</QUALF><NTANF>20170220</NTANF><NTANZ>000000</NTANZ><NTEND>20170220</NTEND><NTENZ>000000</NTENZ><TZONE_BEG>CET</TZONE_BEG><ISDD>00000000</ISDD><ISDZ>000000</ISDZ><IEDD>00000000</IEDD><IEDZ>000000</IEDZ></E1EDT13><E1EDT13 SEGMENT="1"><QUALF>007</QUALF><NTANF>20170220</NTANF><NTANZ>000000</NTANZ><NTEND>20170220</NTEND><NTENZ>000000</NTENZ><TZONE_BEG>CET</TZONE_BEG><ISDD>00000000</ISDD><ISDZ>000000</ISDZ><IEDD>00000000</IEDD><IEDZ>000000</IEDZ></E1EDT13><E1EDT13 SEGMENT="1"><QUALF>010</QUALF><NTANF>20170220</NTANF><NTANZ>000000</NTANZ><NTEND>20170220</NTEND><NTENZ>000000</NTENZ><TZONE_BEG>CET</TZONE_BEG><ISDD>00000000</ISDD><ISDZ>000000</ISDZ><IEDD>00000000</IEDD><IEDZ>000000</IEDZ></E1EDT13><E1EDT13 SEGMENT="1"><QUALF>015</QUALF><NTANF>20170217</NTANF><NTANZ>000000</NTANZ><NTEND>20170217</NTEND><NTENZ>000000</NTENZ><ISDD>00000000</ISDD><ISDZ>000000</ISDZ><IEDD>00000000</IEDD><IEDZ>000000</IEDZ></E1EDT13><E1TXTH8 SEGMENT="1"><TDOBJECT>VBBK</TDOBJECT><TDOBNAME>0080281098</TDOBNAME><TDID>Z003</TDID><TDSPRAS>U</TDSPRAS><LANGUA_ISO>FI</LANGUA_ISO><E1TXTP8 SEGMENT="1"><TDFORMAT>*</TDFORMAT><TDLINE>"Huom. Purku klo 06.00-09.00"</TDLINE></E1TXTP8></E1TXTH8><E1EDL28 SEGMENT="1"><ROUTE>FI00</ROUTE><VSART>01</VSART><DISTZ>0.000</DISTZ><E1EDL29 SEGMENT="1"><VSART_BEZ>Kuorma-auto</VSART_BEZ></E1EDL29></E1EDL28><E1EDL24 SEGMENT="1"><POSNR>000010</POSNR><MATNR>000000000000424757</MATNR><MATWA>000000000000424757</MATWA><ARKTX>Rainbow jätesäkki musta 200 L</ARKTX><MATKL>FE</MATKL><WERKS>1100</WERKS><LGORT>112</LGORT><CHARG>1249009</CHARG><KDMAT>55563</KDMAT><LFIMG>120.000</LFIMG><VRKME>CT</VRKME><LGMNG>1500.000</LGMNG><MEINS>KGM</MEINS><NTGEW>1500.000</NTGEW><BRGEW>          1580</BRGEW><GEWEI>KGM</GEWEI><VOLUM>0.000</VOLUM><LADGR>0001</LADGR><TRAGR>0001</TRAGR><VKBUR>100</VKBUR><VTWEG>10</VTWEG><SPART>01</SPART><GRKOR>000</GRKOR><EAN11>6415711801008</EAN11><KDMAT35>55563</KDMAT35><POSEX>000000</POSEX><USR01>                                 9</USR01><VFDAT>00000000</VFDAT><EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT><VGBEL>0000197656</VGBEL><VGPOS>000010</VGPOS><ORMNG>       120.000</ORMNG><EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B><E1EDL25 SEGMENT="1"><LGORT_BEZ>Byn-Myynti WM</LGORT_BEZ><LADGR_BEZ>Ab Rani Plast Oy STD</LADGR_BEZ><TRAGR_BEZ>Rani standard</TRAGR_BEZ><SPART_BEZ>Tuote sektori 01</SPART_BEZ></E1EDL25><E1EDL26 SEGMENT="1"><PSTYV>TAN</PSTYV><MATKL>FE</MATKL><PRODH>170200400070700000</PRODH><UMVKZ>25</UMVKZ><UMVKN>2</UMVKN><UEBTO>10.0</UEBTO><UNTTO>10.0</UNTTO><XCHBW>1</XCHBW><KVGR1>ZDE</KVGR1><E1EDL27 SEGMENT="1"><PSTYV_BEZ>Vakiorivi</PSTYV_BEZ><WERKS_BEZ>Byn</WERKS_BEZ></E1EDL27></E1EDL26><E1EDL15 SEGMENT="1"><ATINN>9999999400</ATINN><ATNAM>LOBM_VFDAT</ATNAM><ATBEZ>Viim. käyttöpvä, väh.kelp.aika</ATBEZ><ATWRT>00.00.0000</ATWRT><ATWTB>00.00.0000</ATWTB><EWAHR>0.0000000000000000E+00</EWAHR></E1EDL15><E1EDL35 SEGMENT="1"><STAWN>3923 21 00</STAWN><HERKL>FI</HERKL><E1EDL36 SEGMENT="1"><STXT1>PE-säkit, -kassit ja -pussit</STXT1><HERKL_BEZ>Suomi</HERKL_BEZ></E1EDL36></E1EDL35><E1EDL43 SEGMENT="1"><QUALF>C</QUALF><BELNR>0000197656</BELNR><POSNR>000010</POSNR><DATUM>20170217</DATUM></E1EDL43><E1EDL41 SEGMENT="1"><QUALI>001</QUALI><BSTNR>7589434 Toni Huikko</BSTNR><BSTDT>20170217</BSTDT></E1EDL41><E1TXTH9 SEGMENT="1"><TDOBJECT>VBBP</TDOBJECT><TDOBNAME>0080281098000010</TDOBNAME><TDID>0001</TDID><TDSPRAS>U</TDSPRAS><LANGUA_ISO>FI</LANGUA_ISO><E1TXTP9 SEGMENT="1"><TDFORMAT>*</TDFORMAT><TDLINE>10 kpl/rll</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>/</TDFORMAT><TDLINE>20 rll/ltk</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>/</TDFORMAT><TDLINE>30 ltk/lava</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>*</TDFORMAT><TDLINE>rll-EAN-koodi: 6415711403585</TDLINE></E1TXTP9></E1TXTH9></E1EDL24><E1EDL24 SEGMENT="1"><POSNR>000020</POSNR><MATNR>000000000000424756</MATNR><MATWA>000000000000424756</MATWA><ARKTX>RAINBOW JÄTESÄKKI musta 150 L</ARKTX><MATKL>FE</MATKL><WERKS>1100</WERKS><LGORT>112</LGORT><CHARG>1248253</CHARG><KDMAT>55562</KDMAT><LFIMG>144.000</LFIMG><VRKME>CT</VRKME><LGMNG>1385.280</LGMNG><MEINS>KGM</MEINS><NTGEW>1385.280</NTGEW><BRGEW>       1465.28</BRGEW><GEWEI>KGM</GEWEI><VOLUM>0.000</VOLUM><LADGR>0001</LADGR><TRAGR>0001</TRAGR><VKBUR>100</VKBUR><VTWEG>10</VTWEG><SPART>01</SPART><GRKOR>000</GRKOR><EAN11>6415711800995</EAN11><KDMAT35>55562</KDMAT35><POSEX>000000</POSEX><USR01>                                 9</USR01><VFDAT>00000000</VFDAT><EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT><VGBEL>0000197656</VGBEL><VGPOS>000020</VGPOS><ORMNG>       144.000</ORMNG><EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B><E1EDL25 SEGMENT="1"><LGORT_BEZ>Byn-Myynti WM</LGORT_BEZ><LADGR_BEZ>Ab Rani Plast Oy STD</LADGR_BEZ><TRAGR_BEZ>Rani standard</TRAGR_BEZ><SPART_BEZ>Tuote sektori 01</SPART_BEZ></E1EDL25><E1EDL26 SEGMENT="1"><PSTYV>TAN</PSTYV><MATKL>FE</MATKL><PRODH>170200400070700000</PRODH><UMVKZ>481</UMVKZ><UMVKN>50</UMVKN><UEBTO>10.0</UEBTO><UNTTO>10.0</UNTTO><XCHBW>1</XCHBW><KVGR1>ZDE</KVGR1><E1EDL27 SEGMENT="1"><PSTYV_BEZ>Vakiorivi</PSTYV_BEZ><WERKS_BEZ>Byn</WERKS_BEZ></E1EDL27></E1EDL26><E1EDL15 SEGMENT="1"><ATINN>9999999400</ATINN><ATNAM>LOBM_VFDAT</ATNAM><ATBEZ>Viim. käyttöpvä, väh.kelp.aika</ATBEZ><ATWRT>00.00.0000</ATWRT><ATWTB>00.00.0000</ATWTB><EWAHR>0.0000000000000000E+00</EWAHR></E1EDL15><E1EDL35 SEGMENT="1"><STAWN>3923 21 00</STAWN><HERKL>FI</HERKL><E1EDL36 SEGMENT="1"><STXT1>PE-säkit, -kassit ja -pussit</STXT1><HERKL_BEZ>Suomi</HERKL_BEZ></E1EDL36></E1EDL35><E1EDL43 SEGMENT="1"><QUALF>C</QUALF><BELNR>0000197656</BELNR><POSNR>000020</POSNR><DATUM>20170217</DATUM></E1EDL43><E1EDL41 SEGMENT="1"><QUALI>001</QUALI><BSTNR>7589434 Toni Huikko</BSTNR><BSTDT>20170217</BSTDT></E1EDL41><E1TXTH9 SEGMENT="1"><TDOBJECT>VBBP</TDOBJECT><TDOBNAME>0080281098000020</TDOBNAME><TDID>0001</TDID><TDSPRAS>U</TDSPRAS><LANGUA_ISO>FI</LANGUA_ISO><E1TXTP9 SEGMENT="1"><TDFORMAT>*</TDFORMAT><TDLINE>10 kpl/rll</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>/</TDFORMAT><TDLINE>20 rll/ltk</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>/</TDFORMAT><TDLINE>36 ltk/lava</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>*</TDFORMAT><TDLINE>rll-EAN-koodi 6415711403578</TDLINE></E1TXTP9></E1TXTH9></E1EDL24><E1EDL24 SEGMENT="1"><POSNR>000030</POSNR><MATNR>000000000000424755</MATNR><MATWA>000000000000424755</MATWA><ARKTX>RAINBOW JÄTESÄKKI musta 75 L</ARKTX><MATKL>FE</MATKL><WERKS>1100</WERKS><LGORT>112</LGORT><CHARG>1246102</CHARG><KDMAT>175923</KDMAT><LFIMG>42.000</LFIMG><VRKME>CT</VRKME><LGMNG>411.306</LGMNG><MEINS>KGM</MEINS><NTGEW>411.306</NTGEW><BRGEW>       431.306</BRGEW><GEWEI>KGM</GEWEI><VOLUM>0.000</VOLUM><LADGR>0001</LADGR><TRAGR>0001</TRAGR><VKBUR>100</VKBUR><VTWEG>10</VTWEG><SPART>01</SPART><GRKOR>000</GRKOR><EAN11>37340011452745</EAN11><KDMAT35>175923</KDMAT35><POSEX>000000</POSEX><USR01>                                 9</USR01><VFDAT>00000000</VFDAT><EXPIRY_DATE_EXT>0</EXPIRY_DATE_EXT><VGBEL>0000197656</VGBEL><VGPOS>000030</VGPOS><ORMNG>        42.000</ORMNG><EXPIRY_DATE_EXT_B>0</EXPIRY_DATE_EXT_B><E1EDL25 SEGMENT="1"><LGORT_BEZ>Byn-Myynti WM</LGORT_BEZ><LADGR_BEZ>Ab Rani Plast Oy STD</LADGR_BEZ><TRAGR_BEZ>Rani standard</TRAGR_BEZ><SPART_BEZ>Tuote sektori 01</SPART_BEZ></E1EDL25><E1EDL26 SEGMENT="1"><PSTYV>TAN</PSTYV><MATKL>FE</MATKL><PRODH>170200400070700000</PRODH><UMVKZ>9793</UMVKZ><UMVKN>1000</UMVKN><UEBTO>10.0</UEBTO><UNTTO>10.0</UNTTO><XCHBW>1</XCHBW><KVGR1>ZDE</KVGR1><E1EDL27 SEGMENT="1"><PSTYV_BEZ>Vakiorivi</PSTYV_BEZ><WERKS_BEZ>Byn</WERKS_BEZ></E1EDL27></E1EDL26><E1EDL15 SEGMENT="1"><ATINN>9999999400</ATINN><ATNAM>LOBM_VFDAT</ATNAM><ATBEZ>Viim. käyttöpvä, väh.kelp.aika</ATBEZ><ATWRT>00.00.0000</ATWRT><ATWTB>00.00.0000</ATWTB><EWAHR>0.0000000000000000E+00</EWAHR></E1EDL15><E1EDL35 SEGMENT="1"><STAWN>3923 21 00</STAWN><HERKL>FI</HERKL><E1EDL36 SEGMENT="1"><STXT1>PE-säkit, -kassit ja -pussit</STXT1><HERKL_BEZ>Suomi</HERKL_BEZ></E1EDL36></E1EDL35><E1EDL43 SEGMENT="1"><QUALF>C</QUALF><BELNR>0000197656</BELNR><POSNR>000030</POSNR><DATUM>20170217</DATUM></E1EDL43><E1EDL41 SEGMENT="1"><QUALI>001</QUALI><BSTNR>7589434 Toni Huikko</BSTNR><BSTDT>20170217</BSTDT></E1EDL41><E1TXTH9 SEGMENT="1"><TDOBJECT>VBBP</TDOBJECT><TDOBNAME>0080281098000030</TDOBNAME><TDID>0001</TDID><TDSPRAS>U</TDSPRAS><LANGUA_ISO>FI</LANGUA_ISO><E1TXTP9 SEGMENT="1"><TDFORMAT>*</TDFORMAT><TDLINE>- 20 kpl/rll</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>/</TDFORMAT><TDLINE>- 15 rll/ltk</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>*</TDFORMAT><TDLINE>- 42 ltk/lava</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>/</TDFORMAT><TDLINE>rll EAN-koodi 7340011452744</TDLINE></E1TXTP9><E1TXTP9 SEGMENT="1"><TDFORMAT>/</TDFORMAT></E1TXTP9></E1TXTH9></E1EDL24><E1EDL37 SEGMENT="1"><EXIDV>2369293</EXIDV><BRGEW>         395.000</BRGEW><NTGEW>         375.000</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000010</POSNR><CHARG>1249009</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2369292</EXIDV><BRGEW>         395.000</BRGEW><NTGEW>         375.000</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000010</POSNR><CHARG>1249009</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2369287</EXIDV><BRGEW>         395.000</BRGEW><NTGEW>         375.000</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000010</POSNR><CHARG>1249009</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2369286</EXIDV><BRGEW>         395.000</BRGEW><NTGEW>         375.000</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000010</POSNR><CHARG>1249009</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2368666</EXIDV><BRGEW>         366.320</BRGEW><NTGEW>         346.320</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000020</POSNR><CHARG>1248253</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2368662</EXIDV><BRGEW>         366.320</BRGEW><NTGEW>         346.320</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000020</POSNR><CHARG>1248253</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2368661</EXIDV><BRGEW>         366.320</BRGEW><NTGEW>         346.320</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000020</POSNR><CHARG>1248253</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2368660</EXIDV><BRGEW>         366.320</BRGEW><NTGEW>         346.320</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000020</POSNR><CHARG>1248253</CHARG></E1EDL44></E1EDL37><E1EDL37 SEGMENT="1"><EXIDV>2365100</EXIDV><BRGEW>         431.306</BRGEW><NTGEW>         411.306</NTGEW><GWEIM>KGM</GWEIM><E1EDL44 SEGMENT="1"><VELIN>3</VELIN><VBELN>0080281098</VBELN><POSNR>000030</POSNR><CHARG>1246102</CHARG></E1EDL44></E1EDL37></E1EDL20></IDOC></DELVRY03>';

//def ns = new groovy.xml.Namespace(xmlns="urn:sap-com:document:sap:idoc:soap:messages", 'ns')
  def xml = new XmlSlurper().parseText(body);
//def ORGIDS = xml_body['ORDERS05']['IDOC']['E1EDK14']['ORGID'];
//def ABRVW = xml_body['ORDERS05']['IDOC']['E1EDK01']['ABRVW'];
//def E1EDK14 = xml_body.ORDERS05.IDOC.E1EDK14;
  
//find size of entries in E1EDK414
//def sizeE1dk14 = xml_body.IDOC.E1EDK14;

def counter = 0;

def E1EDT13 = [];
for ( i in xml.IDOC.E1EDT13 ) {
E1EDT13.add(i.QUALF);
counter++;
}

def E1dk01  = [];
for ( i in xml.IDOC.E1EDK01 ) {
E1dk01.add(i.ABRVW['value']);
}

//if (E1dk14.flatten().contains('RQO') || E1dk14.flatten().contains('RQQ')) {
//     route_out = 1;
//    } else if(E1dk14.flatten().contains('ZRQO') && E1dk01.flatten().contains('INQ')){
//     route_out = 2;
//    } else if(E1dk14.flatten().contains('ZRQO') && E1dk01.flatten().contains('ORD')){
///     route_out = 3;
//   }

println body;
//println route_out;
println counter;