cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound Idoc xml not matching Idoc in sap (we02)

Former Member
0 Kudos

Hello friends,

I see the Inbound xml IDoc in sxmb_moni in PI and in IDX5 and the header segment has 10 fields.

When I go to sap we02 transaction and see the same IDoc I see that out of the 10 fields only 4 fields are visible in the header segment.

How can this be possible? I checked with ABAP developer and there is no modification done in the user exits in sap to remove any of the idoc fields/segments.

I am really puzzled as to how to the IDoc xml can be different from IDoc in SAP ( we02).

Please advice.

Thanks,

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Teresa,

Is there any changes done for Idoc.  If yes please reimport the idoc metadata into PI.  And check the SM58 tcode also.

Thanks,

Satish.

Answers (2)

Answers (2)

nabendu_sen
Active Contributor
0 Kudos

Hi Teresa,

Check the below steps:

1. In ESR of PI, check whether you can see all the 10 Header segment fields and mapping is done properly. Also check the IDoc structure and ensure everything is good.

2. Go to "IDX2" transaction of SAP PI, delete the existing metadata of that specific IDoc and re upload the IDoc metadata from SAP system. Ensure you can see all the 10 fields after reimport.

Former Member
0 Kudos

Hi All,

From my post I mentioned that I can see all the 10 fields and structure in PI. The XML of the IDoc looks good in IDX5. But when it goes to SAP it is missing a few fields.

I will definitely try to reimport the metadata in IDX2. But is this necessary ?

rajasekhar_reddy14
Active Contributor
0 Kudos

it is not mandatory step, but when u did structure changes in IDoc then you have to import meta data.

This process is very easy so try once.

nabendu_sen
Active Contributor
0 Kudos

Hi Teresa,

The IDOC msg comes as a data stream from ECC to PI or goes out of PI as Data stream to SAP. PI uses the metadata in IDX2 to convert the IDOC msg to IDOC-XML msg or vice versa...

http://help.sap.com/saphelp_nw04/helpdata/EN/ab/bdb13b00ae793be10000000a11402f/content.htm

If you don't load IDX2, When the 1st IDOC is received, the metadata is automatically loaded.

For subsequent changes in ECC, (If new Z-fields are added in ECC), they are not reflected in PI, if you don't perform IDX2. Hence, IDOC msg to IDOC-XML convertion will have some problems.. Data will get into wrong fields... It is recommended to Perform IDX2 to aviod such issues..

rajasekhar_reddy14
Active Contributor
0 Kudos

may be you are checking wrong IDoc or updated meta data of IDoc not imported in PI system.

Use IDX2 to import meta data and try.