cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how can i remove empty nodes from message mapping?

former_member373665
Participant
0 Likes
3,806

i have this result when i execute my messagge mapping, but i don't konw how i can remove the empty nodes (red color). I've been testing with various functions "Node functions" but i don't get solve it.

i have this:

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

<ns1:Z_RFC1 xmlns:ns1="urn:sap-com:document:sap:rfc:functions">

   <TABLE_1>

      <item>

         <FIELD1>value1</FIELD1>

         <FIELD2>value2</FIELD2>

      </item>

      <item>

         <FIELD1>value1</FIELD1>

         <FIELD2>value2</FIELD2>

      </item>

      </item>

      </item>

      </item>

      </item>     

</ns1:Z_RFC1>

i want this:

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

<ns1:Z_RFC1 xmlns:ns1="urn:sap-com:document:sap:rfc:functions">

   <TABLE_1>

      <item>

         <FIELD1>value1</FIELD1>

         <FIELD2>value2</FIELD2>

      </item>

      <item>

         <FIELD1>value1</FIELD1>

         <FIELD2>value2</FIELD2>

      </item>

</ns1:Z_RFC1>

can anyone help me?

thanks

View Entire Topic
gagandeep_batra
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Mariano,

did you try with CreateIf node function as below also,

also change context also.

if not then please that can solve ur problem i think.

Regards

Gagandeep