on 04-23-2012 12:55 PM
Hi All,
i have a scenario SOAP to RFC sync.
PI will receive the request from the third party based on that request ECC will provide the response by execuiting the RFC.
generally RFC provides response with the status for the request like S = success,W= warrning,E= error.
when we got the response message from ECC with status "E" we need raise the alert.
i have gone through the some blogs
alert using UDF :http://scn.sap.com/community/pi-and-soa-middleware/blog/2006/07/25/triggering-xi-alerts-from-a-user-...
in this blog i have not found the java code for the UDF.
include payload in alert message body using BADI with out UDF & BPM:
i need to raise an alert with out affecting mapping...
please let me know suggestions
thanks in advance
Hi Mahesh,
If you dont want to use UDF to create alerts, other option would be to fail the map on receiving response status "F". You can raise an exception in your mapping to fail the message and enable alert on this interface at integration engine to raise the alert.
Regards,
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
In that case, you will have to follow this blog-
If you need java code to perform the RFC Look up. Then there is standard function RFC lookup under conversions(Assuming you are on PI 7.1).
Regards,
Amol
Hi Amol,
thanks for your quick reply.
yes i am using SAP PI 7.11.
here i have few queries.
1. do we need to write the UDF to pass the inpiut value status ( based on this value we need to raise the alert)
sample:
if (status== E)
then raise alert(message )(it may be container variable as per my understanding. correct me if i am wrong)
//message contains the detailed description about the error.
2) we need to call the RFC "SALERT_CREATE" which is in PI box how we need to import it.
3) do we need to use any communication channels here.
Hi Raja sekhar,
thanks for your reply.
can you please provide the sample UDF code to trigger the alert with out stop the mapping.
my requirement is i have two fields from source which are status & Message.
status values will be "S","W" & "E"
if i got the value "E" for the Status field i need raise the alert which will contain the value of message field.
Hi Mahesh,
Yes, That's correct, Using Boolean functions based on status you can call RFC lookup.
for 2) & 3), Check this-
http://scn.sap.com/docs/DOC-3805
Regards,
Amol
Hi Amol,
its nice document.
now i am getting the alert message.
one last question is i have not getting the value which i passed to the value using filed message in alert mail.
do we need create the container element for the prticular filed in alert category?
thanks for your support amol i have given points to you.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
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.