cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress Target structure based on condition

Former Member
0 Kudos

Hi

How to suppress target structure based on condition

Example:

Source is like:

<Details>

-


<Name>abdc</Name>

-


<ID>234</ID>

-


<Address>US</Address>

</Details>

I have two target structures

1:

<Details>

-


<Name>abdc</Name>

-


<ID>234</ID>

-


<Address>US</Address>

</Details>

2:

<Error>

<ErrorID>

</Error>

if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.

example

abc,123,US

abc

in above case second record has two null values

so my target structure should be

<Details>

-


<Name>abc</Name>

-


<ID>123</ID>

-


<Address>US</Address>

</Details>

<Error>

<ErrorID>2nd record has erro</ErrorID>

</Error>

How to acheive this..

Please help us

Regards

Sowmya

Accepted Solutions (0)

Answers (4)

Answers (4)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Sowmya,

The mapping is too long. I've sent you the details.

Regards,

**********

Please read the Forum's Rules of Engagement,

i.e.,

[/thread/117188 [original link is broken];

and refrain from using email correspondence as the main objective of the Forums is to share knowledge.

SDN PI/XI Forum Moderator

Former Member
0 Kudos

Hi Dspboys

I got your mail but pictures are not clear. I am unable to identify the nodes. Could you please send it again

Regards

Sowmya

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Sowmya,

Email has been resent.

Regards

sunil_singh13
Active Contributor
0 Kudos

Hi Sowmya,

The "exists" function does not check the field values but it checks whether the node is present or not.

even if the value is empty in the field then also it will give true because node still exists.

And you anly want to check if the value is blank.

[Name] error in record (true)

-> equlas -> if ->[Error ID]

[] [] (False)

put the OR and repeat the same for other two

Former Member
0 Kudos

Hi,


Name--->exist--->not---\                    then--------->createif---->Details
                               or--------->if  
ID--------->exist--->not-----\              else<-------createif<----Error
                               or 
Address->exist-->not-----/

Former Member
0 Kudos

hi ,

plz try the following mapping

Name-->exist-->if than else-> tuue----->Name

false---(constant)--


error

ID-->exist-->if than else-> tuue----->ID

false---(constant)--


error

adress-->exist-->if than else-> tuue----->address

false---(constant)--


error

regards,

navneet