cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid data in IDoc received from SAP system

Former Member
0 Kudos

Hi,

I have an IDoc to File scenario.

I have imported the IDoc object from a SAP system.

When I logon to this SAP system for testing (transaction WE19), I see that the field "Produit" have the value "PALPL" and the field "EXTI1" (which is just after the field "Produit") is empty.

I send the IDoc to XI (in menu: Test outbound IDoc).

And I look in XI system (SXI_MONITOR) : I can see the received IDoc in Inbound Message -> Payloads -> MainDocument.

The problem is that the IDoc contains the following tags :


<PRODUIT>PALP</PRODUIT>
<EXTI1>L</EXTI1>

instead of

<PRODUIT>PALPL</PRODUIT>

Can anyone help me?

Thanks in advance,

Laurence

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Check the Idoc in we02. What do you see?

I think the problem is because the PRODUIT has a field lenght of 4 charcters and as your element has 5 charcters , the next charcter is going to the next field.

Check in We02 in your SAP system and see the outbound idoc. if the field is got the value as you have shown,

<PRODUIT>PALP</PRODUIT>
<EXTI1>L</EXTI1>

The problem then is in the Report populating / creating the idoc.

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Thanks for your response,

In we02, the value of PRODUIT is PALPL.

When I check the structure of the IDoc in we60, the field PRODUIT has an internal length of 5 characters and an external length of 5 characters.

When I look the IDoc imported object in the Integration Repository (in format of XSD), I find the following for the element PRODUIT :


<xsd:element name="PRODUIT" minOccurs="0">
     <xsd:annotation>
          <xsd:documentation>
               R/2 table
          </xsd:documentation>
     </xsd:annotation>
     <xsd:simpleType>
          <xsd:restriction base="xsd:string">
               <xsd:maxLength value="5" />
          </xsd:restriction>
     </xsd:simpleType>
</xsd:element>

So in both systems the length is of 5 characters...

Kind regards,

Laurence

Former Member
0 Kudos

Hi Laurence,

Is the wrong value you are getting before or after your mapping ?

Best regards,

Guislain

Former Member
0 Kudos

Hi Guislain ,

It is before mapping.

It is in the IDoc structre that I received from the SAP system.

(in SXI_MONITOR : Inbound Message -> Payloads -> MainDocument)

Regards,

Laurence

prabhu_s2
Active Contributor
0 Kudos

may be u need to check in the code when the data is populated. have a brekapoint in the f/n mod and test it by debugging. there u can trace why the data is split

prabhu_s2
Active Contributor
0 Kudos

also let us know the idoc u r using

bhavesh_kantilal
Active Contributor
0 Kudos

Laurence,

This is rather strange. Have never encounetred such an error.

One option, delete the Idoc metadata in IDX2 and then retrigger the interface. The idoc metedata is not automatically changed if the idoc strucutrue is changed and in case you have made some changes to the Idoc strcuture then it is important to manually delete the Idoc metadata in IDx2.

If after deleting the Idoc metadata in IDx2 you still face the issue and if you can confirm that the data is perfect in We02 in the SAP system and you are not getting corresponding data in XI, then it is I guess time to raise an OSS with SAP . Might be a bug.

Which SP are you on?

Regards

Bhavesh

Former Member
0 Kudos

I'm using a non standard IDoc

Former Member
0 Kudos

Hello,

If the structure of your Idoc in we02 on R/3 is ok but is wrong in the sxi_monitor in XI, I would also have a look in IDX2 as suggested by Bhavesh.

Best regards,

Guislain

Former Member
0 Kudos

Even if the Idoc is not standard I think you have to register its structure in IDX2 transaction.

Best regars,

Guislain

Former Member
0 Kudos

non standard IDoc ? wht is this

Former Member
0 Kudos

IDoc created by our society.

Former Member
0 Kudos

can you give 4 char length as input to the frist field and test it should work for this.

Message was edited by:

Sreeram Reddy

Former Member
0 Kudos

Hi Bhavesh,

In transaction IDX2, the field PRODUIT was well on 5 characters. I have still deleted the IDoc metadata and restarted XI, and you were right : now it works!

Thank you very much,

Laurence

PS: I'm on SP11

Answers (0)