How to set UNB-04_01 and UNB-04_02 values

Hi experts,

I need to map current date in UNB-04_01 and current time in UNB-04_2 segments.
I am using “addICEnvelopeEDIFACT” service to generate UNB segment but was not able to find where to set these UNB-04 values.

Could you please help me out.

Thanks,
Amit

UNB4.1 is in the format YYMMDD
UNB4.2 is 4 digits in the 24-hour clock format: 4:35 PM is 1635

BTW, the wm.b2b.edi.util:addICEnvelopeEDIFACT service generates both value using the current date of the system. it’s under the /addGroups branch.

Got it now.
Thanks for your reply. :slight_smile: