I am trying to get number of total lines from an EDI 863 document, which is to be assigned to SE01. convertToString sets a value to SE01 but number of total lines from the flat file does not match with the record count. I am wondering if I am missing anything.
Ex.
ST~863~000000075
BTR~00~20040401~0000~13~GR-0631096
NTEI HEREBY CERTIFY THAT THE MATERIAL HAS BEEN MANUFACTURED,
NTESAMPLED, TESTED, AND INSPECTED IN ACCORDANCE
NTEWITH THIS SPECIFICATION AND HAS BEEN FOUND TO MEET
NTETHE REQUIREMENTS CALLED FOR BY THE ABOVE ORDER.
REF~PO~GR-0631096
REF~VN~156477
DTM~011~20031006
N1~PV~abc co.~9~012345678
N3~abc co. - usa
N4~xyz~TN~12345
PER~CE~Mr. abc ~TE~123-456-7890
LIN~1~BP~BEPE6~HN~S31931~PO~GR-0631096
PID~F~11~ST6" NOM STD A53-B PEB BLK 21’ U/L
PID~F~11~STPipe Type
REF~S3~ASTM A53-01 Gr. B
CID68
TMD~32~ST~015~HEAT ANALYSIS
MEA~TR~ZC~.18~P1
MEA~TR~ZMN~.345~P1
MEA~TR~ZP~.009~P1
MEA~TR~ZS~.004~P1
CID69
TMD~32~ST~094~ELONGATION PERCENT
MEA~TR~EA~35~P1
TMD~32~ST~090~~~TENSILE STRENGTH
MEA~TR~TF~69200~PS
SE~24~000000075
GE~1~000000075
IEA~1~000000075
I pasted here a part of the whole document.
Here SE01=24 (Wrong). But I would like to print SE01 is 28 (Total number of lines)
Thanks
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services