on 07-23-2009 3:57 AM
Hi,
I would like to send a email using UDF.
Requirement: if xyz == "9" then send a email and also pass the value .......
else directly pass the value
I want to do it without Looksups, exclusively using Java code inside UDF.
has anyone done this earlier? Can someone help me?
thanks,
Venkat.
Edited by: Venkat A on Jul 22, 2009 10:58 PM
>
> Hi,
>
> I would like to send a email using UDF.
>
> Requirement: if xyz == "9" then send a email and also pass the value .......
> else directly pass the value
> I want to do it without Looksups, exclusively using Java code inside UDF.
>
> has anyone done this earlier? Can someone help me?
>
> thanks,
> Venkat.
>
> Edited by: Venkat A on Jul 22, 2009 10:58 PM
2 ways;
1. using alerts - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
2. call a email class from UDF - https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=90570965
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agasthuri Doss,
I cannot go wid your solution as our alerts are in CCMS not through ALRTCATDEF
Shabarish,
Can your solution 2 be implemented without BPM?
I think I have to do lot of coding for this... I am not good at Java any errors in future .. do you think I can be able to handle with these huge UDFs?
How does it effect the performance?
Thanks,
Venkat.
Shabarish,
so far so good.
I am trying to do it in MM because I think that is pretty simple.
1. I have imported MM archieve to IR
2. imported mail.sdn.*; in UDF.
3. Placed the code as mentioned there.
I have following doubts in the actual code.
1. "<mailhost>" - What should I enter the value for this?
2. do I need to provide a sender ID that is existing? I mean if I provide the xi.adm at dev.com... does it really need to exist in real?
3. How do I use imported archieve?i mean I have a normal MM now. how do I link that imported achieve?
Thanks,
Venkat.
Edited by: Venkat A on Jul 23, 2009 12:03 AM
>
> I have following doubts in the actual code.
> 1. "<mailhost>" - What should I enter the value for this?
this is your mail server .. ex. smtp.yahoo.com etc
> 2. do I need to provide a sender ID that is existing? I mean if I provide the xi.adm at dev.com... does it really need to exist in real?
it can be anything that you want to be in the from id of your email
> 3. How do I use imported archieve?i mean I have a normal MM now. how do I link that imported achieve?
>
> Thanks,
> Venkat.
>
> Edited by: Venkat A on Jul 23, 2009 12:03 AM
in the UDF give you package name in the imports section ... the screenshot of the UDF in the link also shows this
Shabarish,
Thanks for your quick response.
One last question....
this is your mail server .. ex. smtp.yahoo.com etc
How do I know what should I enter for this value?
does it need some Basis admin setting on PI?
I tried with smtp.yahoo.com and set target email id as one office ID and one yahoo id. it sent mail to none.
Please suggest.
Thanks again,
Venkat.
Thanks a lot Shabarish
Santhosh that was very useful and will be useful to many in future. Good work..Appreciate your effort.
I have localhost with port 25 in the SCOT.
So I tried with
1. smtp://host.compnay.com
2.imap4://host.compnay.com
3. host.compnay.com 25
4. host.compnay.com:25
5. localhost
6. localhost 25
7. localhost:25
8. host.compnay.com
9. host
10. IP address
11. host.company.com,25
Can you suggest wat should I exactly use? None of the 11 worked for me
Change:
In the newly added commonent. please correct "Use can the same in the UDF" in the last portion of wiki.
Thanks,
Venkat.
Edited by: Venkat A on Jul 23, 2009 10:38 AM
Santhosh/Shabarish,
I made the hostname from localhost to actual host in SCOT.
My admin is able to send a test email from test screen and from telnet.
But I still face the problem.
When I display queue, it executes succesfully. But I do not see email.
how do I see where things going wrong?
Please help.
thanks,
Venkat.
Hi Venkat,
Confirm if you are using the correct email-id and the format..... there is now way to monitor this emails message sucess status.... jst confirm if the mail server configuration is correct in your PI... try sending an email using the mail adapter with the same host name that u r using in the UDF...
~SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.