Skip to Content

Alert category always "XI_ALERT"

Hi, i was just trying to raise Alerts from a user defined function:

-


import com.sap.aii.af.service.alerting.*; (from aii_af_svc.jar)

String errText = "AdapterFramework on " + System.getProperty("SAPMYNAME", "");

String adapterType = "adapterType";

String fromParty = "fromParty";

String fromService = "fromService";

String toParty = "toParty";

String toService = "toService";

String msgInterface = "msgInterface";

String namespace = "namespace";

String errorCategory = "XI_UDF_ALERT";

String errorCode = "myError";

String errParams[] = {

"!XI Alert TestParam1", "!XI Alert TestParam2", "!XI Alert TestParam3", "!XI Alert TestParam4", "!XI Alert TestParam5"

};

String errValues[] = {

"!XI Alert TestValue1", "!XI Alert TestValue2", "!XI Alert TestValue3", "!XI Alert TestValue4", "!XI Alert TestValue5"

};

ErrorInfo errorInfo = ErrorInfo.newAFErrorInfo("msgId", errorCode, errorCategory, errText, adapterType, fromParty, toParty, fromService, toService, msgInterface, namespace, errParams, errValues);

try

{

Alert.newAlert(errorInfo).send();

}

catch(AlertingException e)

{

System.out.println(e.toString());

}

return input;

-


although i am using errorCategory = "XI_UDF_ALERT" it always ignores this and shows up Cat: XI_ALERTS

how can i change this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 01:13 AM

    Hi,

    Your method is getting overriden somewhere..internally..see if you can find that class and override that class.

    Regards

    Ravi Raman

    While(pointsAreAssigned ==true){

    boolean getAReply = true;

    }

    else{

    System.exit(0);

    }

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 11:51 AM

    Hi !

    There is another approach:

    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

    Regards,

    Matias

    ps: please award points if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.