cancel
Showing results for 
Search instead for 
Did you mean: 

How to get business content in alert message

Former Member
0 Kudos

Hi,

We have a requirement to get business data in the email that we need to trigger when there is an error in the mapping.

It is XML file to IDOC scenario and we need to trigger alert to the operations team when there is an error in the mapping with few field values that are coming in the source XML data files.

How can we achieve this?I have seen few blogs that explain triggering alerts from UDF from the mapping and some more.

But coludn't get any idea.please suggest the best solution.

Thank you,

Sri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sri,

To get custom alerts mainly you have to do 3 things:

1.writting an UDF to perform an RFC Look Up using the Lookup API and call the RFC module SALERT_CREATE .

UDF to trogger the laert and send the bussiness data:

java.util.Map map;

// get runtime constant map

map = container.getTransformationParameters();

// get value of header field by using variable key

String msgid = (String) map.get(StreamTransformationConstants.MESSAGE_ID);

String content = "";

MappingTrace importanttrace;

importanttrace = container.getTrace();

// filling the string with our RFC-XML

String m = "AlertConfiguration

3.Define a Receiver RFC communication channel in Integration Directory with application server as XI system.

Please reply back if you have any issues/queries

With Regards

Sudha.

former_member206760
Active Contributor
0 Kudos

pls chk this..

/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

Former Member
0 Kudos

Hi Tarag,

Thank you for the link.Infact I have gone through that link.Is there a way that I can trigger alerts WITHOUT using BPM in my scenario?

The reason I am trying to avoid BPM is that we get a single file but we have to create multiple IDOCs based on number of detail records in it.

If BPM is un avoidable then you think ,if I use Recieve,Contrainer operation,Control and Send steps would be enough?

thank you,

Sri

former_member206760
Active Contributor
0 Kudos

u can map your requirement like this..

1. export your IDOC as XSD and change its occurence to 0...unbounded

2. reimport the changed XSD and have a graphical mapping such that as many number of idocs are created as per the detail node in source..

3. you can start BPM wih the receive step

4. then use transformation step where u can specify the mapping created in step 2

5. then the container step which will be like a variable and assign a value say docnum from the source message

6. throw alert in the container step.

done...

always give points to useful answers

Former Member
0 Kudos

any thoughts withought using BPM in this case?

Former Member
0 Kudos

Hi Sri,

You can also see a use case in this blog:

/people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi

Regards,

---Satish

Former Member
0 Kudos

Hi Sri,

You can also check abhishek reply in this thread:

Regards,

---Satish