cancel
Showing results for 
Search instead for 
Did you mean: 

PI7.31: Java Idoc receiver error

Former Member
0 Kudos

Hello,

I have configured java idoc reciever channel but while testing it i am getting below error in message monitor:

MP: exception caught with cause com.sap.aii.af.idoc.exception.IDOCAdapterException: IDoc structure of incoming message is not correct

I have done below configs and tested also:

1) Created destination of type RFC (UNDER nwa -> configuration -> Infrastructure -> Destination -> DECCLNT100) and tested also.

2) In Idoc receiver channel: i have given the destination name + Interface Version + sap release + under Advanced tab -> control record in Idoc XML is " Not Mnadatory"

3) In the message monitor logs i can see the output idoc structure (for testing purpose i am not passing anything in the idoc)

<?xml version="1.0" encoding="UTF-8"?>

<INVOIC02>

<IDOC BEGIN="Constant">

</IDOC>

</INVOIC02>

4) I am using header mapping and define the partner profile in SAP ECC system.

I am not sure why this error is occuring?

Thanks

Amit Srivastava

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello All,

I have got the reason for the previous error, actually i was not sending any data in the idoc, but now i am getting below error:

Exception caught by adapter framework: The Configuration for Sender/Receiver Partner Number/Port is incorrect. Enter proper values in Sender/Receiver Component

So i am wondering if i can use header mapping or not?? becuase in the mapping i have disabled the EDI_DC40 segment and giving the name of sender communication component under header mapping?

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi,

If you disable the EDIDC node in mapping, and don't tick the header mapping check box in receiver CC, header mapping will be automatic. It will use values from the Business System receiver.

Otherwise, selecting "apply ..." or using the Idoc Control Headers will overwrite the automatic generated informations.

If you want to enter particular values, using message mapping to map the header fields ill be the easiest way (graphical tool is easier to understand).

Regards,

Guislain.