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,
Vika

Hi 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>

Similar Messages

  • Container for alert category could not be loaded

    Hi All,
    I am having very strange issue with container(Variables).
    I defined Alert category, created container elements and I was using them in long and short text. They were working fine, but now if I open Alert category and click on container tab, its says: Container for alert category could not be loaded and I dont see container elements that I created before. Same thing happened before and I re-created those container variables. But now I have many Alert categories. Is this an existing issue? or does any body having similar situaltion? Can anybody please provide information on this.
    Thank you,
    Indrasena

    Hi Moorthy,
    Thanks for your quick reply . We are on WAS 6.40,SP16, but SAP note 656488 is released on 01.09.2003 for 620, it should have been implemented alreay. Do you think we still need to implement that???
    Thank you,
    Indrasena

  • Using Multiline Container element in sending mail

    Hi,
         I am sending mail with Multiline Container element APTEXT.
    I put &APTEXT##&  Is this right ?
    But when I have 2 lines of data, its sending mail with only one line.
    Thanks

    It is my personal observation that if the line size is more than 132 charecters then it will display like that.
    So do like this
    1. First make the row size as 125.
    2. and when you are selecting the multiline container element in the mail content, then it will ask you 3 options selct the option Print line by line then check the mail.
    It worked in my case.

  • Use Multiline Container Element in User Decision

    Hi Gurus,
        I have a Multiline Container in my User Decision Task. I am able to pull the data in a Standard Text to the Multi Line Container Element if type RSTXT-TXLINE. But how do I display the total data in all the lines in that element to the User Decision Workitem Text.
    Thanx & regards,
    Kan

    You cannot insert all the table entries in the Decision step workitem Text. it wont allow you to display, one of the possible ways to fix it is please check this [blog|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1574174750DB11406479040085832269End?blog=/pub/wlg/15666]

  • Problem using views containing xpath expressions with Oracle Forms

    Mark,
    Nice to see you back on the forum answering questions.
    This example is based on the standard purchaseorder schema.
    i registered the schema, created a relational table and then created
    a view using xpath.everything works well and i am able to select the data
    using sql*plus. Now this views is like any other view, when i describe the
    view, i can see the all the data types are valid for the columns and also the lengths.
    Now when i try to base a data block in oracle forms using this view, i get error
    "ORA-24324 - service handle not initialized."
    Whereas if i create another view on top of the first view and then base the data block on this view, it works for me. i described the second view from sql*plus and everything seems to be same for me.
    this is the same behaviour from database 9i r2 and it exists in 10g r1 also.
    Any hints as what might be the problem or you would like me to file a tar for this.
    create or replace view purchaseorder_header_xml
    as
    select  id
           ,extractvalue(xml_data, '/PurchaseOrder/Reference') reference
           ,extractvalue(xml_data, '/PurchaseOrder/Requestor') requestor
           ,extractvalue(xml_data, '/PurchaseOrder/User')      po_user
           ,extractvalue(xml_data, '/PurchaseOrder/CostCenter') costcenter
           ,extractvalue(xml_data, '/PurchaseOrder/SpecialInstructions') spl_instructions
    from tab_xmldata
    create or replace view purchaseorder_header
    as select * from purchaseorder_header_xml
    /Raghu

    Not used Forms for years. However I suspect that Forms is trying to poke around behind the view and not understanding what it sees. I expect you'll need to open a Forms Tar to get to the bottom of this. It also appears that you a workaround which is to create a view on the view by the sound of it..

  • Problems Using Foreach Container

    I have a large number of small Excel files which I want to insert into a single SQL table.  So, I created a variable with package scope called "Filename".  Then I created a foreach container using the Foreach File Enumerator, specified
    the folder value, specified files as "10_64_65*.xlsx" and clicked "Fully qualified".  Then, in the Variable Mappings tab, I chose "User::Filename" as the enumerator, and clicked OK.
    Next, I created a dataflow, and within that, I have an OLE DB for Excel Source, Data Conversion, and OLE DB Destination.  I have already configured the OLE DB destination to point to the table I want to update, and it does exist.  When I go to
    use the Excel Source editor, I select "Table name or view name variable", and select "User::Filename" in the Variable name field.  As soon as I click OK, I get "Error at Data Flow Task [Excel Source [1]]: A destination table name
    has not been provided."
    Delay validation is set to true for the package.
    This message strikes me as idiotic.  Why would I even THINK about providing a destination table name for an Excel SOURCE?  Can someone please explain what contortions I have to do to eliminate this nuisance?  I've blown an entire afternoon
    trying to guess my way around this.

    I did as you suggest, including setting DelayValidation for ExcelConnectionManager to True.  Since the variable is to receive its information from the Foreach container,
    I just entered @[User::Filename]="", because I was thinking that the Foreach container would fill this variable in when it runs, so it doesn’t matter what I initially assign to it.   Then, I went back to Excel Source Editor, and changed
    Data Access Mode to “Table name or view name variable”, and selected “User::Filename” from the list.  When I click OK, now I get a different error from Microsoft Access Database Engine, HResult 0x80004005 Description: “Invalid argument”.
    So then I followed your example above EXPLICITLY, and +now+ it says "The Microsoft Access database engine cannot open or write to the file.  It is already
    opened exclusively by another user, or you need permission to view and write its data."  This statement is untrue: the spreadsheet is NOT open, and since I can open it, view it and write to it outside of SSIS, I doubt there is a permissions issue.
    What should I try next?  When I substitute a SCRIPT PROCESS in place of the stuff I actually want to do, it runs properly, and the script reports all the filenames collected
    by the Foreach container.

  • How to test the rule if multiline container is passing to the task?

    Hi Experts,
                      I am working on leave workflow. I have to get the approvers based on no of days of leave and leave type. I am getting these details in ITEMS_TAB internal table. I am passing this table to a rule. Now my problem is when I tried to simulate the rule I am not getting any input screen to enter the data.
    ITEMS_TAB is an internal table type of   "PTREQ_ITEMS_WF_TAB_FLAT".
    In the rule I have created a container by selecting the radiobutton "ABAP Dict. Data Type" and entered the above reference parameter is it right way?
    Is it possible to test the rule independently if I use multiline container as import parameter in my rule?  If so can anybody please tell me how to test the rule?
    Thank You.
    Srija.

    Hi Pavan,
                     Thank you.
                     To copy the values I am not getting any input screen to input the values. I observed one thing that the type that I am referring in the Rule is a deep structure. Is this is the reason that I am not getting the input screen to enter the values?
    I tested by creating aother rule by taking a field for that rule I am getting the input screen to simulate the Rule.
    Can you please suggest if the rule will not work then what I have to do? without the rule how can I get the agents?
    Thank you.
    Srija

  • 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
    Divia

    Hi 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.

  • 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,
    Venkat

    You 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.

  • 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

  • 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,
    Mayank

    hi,
    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

  • Workflows : Multiline Container Element problem.

    Hi,
    I got a new problem. Well I got a requirement to collect <b>COMMENTS</b> from <i>MULTI-LEVEL Supervisors</i> and display them in the <i>work item preview</i>. So in these regards, I had declared a Multiline Container element in my Workflow and passed it to some method to get the comments. Well I had succeeded till this point. But there is a problem when I tried to display them in WORKITEM.
    Well, all the lines are getting displayed continously in the Work Item preview.
    Is there any solution for this ?
    Like I want to display the Multiline Container element line wise. Not as a concatenated single line which is happening right now.
    In the Work Item Text part I used it as ...
    Comments from Supervisor : &COMMENTS&
    This is FYI...
    Please help me.
    Regards,
    Raja Sekhar.

    Hi Vinod,
    Well, I tried including the MULTI LINE Element in a Mail step. It gave me all the three options of printing.
    First one is...
    Only first line of Container element can be printed using
    &COMMENT&
    Second one is...
    All the lines of Container element can be printed in a single line as &COMMENT[]&
    Third one is...
    All the lines of Container element can be printed in seperate lines as &COMMENT##&
    I used the third one. It worked even the same in Work Item also.
    Regards,
    Raja Sekhar

  • 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,
    Vika

    Hi,
    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

  • Problem With Alert Category SCM EM 5.0

    I have just updated my EM 4,0 to 5,0 and I have problems with the categories of alert, in the part of messages by mail. I do it correctly when configuring them like was doing it in the version 4 declaring in the containers the name of the paraameter of information and type, but when in the transaction SOST I see the very result the first character of the piece of information that is supposed to all data reflect appears they are declared correctly and in the HEY are everything like parameters of information.
    Somebody is able to tell to himself that it can be happening
    Thanks . . . Alberto

    somebody can helpme

  • Payload field value in container for alert

    Hi All,
    I am configuring Alerts for my client.I have to insert a value of one of the field from payload in the alert long message.
    I have gone through SDN to search for any blogs.
    1) I dont want to use BPm
    2) Other option of using RFC lookup in mapping is not feasible.
    Does any one else has any other idea about implementing the same.I could see some System Fields  like XPATH_GET_VALUE in the alert category.But ,how can we use it?
    Thanks
    Nidhi

    If you are using the Alert category definition of SAP PI
    there are default container values that can be used to include
    data in the alert message.
    Refer to: [Alert Category definition|http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm]
    this should be the first place to look for work methods and features.

