# AddICEEnvelopeEDIFACT

**URL:** <https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [August 25, 2005, 2:19am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007 "2005-08-25T02:19:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@holden](https://techcommunity.softwareag.com/u/holden)\
**Post date:** [August 25, 2005, 2:19am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/1 "2005-08-25T02:19:13Z")

</div>

HEllo!

addICEEnvelopeEDIFACT  
Could somebody explain me what is the meaning of parameters to this service: syntaxID and syntaxVersion. What this values should I set?  
I can’t find any info on that subject in EDICoreUsersGuide.pdf.

One more question. When I map IDOC to EDIFACT ORDERS and making convertToString, output string has not CNT segment, but I supply CNT to this service.

Thanks in advance.

---

<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:** [August 25, 2005, 2:44am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/2 "2005-08-25T02:44:10Z")

</div>

Tomasz,

1)Set syntaxID = UNOC and syntaxVersion can be (1 to 6)select depends on your target requirment says…this value you can find from your EDI coordinator or EDI Analyst or customer who is receiving the EDI document.

2)What is the version of your EDIFACT ORDERS?  
Also check in the EDIFFSchema/recordstructure whether CNT segment exists in the right structure or not,since when you do IDATA (structure)convertToString it creates the output EDI string depends on the record/schema/template structure it is defined.OR problem could be the way you are mapping to the record structure and so when converting it is ignoring that as undefined segment.please check the pipeline.

HTH,  
RMG

---

<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:** [August 25, 2005, 2:45am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/3 "2005-08-25T02:45:28Z")

</div>

Also is the CNT segment is showing as recordlist when you map the segment before convertToString?

---

<div class="post-metadata">

**Author:** ![holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@holden](https://techcommunity.softwareag.com/u/holden)\
**Post date:** [August 25, 2005, 3:03am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/4 "2005-08-25T03:03:29Z")

</div>

Thank You for Your reply.

OK. I’ve set syntaxID to UNOC and syntaxVersion to 1. Works.

I am working on implementation of EANCOM (precisely it is purchase business process in ECR strategy) for my master of art thesis. So I am working on UN/EDIFACT 96A (using webMethods EDIFACT 98A schemas).

Yes, I have populated CNT segment in pipeline in OrdersEDI record (I checked it). Maybe it’s a metter of setting EDItemlate in convertToString template, cos I’ve only set nsRecord etc values but not EDItemplate?

Thank again for Yout kind reply.

---

<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:** [August 25, 2005, 3:10am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/5 "2005-08-25T03:10:13Z")

</div>

mapping nsRecord should work as it is defined using EDITemplate.If not you can specifiy the EDITemplate.

Please check in the mapping of CNT segment whether it has all the required data in the fields.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@holden](https://techcommunity.softwareag.com/u/holden)\
**Post date:** [August 25, 2005, 3:36am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/6 "2005-08-25T03:36:43Z")

</div>

I have loaded template (getTemplate, UNEDIFACT\_98A\_template) and feed it in convertToString.

In pipeline i have object OrdersEDI. Subsegment CNT in that object looks like this:

OrdersEDI-\>UNH-\>CNT  
CNT[0]  
C27001 1  
C27002 25 //it is total orders count in purchase order  
CNT[1]  
C27001 2  
C27002 2 // numbers of LIN segments

After convertToString process OrdersEDI I get string (note without CNT):

UNB+UNOC:1+ACME+0010+050824:2342+242342102+‘UNH+242342101_ORDERS:D:96A:UN:EAN008  
BGM_220_0000000314  
NAD_BY  
CTA_OC_:myPCC Buyer 1  
NAD_SU_0758478000007::9  
LIN_00010**5201314255000:EN  
IMD**_CU::9:HEX01:Farba czerwona  
QTY_21:12.000  
PRI_AAA:13  
LIN_00020**3355994000077:EN  
IMD**_CU::9:HEX02:Farba zielona  
QTY_21:13.000  
PRI_AAA:12  
UNS\*S’UNZ+1+242342102’

what should I check?  
SAP BC 4.7 with corefix 3

thanks.

---

<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:** [August 25, 2005, 7:18pm UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/7 "2005-08-25T19:18:54Z")

</div>

When you use getTemplate(UNEDIFACT\_98A\_template) are you seeing the CNT segment under UNH level in the pipeline?

If template has the correct structure then convertToString should work as expected.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@holden](https://techcommunity.softwareag.com/u/holden)\
**Post date:** [August 26, 2005, 1:58am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/8 "2005-08-26T01:58:49Z")

</div>

Hi RMG,

My service looks like this:

…

1. IdocToRecord
2. transformFlatToHierarchy
3. Loop over /orders05/ORDERS05/IDOC /\* mapping idoc to edi segments and create populated OrdersEDI record\*/
4. getTemplate
5. convertToString
6. addICEnvelopeEDIFACT  
…

Yes, in step 4. I get templateObject. After inspecting it in pipeline I can see it has definition for CNT segment.

in step 5. i set parameters of this service to:  
-Values to created OrdersEDI record  
-EDITemplate to templateObject  
-nsRecord to full name of Records:ordersEDI definition

Inspecting OrdersEDI before exec of convToString I _can_ see CNT filled with correct values on UNH level, with others segms like UNH02, BGM, DTM, NAD, LIN etc.

Hm, I’m lost. Still trying to get it work, but NO CNT in output string.

Thank You for your help and interest.  
best regards,  
Tomasz

---

<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:** [August 26, 2005, 2:27am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/9 "2005-08-26T02:27:13Z")

</div>

Tomasz,

hmm…

Still wondering where could be the issue?is it in mapping side or something missing in the CNT structure that when converting it is ignoring the segment which is not in correct position under UNH level.

Sorry if i am not much helpful…

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@holden](https://techcommunity.softwareag.com/u/holden)\
**Post date:** [August 26, 2005, 3:02am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/10 "2005-08-26T03:02:08Z")

</div>

RMG,

OK, If I resolve this issue i will let You know what was the cause.  
So far everything else is working.

Thank You for assistance and time.  
Best regards.

---

<div class="post-metadata">

**Author:** ![holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@holden](https://techcommunity.softwareag.com/u/holden)\
**Post date:** [August 26, 2005, 6:36am UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/11 "2005-08-26T06:36:09Z")

</div>

RMG,

I reconsidered Your suggestion about structure of record and… yes  
before:

CNT  
CNT[0]  
elem1  
elem2  
after:

CNT  
CNT[0]  
CNT01  
elem1  
elem2

and now convertToString give me what i want. ehh, i was blind ![](http://www.wmusers.com/wmusers/clipart/happy.gif)

Thank You for help

---

<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:04pm UTC](https://techcommunity.softwareag.com/t/addiceenvelopeedifact/107007/12 "2021-04-02T15:04:38Z")

</div>


