cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling the Node based on field value in Idoc Mapping

Former Member
0 Kudos

Hi Gurus,

I have the requirement like when the field PARVW(Segment = E1EDKA1)=ZM target should not create target Node(E1EDKA1)

Source is getting multiple value like PARVW = ZM, AU, EM etc.

Result should be like below.

Source                         Target

E1EDKA1                    E1EDKA1

      ---                                   ----

     ----                                   ---

    PARVW = ZM                   PARVW = AU

E1EDKA1

      ---

     ----

     PARVW = AU

Please suggest how to do the mapping.

Thanks,

Satish.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Can any one suggest to achieve my requirement with out UDF.

Thanks,

Satish.

Former Member
0 Kudos

Hi Sathish,

you haven't followed me as above mentioned .

Keep not before ifwithout else .But you kept after it so it is failing.

Regards

Venkat

Former Member
0 Kudos

Hi,

After changing the Context of PARVW field to Root Node It is working.  Thanks for suggestions.

Thanks,

Satish.

Former Member
0 Kudos

Hi,

Below are the options .

1)Using UDF:

pass two input values E1EDKA1,PARVW(keep the context of both at same level )(use map with default to PARVW if it is optional )

for (int i =0;i < E1EDKA1.length;i++)

{

if(!PARVW[i].equals("ZM"))

E1EDKA1_Out.addValue("");//opening the target node

PARVW_Out.addValue(PARVW[i]);

}

Option2:

PARVW(map with default)(keep the context same as E1EDKA1)--> equals(text fn)-->not

                                                                          constant(ZM)  /

-->createif-->E1EDKA1

PARVW(map with default)(keep the context same as E1EDKA1)--> equals(text fn)

                                                                          constant(ZM)  /

                 -->not-->        -->if without else-->PARVW

PARVW(map with default)

Regards

Venkat

Former Member
0 Kudos

Hi Venkat,

As suggested I have created the mapping like below.

Parvw

                   Equals---------->Not---->E1EDKA1

Constan(ZM)

PARVW

                    Equals---->ifwithoutelse--->Not-->PARVW

Constant(ZM)  PARVW

Mapping is failing at Not condition because unable to convert String to boolean.

Please suggest.

Thanks,

Satish.

Former Member
0 Kudos

Hi

Please try node function createif.

Regards

Beena