on 10-03-2013 9:40 AM
Hi Experts,
We are using IDOCFlatToXmlConvertor module to convert the client IDoc flat file to IDoc xml in PI 7.3 java only server.
Issue :
Flat file sent by client system have blank/null value for PSGNUM (No. of parent segment ) field. Due to which the conversion is failing with error - “Error: java.lang.NumberFormatException: For input string: ""
We tried inserting zeros at this place, but still conversion failed with error - “Error: com.sap.conn.idoc.IDocIllegalTypeException: (4) IDOC_ERROR_ILLEGAL_TYPE: Segment type "E1EDKT2" is not a valid child segment type.
DOCUMENT: type=ORDERS05; SEGMENT: type=ROOT, definition=ROOT”
Which means the module is expecting some valid values for PSGNUM.
We are mainly interested in using this module for conversion.
Is there any way we can bypass this validation.Please guide us to the solution.
Thanks in advance
Jyothsna
Hi Jyothsna,
Did you try inserting values other than zero?? Please check if the error continues.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jyothsna,
What makes you think that it is due to PSGNUM?
From the error above, seems like it is complaining about E1EDKT2.Can you give a snapshot of your data.
Thanks
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ambrish,
When we inserted valid values for PSGNUM field ,it worked.IDoc xml is generated out the same file which didnt work earlier.
We could get these valid values from a similar IDoc flat file.
Also I believe E1EDKT2 segment is the first segment in IDoc structure which is occuring at second level hierarchy ,where module is expecting a 000001 for PSGNUM
Below is the snapshot of working file : values highlighted in Red is PSGNUM.
Original file has blank values at this position.
Thanks,
Jyothsna
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.