cancel
Showing results for 
Search instead for 
Did you mean: 

avoiding a parameter in the mapping if it is empty

Former Member
0 Kudos

hello experts

what is the name of the function in the mapping of RFC to WS, that if the RFC return in the attribute an empty string, I will not pass to the WS anything (the attribute will not pass to the WS), and if the RFC deliever something, it will pass the attribute.

for example - 2 scenarios:

RFC sends

<a>

<last name>gold</last name>

<name>kfir</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

<name>

<part>bcd</part>

</name>

</a>

WS recieve

<a>

<last name>gold</last name>

<name>kfir</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

<name>

<part>bcd</part>

</name>

</a>

scenario 2:

RFC sends

<a>

<last name>gold</last name>

<name>kfir</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

<name>

<part>bcd</part>

</name>

</a>

WS will recieve

<a>

<last name>gold</last name>

</a>

Thanks for the help

Kfir

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use the condtitional mapping.

If you get the attributes then you can pass it to Web Service else pass null value..ie.e nothing will get passed. Make the occurance of those fields as optional.

Thanks

swarup

Answers (0)