# How to use "FormatInfo" parameter (used service is wm.b2b.edi:convertToValues)

**URL:** <https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [October 16, 2012, 2:08am UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441 "2012-10-16T02:08:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SA\_bastien\_Girard](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SA\_bastien\_Girard](https://techcommunity.softwareag.com/u/SA_bastien_Girard)\
**Post date:** [October 16, 2012, 2:08am UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441/1 "2012-10-16T02:08:02Z")

</div>

Hi,

I have a service that is loading an EDI file and I’m using wm.b2b.edi:convertToValues to work with.

When loading my document, webMethods is applying some formats in a few fields, like [xxx]/DTM02 that is a date field. In fact, the EDIFF schema is calling a format service, and this is working well for our current processes.

But exceptionally, I want to load my document without this date format being applied. When calling wm.b2b.edi:convertToValues, it seem to have a parameter delimiters/FormatInfo that can be used to force some formats, or to ignore format services on defined fields.

I never worked with that parameter and I’m unable to find an example of package using this parameter. If my assumption is good, is there someone who can visually help me how to fill this parameter?

Thanks,  
Sebastien

---

<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:** [October 16, 2012, 2:57am UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441/2 "2012-10-16T02:57:17Z")

</div>

I would suggest not messing with that paramter and instead simply reformat the date to the desired format after you get the document from convertToValues.

---

<div class="post-metadata">

**Author:** ![SA\_bastien\_Girard](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SA\_bastien\_Girard](https://techcommunity.softwareag.com/u/SA_bastien_Girard)\
**Post date:** [October 16, 2012, 8:09pm UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441/3 "2012-10-16T20:09:52Z")

</div>

As you said, I decided to loop over the 50,000 IT1 segments and format the DMT02 field manually. I was expecting some performance issues but this is working well.

Thanks,  
Sebastien

---

<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:** [October 16, 2012, 8:13pm UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441/4 "2012-10-16T20:13:33Z")

</div>

> [@sgirard;86746](#):
>
> As you said, I decided to loop over the 50,000 IT1 segments and format the DMT02 field manually. I was expecting some performance issues but this is working well.
> 
> Thanks,  
> Sebastien

you are in the right direction:

BTW what format you are changing it to?

---

<div class="post-metadata">

**Author:** ![SA\_bastien\_Girard](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SA\_bastien\_Girard](https://techcommunity.softwareag.com/u/SA_bastien_Girard)\
**Post date:** [October 16, 2012, 8:50pm UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441/5 "2012-10-16T20:50:07Z")

</div>

In our EDI 4010 810 schema, there is a format service associated to date fields. yyyyMMdd when creating document and yyyy/MM/dd when loading document. We are working on old environment and not all the current processes are done by us!

Long story short, a partner wants to receive one monthly invoicing file and have a large volume of invoices. Our webMethods server is unable to work with an incoming file with more than 100,000 lines and transform this file to our generic invoice document schema in order to work with, in mapping service, to create the EDI 810 doc. So, I’m creating daily 810 files, that I must reload on a monthly basis to ‘merge’ into a final EDI file. Not a really clean process, but now It’s working fine, performance is pretty good, with good validation.

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:** [October 16, 2012, 9:03pm UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441/6 "2012-10-16T21:03:26Z")

</div>

yyyyMMdd is the valid/standard format for the 4010 EDI schema’s…The one should not change it in the schema level and ofcourse it can be customized in the mapping side after parsing the data the better approach:

Thanks for elaborating short story:)

HTH,  
RMG

---

<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:06pm UTC](https://techcommunity.softwareag.com/t/how-to-use-formatinfo-parameter-used-service-is-wm-b2b-edi-converttovalues/110441/7 "2021-04-02T15:06:10Z")

</div>


