cancel
Showing results for 
Search instead for 
Did you mean: 

Alert - Container Filling

Former Member
0 Kudos

Hi Experts,

I have defined an alert categoty ZALERT, with 2 elements in the container: VAR1, VAR2.

In the Long text am using these two elements like: Document VAR1 is created by VAR2

The problem is: am getting the alert message as "Document is created by ".

Am executing the alert using FM: SALRT_CREATE_API, am filling the container table with the two elements.


l_tab_container-element     = 'VAR1'.
l_tab_container-tab_index = 1.
l_tab_container-type = 'C'.
l_tab_container-value       = l_doc_type.
APPEND l_tab_container.

l_tab_container-element     = 'VAR2'.
  l_tab_container-tab_index = sy-tabix.
  l_tab_container-type = 'C'.
  l_tab_container-value       = sy-uname.
  APPEND l_tab_container.

CALL FUNCTION 'SALRT_CREATE_API'
 EXPORTING
   ip_category                  = 'ZALERT'   
*   IP_ALIAS                     =
*   IP_EXPIRATION_TIME           =
*   IP_EXPIRATION_DATE           =
   ip_wait_on_commit            = ' '
*   IP_APPLICATION_GUID          =
*   IP_GET_SYNC_EXCEPTIONS       = ' '
*   II_CONTAINER                 =
 IMPORTING
   ep_alert_id                  = l_ep_alert_id
 TABLES
   it_recipients                = l_tab_recipients
*   IT_ACTIVITIES                =
   it_container                 = l_tab_container
   it_ext_recipients            = l_tab_ext_recipients
*   IT_EXT_ADDR                  =
*   IT_ROLES                     =
* EXCEPTIONS
*   ALERT_CATEGORY_UNKNOWN       = 1
*   ALERT_NO_RECIPIENTS          = 2
*   ALERT_ERROR_UNKNOWN          = 3
*   DESTINATION_UNDEFINED        = 4
*   COMMUNICATION_FAILURE        = 5
*   SYSTEM_FAILURE               = 6
*   OTHERS                       = 7
          .

Some one plz help me to get the proper data.

Thank you.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Problem Solved.

I used below code to fill the container.


INCLUDE <cntn01>.

* declaration of the alert-container 
swc_container lt_alert_container.

* fill element in the container
swc_set_element lt_alert_container <element name> <value>.

Thanks to all for ur valuble replies.

Former Member
0 Kudos

Hi Mytri,

I am working in CRM 2007 web ui

in this i am getting alert with Back Complete Reject Forward To Reserve

is this any way i can control this button or display only 2 buttons say back and complete.

Thanks & Regards,

Taran

Former Member
0 Kudos

How u did that Mytri R can you please share

former_member184619
Active Contributor
0 Kudos

Hi Mytri,

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

Sachin

former_member581827
Participant
0 Kudos

Hi,

Please specify like this Document &VAR1 is created by &VAR2.

Test and see...

Regards,

Chandra.

former_member181962
Active Contributor
0 Kudos

Did you check the dynamic text check box while creating the alert category?

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

I didnt checked the dynamic text, if i do that the - i wil loose long & short text tab. as I cant specify the message, i didnt used that.

I filled the container variables & using them in the text.

As i selected the variables from caontainer, they will b like &VAR1& only.

former_member581827
Participant
0 Kudos

Hi,

we need to use dynamic text option as well.

Regards,

Chandra.