Variable values in Alert Category
Hi Experts ,
I have all the Alert Category and the respective configuration set.
I am also getting email for the error.
But the standard variables like
SXMS_FROM_SERVICE
SMXS_TO_SERVICE
SMXS_FROM_INTERFACE
SXMS_FROM_NAMESPACE are not gettng populated.
Please suggest what could be the error or anythng tht could be the reason for this.
Thanks in advance.
Hi thomas,
Did you are using a BPM design to trigger the alert,
if yes ..
You cannot use these container variables for alerts of the Business Process Engine (BPE).
Please refer the link..
http://help.sap.com/saphelp_nw70/helpdata/EN/d0/d4b54020c6792ae10000000a155106/frameset.htm
Hope this helps you
Sunil.
Similar Messages
-
Intenal table as container variable in the alert category
Hi
Is it possible to create internal table as Container Variable in the alert category. If it is possible how can we pass the data to this internal table in the Run time to the funtion module SALRT_CREATE_API.I have tried this to pass the data to the container parameter
it_container ,but i was unable to achive it .If anyone has come across this please guide me .
Thanks and Regards,
VenkatYou can use the Forms "From Clause Query" as the datasource for the data block. Then you can change the QUERY_DATA_SOURCE_NAME using set_block_property, so you can use any SQL statement you like. Of course you must name/alias the columns in a consistent manner so that the number of database items on the block matches those being queried.
-
How to put variable value in Alert window?
Hi, everytime I use:
Alert.show("this is the value of the variable: " +
theVariableName);
the alert stops working and no error message was given.
Does anyone know how to put the variable inside the Alert
window?Is theVariableName defined in the object that is opening the
Alert window?
If you can post your code it will help. -
How to pass variables into an alert
Hi,
I have set up an alert control step in my BPM, and completed all the required config to see the alert is created in my alert inbox. However, I want to pass some parameters into the alert message, such as po number. Does anyone know how to do it? I already defined the variables in the alert category container.
Your help is appreciated!
HartHi Hart
I don't know if my way is "recommended" but...:)
1. don't define container variable in alert def
2. select "dynamic text" in your alert category
(if you select this you'll be able to pass text from "alert message" to the alert)
now it should work
passing variables into the long text
of the alert message works for me just great
Hope it will for you to:)
Kind Regards,
Michal Krawczyk
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/u/34500 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] -
Container Variable value not reflected in Alert message
Hi All,
In BPM, i am trying to set an Alert message which will send the message in alert Inbox. Here i have stored a value from the message in a container variable. This Container variable value is used in the Alert message in the form of &variable&. But whenever i specify container variable value, it is not reflected in the Long text of Alert Inbox. In Alert category i have also checked the Dynamic text. Still it is not coming.
Can u suggest what is the possible solution for this.
Thanks in advance
AshishI was able to get the Alert Message by changing container variable from "Block " to "Process". But It was containing the value of the first message.
Actually i am having a scenario in which i am transforming a File message input into multiple messages based on its PO number using multi mapping. These messages are send as IDOCs using Parrallel for Each block, where i store the PO number in the container variable and use it in alert message. So for that i have to use this block name as container and not as a Process.
Can anybody tell me why this Container Variable value is not reflected in the alert message.
Thanks in advance
Ashish -
Can we use the value of a variable in an alert message
I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?
Gul wrote:
I have a variable in forms6i. I want to use the value of this variable in an alert message. How is this possible?Try
DECLARE err_txt VARCHAR2(200) t;
al_id ALERT;
al_button Number;
BEGIN
al_id := FIND_ALERT('My_Error_Alert');
SET_ALERT_PROPERTY(al_id, alert_message_text, 'Hello how are you mr. variable '||:variable_name );
al_button := SHOW_ALERT( al_id );
END; Hope it works..
Hamid -
How to put the column name and variable value in the alert message.
Dear,
how can i put the column name and variable value in the alert message text. i want to display an alert which tell the user about the empty textboxes. that these textboxes must be filled.
Regards:
Muhammad Nadeem
CHIMERA PVT. LTD.
LAHORE
[email protected]Hello,
The name of the item that fires the current trigger is stored in the :SYSTEM.TRIGGER_ITEM system variable.
The value contained in this item can be retrived with the Name_In() built-in
value := Name_In( 'SYSTEM.TRIGGER_ITEM') ;
LC$Msg := 'The item ' || :SYSTEM.TRIGGER_ITEM || ' must be entered' ;
Set_Alert_Property('my_alert_box', ALERT_MESSAGE_TEXT, LC$Msg ) ;
Ok := Show_Alert( 'my_alert_box' ) ;
...Francois -
Container Variable for Alert Category
Hello,experts!
Is there standard container variable to add a name of Alert Category to the text of alert?
BR,
VikaHi,
You can try with SXMS_RULE_NAME-Description of the alert rule with which you can get the alert rule but not category I think....
Please refer this http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00e97ba2-85ce-2b10-20bc-bc05cd172154
Regards,
Priyanka -
Container Element in Alert Category
Hi,
Any one can tell me what is the use of container element in Alert Category.
While creating a container variable there is an drop down for Object type.When we go for each of these object type.
When i selected the object type as 'XML object type ' i could be able to see all the abstract interfaces and the fields that are created in the IR.I am able to select that field in the long text tab also.
But the value of the field is not getting reflected when an alert message is triggered.
Am I in a right track or doing anything wrong?Can i directly access this field in the long text?
Regards
DiviaHi Sreedivia Narath,
Go through this blog for alert configuration by Michal. Its a beautiful blog and explains about the container variables:
The specified item was not found.
Thanks and Regards,
Sanjeev. -
Using Standard Container Variables in Email Alerts from BPM
Dear All
While creating alert categories from ALRTCATDEF we have a Long Text Tab where we can use Container Variables like SXMS_MSG_GUID ,SXMS_RULE_NAME, SXMS_ERROR_CAT , SXMS_ERROR_CODE etc create the mail contents. We can also display the message passed by the BPM by using the variable
ALERTDYNAMIC_SHORTTEXT , ALERTDYNAMIC_LONGTEXT .
In my case when I call the alert category from the BPM , the message passed by the BPM is displayed through the ALERTDYNAMIC_LONGTEXT in the alert inbox , but I am not able to utilize the other container variables (like SXMS_MSG_GUID ,SXMS_RULE_NAME, SXMS_ERROR_CAT ) for displaying the messageid ,error category etc. Using these variables for alerts invoked from BPM results in Blank Values for all the container variables.
If the alert is not invoked from BPM these variables are getting populated.
My question is is there a way by which we can utilize these variables for Alerts thrown from BPM.
regards
Nilesh .hi check the below links for reference:
http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
http://rant03.ranffm.de:50000/rwb_mdt/detailsservlet?objectName=name=is.00.rant03,type=XIIntegrationServer&rwb=true&XIDomain=domain.00.rant03&archive=false&selectMessage=%SXMS_MSG_GUID%
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
Problem using multiline container in Alert Category
Hello, experts!
Could you please suggest me how to solve the following issue.
I have userdefined multiline container MY_CONTAINER with two elements FIELD (stores name of field) and VALUE (stores value of field). This container is filled in runtime by means of BADI extension. So in transaction ALRTDISP filled container looks like:
MY_CONTAINER
MY_CONTAINER[1]
FIELD SystemCode
VALUE 42
MY_CONTAINER[2]
FIELD Key
VALUE 0292383728232
MY_CONTAINER[3]
FIELD State
VALUE 1
...and so on. Number of filled elements of container is unknown.
I need to add the contents of this container to Long text of Alert Category in form of:
SystemCode: 42
Key: 0292383728232
State: 1
...and so on.
I added MY_CONTAINER on the Containers tab of my alert category. And in Long text included the following expression:
&MY_CONTAINER[].FIELD[]&: &MY_CONTAINER[].VALUE[]&.
But in long text it looks like:
SystemCode Key State ...: 42 0292383728232 1 ...
If the expression is like
&MY_CONTAINER[].FIELD& - &MY_CONTAINER[].VALUE&
then long text contains only the first element:
SystemCode: 42.
Does anybody know how to solve this problem?
I think I need to use expressions (something like FOR-loop) for filling Long Text in Alert Categories. Is it possible?
BR,
VikaHi Experts,
still trying to work out but couldn't understand the behaviour.
<b>If the Long text :</b>
Error: &SXMS_ERROR_CODE& <b>of category &SXMS_ERROR_CAT&</b> was found in a message &SXMS_MSG_GUID& from the service &SXMS_FROM_SERVICE& <b>and Interface &SXMS_FROM_INTERFACE&</b>
to test I am running the program <b>RSALERTTEST</b>
<b>Msg got thru E-mail is </b>
Error: and category:<b> &SXMS_ERROR_CAT&</b> was found in a message from the service and Interface
<b>
And when I change the Long text</b>
Error: &SXMS_ERROR_CODE& <b>and &SXMS_ERROR_CAT&</b> was found in a message &SXMS_MSG_GUID& from the service &SXMS_FROM_SERVICE& and Interface &SXMS_FROM_INTERFACE&
After running the program <b>RSALERTTEST</b>
<b>
E-mail msg</b>
Error: and was found in a message from the service and Interface <b>&SXMS_FROM_INTERFACE&</b>
coudn't able to understand why it is displaying the container variable as is in the mail.
checked all the Alert Framework configuration, Everything looks good.
Thank you,
<b>MK</b> -
Multiple alert rules for alert category?
Hi,
I have created Alert Categories and assigned Alert Rules for them. <b>Can I assign multiple Alert rules for the same alert category?</b> I mean RTW--> Alert Configuration lets me do it. But when I test it by running report RSALERTTEST, I could get only error for one alert rule, even though I defined multiple alert rules. I haven't tested with real error out scenarios. Any update on this would be helpful.
Thanx&Regards
NavinHi Navin,
1) the report requires authorization object S_XMB_AUTH with area MONCONFIG and activity 02. It's actually part of the standard role SAP_XI_ADMINISTRATOR_ABAP.
2) sorry, don't know that, but you might want to check SAP Note 913858 for troubleshooting the alerting. it contains the following statement:
<i>Q10: Why are sometimes certain error categories (e.g. SXMS_TO_ADAPTER_ERRTXT) not filled?
A10: This is due to an error in the Business Object Repository when the value of a container variable exceeds 255 characters. Please implement the correction described in note #947738.</i>
3) You can configure alert rules for the way from the sender to the BPM and from the BPM to the sender. If anything happens in that communication you will get an alert. However as far as i know, the only way to trigger an alert for something that happens within the BPM is by using an according control step.
Regards
Christine -
How to clear variable value in BPS WIB?
Hi Experts:
I want to clear variable value in BPS,and I use this function 'API_SEMBPS_VARIABLE_SET' to set its value to '#'. I got 1 question:
After I changed this variable manually in IE, the system 'remember' this variable in this program, so the function 'API_SEMBPS_VARIABLE_SET' didn't work. I checked the table 'UPC_VAR_CHA_ACT' and found there is not any corresponding item for the current user and value.
AllenHi Bauke,
Actually I want to do Password Encryption functionality.
For that I have 1 Java script file.On Java script validation I want to pass password value from client side to server side as,
<head>
<script type="text/javascript" language="JavaScript" src="MyJSFile.js">
function submitForm(element)
var me = document.getElementById(passwd);
If(!me)
alert('Please enter Password);
else
Some password logic I will do here.
</head>
<f:view>
<BODY......
<h:form id="createUserForm">
<h:commandButton id="save" value="Save" action="saveactionMethod " onclick="submitForm(this)" />
<h:inputSecrete id="passwd"
value="#{createUsrFormBean.password}"/>
</h:form>
</body>
</f:view>
But the Java script code is not working.I mean If I put nothing in password textbox the alert is not firing.
My code is wrong ?
Thanks
Sandip -
Dynamic alert configuration to include filename in alert category
Hi Experts,
We have a requirement in one of our scenarios (File to Idoc) to generate Alerts for errors in IE and send mail to excepted recipient with the error description. The mail body in this case should contain the sender filename for which the error occurred.
We are able to trigger mail with in case of error, but not able to include the sender filename or anysuch dynamic value in the mail body other than the standard alert variables provided by XI.
Can we define our own container variables that can be populated at runtime (eg. message mapping) with the required information and then use this variable in the alert rule and if so how.
Any help on this would be much appreciated.
Regards,
Shiladityahttp://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1654537350DB01108978670417223937End?blog=/pub/wlg/1382
refer that
you can use the dynamic configuration to get the file name, populate it as part of the payload and then use the above blog to help u further -
MessageID not getting generated using Alert category created in ESR & BPM
hi All,
We are trying to use Creating Alert Categories in ESR and using them in Integration Processes by refering to the blog below:
/people/gautam.purohit2/blog/2010/04/04/creating-alert-categories-in-esr-and-using-them-in-integration-processes--pi-71-feature
In BPM, we have selected context objects 'LogError.MessageId','LogError.Interface' and specied an xpath for two fields 'Name' & 'Studentid' . In long text i have used container variables correctly while defining alert category.
But while checking the raised alert in RWB -> Alert Inbox, context objects are coming as blank, out of two fields only name is coming, but for Request it is coming as '&Stud entid&'
Do i need to do anything more to get messageid etc in the alert.
Please help!
Thanks,
Mayankhi,
Now MessageID and interface are coming correctly in the alert raised, but still Request is coming as '&Stud entid&, i checked in PE, container varaibles are set correctly, in alert inbox it is coming as &Stud entid&, we have 4 contianer variables used in Long text, it is coming like this for only one variable.
Any suggestions?
Also how can i define newline in between two words in long text?
Thanks,
Mayank
Maybe you are looking for
-
Error while posting 561 Document
Dear All Error while posting document with movement 561. "Account Determination for entry 999 BSA 6000 not possible." Even OBYC setting for that valuation class already assigned. please advice. Regards Kumar.
-
Whenever I try to transfer an ebook to my nook (via a macbook), it says adobe has quit unexpectedly and gives me an error code. Does not successfully transfer the ebook.
-
Is there a predefined way to change an integer to hexidecimal? For Instance: int ip1 = 166; ip1 to hex = 0xA6 I had thought I read about this in the docs, but can't find it. Thanks
-
How can i implement informa to parse rss feed?
is there any sample code or instructions? i am a beginer thanks a lot!
-
Hi Folks, I am giving shipping data as 25.08.2011 in PO item.When iam clicking Create ASN tool bar button in PO item level.Then it will move to Create ASN screen.But in Create ASN screen shipping date is displaying as some unknown forma