Skip to Content

x12.fillUpToMinlength not working

Hi Guys,

I'm building IDOC to ANSI-X12-850 scenario using the B2B add-on. And to pad the mandatory fields to the minimum length, thought of using module parameter x12.fillUpToMinlength & x12.checkOfValueMinLength.

Flagged both parameters x12.fillUpToMinlength & x12.checkOfValueMinLength "true" on the file receiver channel(pls see attached modules.jpg).

In the message log it shows that the X12ConverterModule is identifying the properties(see attached message-log.jpg).

But nothings happens. For an example, ISA06 and ISA08 fields never get padded with trailing spaces up to length 15.

Am I doing something wrong here?

BTW, I pretty much read all the SCN threads and SAP notes on same/similar topic and nothing helped so far. Also upgraded the B2BTOOLKIT to the highest patch level SP04/98. But the issue is still there.

Any advise is much appreciated.

Thanks,

~ Jay

modules.jpg (64.3 kB)
message-log.jpg (87.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 18 at 06:37 PM

    Hi Jay,

    We have not tried this in our system and for those couple of fields we merely relied upon the mapping to introduce the trailing spaces. The only thing I can wonder is if it has to do with the envelope segments which are not listed in the data tables and the information only starts at the transaction set level (ST). One thing to try would be to evaluate the result for a data field like the one I have highlighted in the second screenshot to see if it works for that example.

    Regards,

    Ryan Crosby

    Add comment
    10|10000 characters needed characters exceeded