Chris,
I am not sure why you are getting a NPE at this first step. You should, at least, have data in the IDOC_CONTROL_REC_40 since it is used to determine routing, specifically, in the IDOC_CONTROL_REC_40 MESTYP,SNDPRN, and RCVPRN. ( At least that has been my assumption all along.) Without data in these fields, I doubt the IDOC will be routed correctly if that was empty. Unless your Adapter has “content based routing” configured which isn’t good when you’re don’t want that. See the Adapter guide for more details on content based routing.
Also, is the the first IDOC type that is flowing from SAP to wm?
Finally, Have you looked at the Transaction Store under the “Routing…”? Take a look at one of the DESADVs in this list by clicking on the TID and view “As Values” You should see what was sent in the IDOC_DATA_REC_40 and IDOC_CONTROL_REC_40, if at all. I am curious to what you see here. If these show as empty, I believe the issue lies with how SAP is configured to send IDOCs to wm.
HTH.
#webMethods#edi#Integration-Server-and-ESB