Skip to Content

Correct padding for ISA13 and IEA02 in X12

Hi Folks,

I am using the NRO module in my comm channel and passing the constant ($B2B_UEBNR_BEFOREXXXXXXXXXX$B2B_END_UEBNR) from mapping to the field ISA13 and IEA02 to get the number range value from the B2Bic NRO module. The fields are populating with the correct number range values but I have no control from mapping to padd additional whitespaces to make the length as 9 characters as that what its fixed length is. Can someone please suggest how can we dynamically add those spaces or pad preceeding zeroes.

So in the following example I have to pad whitespaces or zeroes in from of 20, to make it as either " 20" or "000000000000020"

ISA|00| |00| |ZZ|XXXXXXXXXX |ZZ|XXXXXXXXXXX |160518|0304|U|00401|20|0|T|>~

IEA|1|20~

Regards

Kalyan.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 19, 2016 at 11:19 AM

    Hi Kalyan,

    have you tried to set the "formated value length" to 15 within the NRO configuration?

    Kind regards,

    Konrad


    pastedImage_0.png (13.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2016 at 06:03 AM

    Hi kalyan,

    Good day !! when i have started working with this NRO i have Also faced same issue you need to add format length as "9" that is enough for example if ISA control number 2 than the output in EDI file will be 000000002

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.