App Connect

 View Only

 Problem mapping IDOC fields using SAPInput node

Peter Von Hirschfeld's profile image
Peter Von Hirschfeld posted Thu July 24, 2025 08:54 AM

Hi

Environment is ACE 12.0.15

I'm trying to map the IDOC that I get from a SAP system.

My SAPInput node is working - my flow reads the IDOC and I can write the contents to a Trace node and an MQOutput node.

I get an error when I try to map some of the IDOC fields to an output DFDL structure:

My code is

SET OutputLocalEnvironment.Destination.File.Name = InputRoot.XMLNSC.ns1:SapOrders05Zxorders05.SapOrders05Zxorders05IDocBO.SapOrders05Zxorders05DataRecord.SapOrders05Zxorders05E2edp01011.WERKS;

I get:

2025-07-24 14:31:24.265890  2331384  UserTrace   BIP2539I: Node '': Evaluating expression 'InputRoot.XMLNSC.ns1:SapOrders05Zxorders05.SapOrders05Zxorders05IDocBO.SapOrders05Zxorders05DataRecord.SapOrders05Zxorders05E2edp01011.WERKS' at (gen.wmbintapp1_SAP_OperationsSubflow_MAP_IDOC_TO_FILE.Main, 13.101). This resolved to 'InputRoot.XMLNSC.http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/saporders05zxorders05:SapOrders05Zxorders05.SapOrders05Zxorders05IDocBO.SapOrders05Zxorders05DataRecord.SapOrders05Zxorders05E2edp01011.WERKS'. The result was 'NULL'. 

I also tried:

SET OutputLocalEnvironment.Destination.File.Name =  InputRoot.XMLNSC.ns:SapOrders05Zxorders05IDocBO.SapOrders05Zxorders05DataRecord.SapOrders05Zxorders05E2edp01011.WERKS;

And then I get:

2025-07-24 14:31:24.266042  2331384  UserTrace   BIP2539I: Node '': Evaluating expression 'InputRoot.XMLNSC.ns:SapOrders05Zxorders05IDocBO.SapOrders05Zxorders05DataRecord.SapOrders05Zxorders05E2edp01011.WERKS' at (gen.wmbintapp1_SAP_OperationsSubflow_MAP_IDOC_TO_FILE.Main, 14.101). This resolved to 'InputRoot.XMLNSC.http://www.ibm.com/xmlns/prod/websphere/j2ca/sap/saporders05zxorders05:SapOrders05Zxorders05:SapOrders05Zxorders05IDocBO.SapOrders05Zxorders05DataRecord.SapOrders05Zxorders05E2edp01011.WERKS'. The result was 'NULL'. 

For both attempts, I used the autocompletion (Ctrl + spacebar) feature to ensure that I did not misspell a field name.

BUT:

If I feed the msg that was written to the MQOutput node I mentioned above into an MQInput node and then trigger a flow using the same ESQL, it maps successfully.

Am I missing something in the mapping for the SAPInput node?