Skip to Content

Hexadecimal in PI Mapping

How to give Hexadecimal value in PI mapping. I need give "0A" as segment terminator. Please advice.

Thanks,

Nishant

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Mar 26, 2014 at 02:52 PM

    Below function resolved the issue

    try {

    byte[] b = {(byte)10}; // 0x0A = decimal 10

    return new String(b, "US-ASCII");

    } catch(java.lang.Exception e) {

    return "\n";

    }

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 30, 2014 at 10:47 PM

    Hey Nishant,

    This is helpful with other hex values , but for 0A we need not use UDF

    Segment terminator is an optional field with default value 0A

    when not mapped it by default creates an EDI file with Line feed '0A' as the segment terminator.

    Regards,

    Pooja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 14, 2014 at 07:16 PM

    Hi Nishant - You mean in receiver channel content conversion??

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2015 at 04:11 PM

    Hi Nishant,

    Can you advise on the same issue I am having. Instead of the new line I need to create white spaces for ISA segment fields D_I02 and D_I04. In the xml, the white spaces are appearing correctly using your UDF solution. However, after the conversion to EDI flat file, the spaces are still being removed.

    Do you have any other suggestions on how to resolve this issue?

    Any help would be very much appreciated.

    Thanks and Regards,

    Paolo

    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.