Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 11577

Re: Mapping Issue in SAP PI

$
0
0

You can use Email validation UDF for the same...try with below code..

 

public void validate(String emailid[],ResultList result,Container container)throws StreamTransformationException{

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

        { if(emailid[i].matches("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"))

            { return emailid;

            }

            else

            { return (Set condition as per your requirement);

            }

        }

    }

 

In mapping set a Condition..

 

Source Email Field > UDF Validation > Target Email Field

 

Hope it  helps.!

 

Regards,

Sunil


Viewing all articles
Browse latest Browse all 11577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>