on 07-03-2013 4:17 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhargava,
Replace value should satisfy your condetion.
Thanks,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
replace function "/" and " " doesn't work ?
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.