cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass null value to the fields

Bhargavakrishna
Active Contributor
0 Kudos

Hi Experts,

we are working on IDOC to SOAP scenario.

For the fields, which don't have the values we are populating by assign " / " in the sender side while generating the IDOC.

my requirement is to whenever the field got " / " it should display " Null " value. i mean empty value.

please help me to achieve this.

Regards

Bhargava krishna

Accepted Solutions (1)

Accepted Solutions (1)

Muniyappan
Active Contributor
0 Kudos

Hi,

you can achieve this using text equals funciton.

i am not using exist as it always comes in xml input.

else you can use mapWithDefault node function.

if the tag appears you with values it passes the same.

if there is no tag then it passes the constant value.

for empty tag concept you can follow below link

http://stackoverflow.com/questions/7238254/xml-what-is-this-null-or-empty-element

correct me if i did not get your requirement.

Regards,

Muniyappan.

Answers (3)

Answers (3)

Bhargavakrishna
Active Contributor
0 Kudos

Dear all,

Thanks for your responses.

we delete the code which is used to assign " / " to the fields, if no value is found.

then i used map with default by passing "  ".

It is working fine now..

Regards

Bhargava krishna

naveen_chichili
Active Contributor
0 Kudos

Hi Bhargava,

Replace value should satisfy your condetion.

Thanks,

Naveen

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

replace function "/" and " " doesn't work ?

Regards,

Michal Krawczyk