Create UserDefined Template

Hi All,

Can any one describe how to write a user-defined template And how to use it in the program?
I have already gone through EDI Documents, where it is given how to make one.
But the example itself doesn’t work!!

I have to build an character-delimiter template.

Any suggestion is highly appreciated.