Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help with Message Mapping - Context Change

I need help with the following message mapping. I am filtering by EMP_STAT in the Message Mapping. I have this working for the ROW structures, but I can get the HEADER/REC_COUNT field to calculate. I can do just a record count of ROW and get it to work, but I can't get it to work with the filter EMP_STAT = 'REG' added. I get a context error. Could someone send me the mapping code.

Sender XML----


<RECORD>

<ROW>

<EMPLOYEE>111</EMPLOYEE>

<EMP_STAT>REG</EMP_STAT>

</ROW>

<ROW>

<EMPLOYEE>222</EMPLOYEE>

<EMP_STAT>PT</EMP_STAT>

</ROW>

<ROW>

<EMPLOYEE>333</EMPLOYEE>

<EMP_STAT>REG</EMP_STAT>

</ROW>

</RECORD>

Receiver XML----


<RECORD>

<HEADER>

<REC_COUNT>2</REC_COUNT>

</HEADER>

<ROW>

<EMPLOYEE>111</EMPLOYEE>

<EMP_STAT>REG</EMP_STAT>

</ROW>

<ROW>

<EMPLOYEE>333</EMPLOYEE>

<EMP_STAT>REG</EMP_STAT>

</ROW>

</RECORD>

Former Member
Not what you were looking for? View more on this topic or Ask a question