Skip to Content

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

avoiding a parameter in the mapping if it is empty

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

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question