Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in Idoc IDOC_ERROR_PARSE_FAILURE

michael_teran
Participant
0 Kudos
398

Hi,

I'm new in IDOCs and I could not find a solution for my problem.

I have added 2 new fields in WPUBON01 segment in the HEAD .  for that reason i should create a new segment ZWPUBON01 ( or sould I say I create an Enhancement)

When I make a test in WE19 everything is ok .... the problem is at the moment when the other system send to SAP the information ( an XML FIle ) ... it show me the following error "IDocParseException: (7) IDOC_ERROR_PARSE_FAILURE: An IDocIllegalTypeException occurred"

Can anybody help me to solve my problem .

Thanks

2 REPLIES 2
Read only

Former Member
0 Kudos
275

Paste the ST22 error if possible..

Hope the incoming XML file have corresponding values for the new segments you have added.

Read only

0 Kudos
275

Yes, XML File it's fine

And also I should say that I'm not using PI/XI , I'm working on Sonic. In R3 (tx We63) everyting it's ok but when I make a complete test, the error is the following

Error

-------

IDOC_ERROR_PARSE_FAILURE: An IDocIllegalTypeException occurred:

state=READING_FIELD_STARTTAG, charPosition=749, lineNumber=25, columnNumber=19, invalidChar=U+0053,

sourceSnippet=...    <KUNDNR/>^         <BELEGWAERS>PEN</BELEGWAERS>^         <Z1WPB01 SEGMENT="1">^    

...

IDOC_ERROR_ILLEGAL_TYPE: Segment type "Z1WPB01" is not a valid child segment type.

DOCUMENT: type=WPUBON01; SEGMENT: type=E1WPB01, definition=E2WPB01001

Sombody could help me for solving my problem ?

Thanks