IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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
Expand all | Collapse all

inputStream to String issue (decimal part is removed)

  • 1.  inputStream to String issue (decimal part is removed)

    Posted Thu January 10, 2008 04:53 PM

    Hi,

    I have successfully generated the EDI data from the internal documents, using invoice EDI flatfile documents. The flow is as follows,

    wm.b2b.edi.tradacoms.compose:startTradacomsTransmission
    createEDIInvoice (service to map the SAP IDoc to the EDI Invoice documents MINVFILDT, MINVOICDT, MINVTLRDT. This is working fine. The data is as it is in IDoc)
    wm.b2b.edi.tradacoms.compose:addToTradacomsTransmission (MINVFILDT)
    wm.b2b.edi.tradacoms.compose:addToTradacomsTransmission (MINVOICDT)
    wm.b2b.edi.tradacoms.compose:addToTradacomsTransmission (MINVTLRDT)
    wm.b2b.edi.tradacoms.compose:endTradacomsTransmission
    pub.io.streamToBytes
    pub.string.bytesToString

    The data being generated is as follows (I am giving only the relevant segment values)
    ODD=+LM18044815001+0825441676:20071119++++++16.59’ (this is correct)
    ILD=A1+17.500+++++1.000+165900’
    TOT=++290+1949’

    The data should have been like this,
    ODD=+LM18044815001+0825441676:20071119++++++16.59’
    ILD=A1+17.500+++++1.000+16.5900’
    TOT=++2.90+19.49’

    Also this problem is not consistent, as you can see ODD segment has right value 16.59

    did someone face this issue ?

    Any help on this much appreciated.

    Thanks
    NK


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 2.  RE: inputStream to String issue (decimal part is removed)

    Posted Thu January 10, 2008 05:33 PM

    Different data elements have different data types. Some elements are implied decimals. I don’t know specifically about the ILD segment but you’ll need investigate the data element type to see if it has an implied decimal of 4 places. Each type has an “internal” and “external” format. You can control formats and whether or not the formatting is used via the EDI Admin pages.


    #Integration-Server-and-ESB
    #webMethods
    #edi