# Creating Flat file from EDI

**URL:** <https://techcommunity.softwareag.com/t/creating-flat-file-from-edi/108183>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [August 18, 2003, 5:37pm UTC](https://techcommunity.softwareag.com/t/creating-flat-file-from-edi/108183 "2003-08-18T17:37:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![njindal](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@njindal](https://techcommunity.softwareag.com/u/njindal)\
**Post date:** [August 18, 2003, 5:37pm UTC](https://techcommunity.softwareag.com/t/creating-flat-file-from-edi/108183/1 "2003-08-18T17:37:13Z")

</div>

Hi,

Can anybody help me on how to create a flat file from EDI file.  
Any help regarding the same will be appreciated.

Thanks,  
Neeraj

---

<div class="post-metadata">

**Author:** ![suda1234](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@suda1234](https://techcommunity.softwareag.com/u/suda1234)\
**Post date:** [August 24, 2003, 1:55am UTC](https://techcommunity.softwareag.com/t/creating-flat-file-from-edi/108183/2 "2003-08-24T01:55:31Z")

</div>

Hi,  
u have to first convert the EDI file into Idata values object using convertToValues.and also u have to define the flatfile schema in developer .then u have to create the document type from this schema.  
then map your EDI values data to corresponding flatfile document type.finally use convertToString service , by passing these, flatfile values and schema as inputs , you will get your flatfile.Wmflatfile, and EDI user guide will help you lot on this procedure.

HTH,  
Rao.

---

<div class="post-metadata">

**Author:** ![hboddeti](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hboddeti](https://techcommunity.softwareag.com/u/hboddeti)\
**Post date:** [February 4, 2004, 8:45pm UTC](https://techcommunity.softwareag.com/t/creating-flat-file-from-edi/108183/3 "2004-02-04T20:45:12Z")

</div>

yes Rao,  
i did the same way as u suggested but iam able to get only the first record in the EDI file  
eg:  
i took a purchase order and 10 items r there for purchase  
but onle the first item is present in flat file  
thanks

---

<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/creating-flat-file-from-edi/108183/4 "2021-04-02T15:05:06Z")

</div>


