cancel
Showing results for 
Search instead for 
Did you mean: 

Wants to eliminate null values from mapping queue

Former Member
0 Kudos

Hi All,

How can I eliminate null values from 'display queue' of a target mapping.

Can it be done through a UDF? Kindly help.

Because of null value, it is creating issue in the mapping logic.

Thanks,

John

Accepted Solutions (1)

Accepted Solutions (1)

former_member207622
Contributor
0 Kudos

Null value means sender and receiver queues have a mismatch in data values

Please check the context of the sender first

Null values can be avoided by context handling

http://www.erpgenie.com/sap-technical/xi/xipi-introduction-to-context-handling-in-message-mapping

regards

Ninad

Answers (4)

Answers (4)

stefan_grube
Active Contributor
0 Kudos

> How can I eliminate null values from 'display queue' of a target mapping.

What you see as <null> in a queue is not a value, it is a border.

So you cannot eliminate it, but it does not create issues.

When you have issues in the mapping, be asured that this <null> in not the reason.

Former Member
0 Kudos

If you want to remove "null", use RemoveContext just after the node in which it comes and then if required use SplitByValue to set context again.

Former Member
0 Kudos

We can remove null values using node functions.

Check the below thread:

Or

Try with the below UDF:


for (int i=0; i<a.length;i++)
{
 if (! a<i>.equals(ResultList.SUPPRESS) || ! a<i>.equals(""))
{
 result.addValue(a<i>);
 }
 }

Thanks,

prasad_ulagappan2
Contributor
0 Kudos

Yes, it can be eliminated through a UDF. In UDF declare the string value as blank string and assign it to output values which will create a blank value for the target fields.