Hi All,
We tried converting an Idoc Flat file to Idoc XML in PI 7.11. We referred the below mentioned blog for it
We were able to convert the standard orders Idoc flat file to Idoc XML. In our requirement the Idoc flat file contained comments in the first line. I'm pasting the first two line of my file below
first line in Idoc flat file
ndeh1 FTP.GODBAC20100517172033.TGOODFELLAS FTP 2010051800001720100518000018 #UNKNOWN godbac20100517172033.txt *
second line of Idoc flat file
EDI_DC40 1100000000000000695620 3012 MBGMCR02 MBGMCR MBGMCRWINELKE LS GOODFELLAS SAPQ10 LS XXXXXXX 20100517172033
1. With the comment line(first line) we are facing the below error in the channel
MP: exception caught with message Invalid length of control segment: 1001
Is there any to make the module to understand that the line is a comments and ignore it?
2. On removing the first line we are facing the below error in the channel
MP: exception caught with message Invalid DOCNUM detected. SEGDOCNUM = 0000000000000000 DOCNUM = 0000000000000695
How to rectify the above error?
Please advice