Maybe you are looking for

  • How can I replicate table from a user to another user?

    I want replicate a table from a user to another user, I use DBMS_STREAMS_ADM.RENAME_SCHEMA, but it didn't work. who can tell this reason? scripts as following: create user strmadmin IDENTIFIED BY strmadmin; grant dba to strmadmin; BEGIN DBMS_STREAMS_

  • Error while calling web service through Internet Transaction Service.

    Hi, I am trying to execute transaction through web service. This service is attached to Internet Transaction Server (ITS). In Transaction SICF, in ITS when I test service, getting Error Message : New session rejected due to Memory bottleneck. Thanks,

  • Suddenly Can't Open RAW files in Photoshop CS3!

    I have never had troubles with photoshop before, but since I installed windows 7 and reinstalled CS3, Photoshop is no longer able to open camera raw files! When I attempt to open one a window pops up stating: Could not complete your request because i

  • Unicode/Japanese characters not displaying

    I've never had this problem before. I synched up my iPod this morning, I added a new album with Japanese kanji and then disconnected. After leaving my home for the day, I looked at the album I just imported and all of the kanji isn't showing up, nor

  • Writing to a socket appends random bytes to my message

    Hi Everyone, I'm a bit confused about this. I'm sending a byte array over a socket and when I read that array, I seem to always have 10 bytes appended to it. The 10 bytes are the same every time, which is really weird. I have looked all throughout my