# Template from an EDI document

**URL:** <https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [July 31, 2007, 4:36am UTC](https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350 "2007-07-31T04:36:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![suman44](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@suman44](https://techcommunity.softwareag.com/u/suman44)\
**Post date:** [July 31, 2007, 4:36am UTC](https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350/1 "2007-07-31T04:36:00Z")

</div>

Hi all,  
I have a sample EDI file.I need to create a sample html template from the file.What are the steps do I need to follow to acheive it.

Thanks.

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [July 31, 2007, 7:49am UTC](https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350/2 "2007-07-31T07:49:38Z")

</div>

I wonder if your post may fall into the category described by [Describe the goal, not the step](http://catb.org/~esr/faqs/smart-questions.html#goal) where you’re describing a particular path you’re pursuing but it may be the wrong path.

Can you explain the process you’re trying to implement? Like “I need to send an EDI X12 850 to a partner over FTP. What’s the best way to create the 850?” With the high-level goal, we’ll be better able to suggest a correct course of action.

---

<div class="post-metadata">

**Author:** ![suman44](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@suman44](https://techcommunity.softwareag.com/u/suman44)\
**Post date:** [July 31, 2007, 9:39am UTC](https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350/3 "2007-07-31T09:39:24Z")

</div>

Thanks for the reply,I should have been clear any wayy

I have an EDI x12 document which I need to parse.I need to extract the values from the parsed document and create a html template from it.

ISA_00 __00__ 01_42343434343 _ZZ_xxxxxxxxx _041102_1230_U_00401_000000295_1_P_:  
GS_PO_932660376_xxxxxxxxxxxxx_20041102_1230_295_X_004010  
ST_850_000000001  
BEG_06_SA_0000115300_01_20040719  
CUR_BY_USD\*\*SE_USD  
REF_IA_80376_ID xxxxxxxxxx_  
REF_ZZ\*\*xxxxxxxxxxxxxxxxxxxxx_  
REF_DP_024\*\*  
REF_FQ_DO\*\*  
PER_BD_xxxxxxxxxxxxxxxxxxxxx_EM_yyyyyyyyyyyyyy  
FOB_CC_OR\*\*01_ZZZ_PE_bbllllllllllllllllllllllllllllll  
ITD_52_**T  
DTM03720041101  
DTM00220041129  
DTM00120041122  
TD5**M  
N1STxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
N3_xxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxx  
N4_yyyyyyyy_US_nnnnnnnnnnn\*USA  
…  
…  
…

CTT_000002  
AMT_TT_140000  
SE_33_000000001  
GE_1_295  
IEA_1\*000000295

Ineed to create a PO template like(not exactly like below)

Purchase order

date:  
…

…

```
                    column1 column2

```

Items:

item1:

item2:

I created a schema and got an ISdocument from it .How do i get the values to be inputted into the template like \<%value date%\>

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [July 31, 2007, 5:00pm UTC](https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350/4 "2007-07-31T17:00:05Z")

</div>

The EDI module documentation describes the steps to follow for processing EDI documents. You’ll want to decide whether or not to use Trading Networks (TN). TN can help make processing EDI documents much easier.

I assume you’re creating an HTML page for viewing purposes? You’re on the right track with the value tag. Once you’ve converted the EDI string into an IS document, you’ll use the appropriate field names within the value tags.

---

<div class="post-metadata">

**Author:** ![harishnamdeo](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@harishnamdeo](https://techcommunity.softwareag.com/u/harishnamdeo)\
**Post date:** [August 12, 2007, 9:58am UTC](https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350/5 "2007-08-12T09:58:57Z")

</div>

Hello suman;  
Can u send me ur sample EDI file it will help me to understand ur actual problem. Right now am not getting  
what r u using 850,855,820 or something diff ?

---

<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:** [August 17, 2007, 9:25pm UTC](https://techcommunity.softwareag.com/t/template-from-an-edi-document/109350/6 "2007-08-17T21:25:25Z")

</div>

Do you still need assistance?

---

<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/template-from-an-edi-document/109350/7 "2021-04-02T15:05:39Z")

</div>


