webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Flat files without record-ids

    Posted Tue October 01, 2002 10:06 AM

    Hi.

    I am trying to convert a flat file into a record structure, using the procedure as described in the EDI Core Component Guide

    1. Create XML template
    2. stringToDocument (XML structure → Document)
    3. documenttoRecord (Document → idata object)
    4. convertToValues (format the idata object in proper flat file format)

    The flat file has 4 different segment types, but no segment id’s.

    The result is that the file segments are unrecognized + classified as “unDefData”.

    Is it possible to convert the file into an idata object, or do i have to somehow add segment id’s to the relevant lines?

    Any help would be much appreciated.
    Thanks
    Mark


    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Flat files without record-ids

    Posted Mon October 07, 2002 05:29 PM

    Hi Mark,

    if the file consists of 4 different segements which can repeat why you don’t have segement-IDs? What you can also do is define only one segment like this:

    then you will have all records in a list (but of course not sorted according to segments. Let me know if you need more help.

    Regards,
    Gunter


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 3.  RE: Flat files without record-ids

    Posted Fri July 09, 2004 06:25 AM

    Hi Gunter,

    I am facing problem with the EDI parser.

    I am calling

    stringToDocument
    documentToRecord
    convertToValues

    after creating EDIValues, it is alsor initializing ‘unDefData’ which causes an error in parsing.

    Please find the xmlTemplate I am using for the EDI856 file

    Thanks in advance.

    Regards,
    Srinivas
    mail: smudiraj@optum.com
    srinivas.mudiraj@patni.com

    <?xml version="1.0"?> | * ISA GS ST, GE IEA ST BSN DTM HL, CTT SE HL SN1 DTM TD1 TD4 TD5 N1 N2 N3 N4 PRF REF, CLD, CLD REF,
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 4.  RE: Flat files without record-ids

    Posted Tue July 18, 2006 11:22 AM

    Hi
    I mapped all the fields in EDI856 doc . i am getting fields from Database , finally i have to fill SE01 segment as well how can i calculate total no. of segments populated in EDI856 doc to put that value into the SE01 segment, as values are coming from database i can’t hardcode it as, it is changing at runtime.

    Please help me out
    Unnati yadav


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 5.  RE: Flat files without record-ids

    Posted Wed July 19, 2006 08:58 AM

    The SE01 field is the total # of segments (not fields) from ST to SE.

    This value is filled in automatically by the service wm.b2b.edi:convertToString. Just make sure that you do not specify a value for this field on the input IData.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods