Hi All,
We are on SAP PI 7.4 and have a requirement where in we have to map an incoming file to Idocs.Each file will have to generate multiple Idocs based on few conditions which we handle in mapping.
In order to create multiple idocs,I have changed the occurance and I have imported the same into an external definition.I have created a Service Interface for this.
However,on running the scenario,I am getting errors when PI is trying to post the Idocs.It says that the port and partner settings are incorrect.
I have done the following steps:
1.Disabled the EDIDC40 field and in the Idoc AAE Receiver Advanced properties,I selected Not mandatory for the Control Record in Idoc xml.For this,I am getting the error :"The Configuration for Sender/Receiver Partner Number/Port is incorrect. Enter proper values in Sender/Receiver Component".I tried with and without header mappings as well.
2.I enabled the EDIDC40 segment,maintained the SNDPRT and SNDPRN values as per this discussion http://scn.sap.com/thread/3439059.
Maintained my ECC system details in the SNDPRT and SNDPRN values and maintained the name of the ECC system in the Sender in Header Mapping.I have checked Manatory in the Receiver Idoc channel for Control Record in Idoc xml and also the option "Apply sender from payload".
However,for this I get the following error : "java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of a null object loaded from local variable 'chars'".
For this error,there is a note which is given for the resolution : SAP Note 1862655.
However,in this note it is mentioned that the interface name and namespace naming convention should be <MSGTYP>.<IDOCTYP>.<CIMTYP>
and urn:sap-com:document:sap:idoc:messages.Mine is an external definition as I have changed the occurance and hence there is a Service interface and the namespace is also different.Is there any way to handle this in SAP PO?
Request you to share your thoughts on this as I have been stuck in this issue since quite long.
Thanks and Regards,
Induja