Displaying messages in BSP

Hi,
I am working on a BSP application where I want to display some error messages if a particular validation fails.
I have written the code for adding the message using CL_BSP_MESSAGES->ADD_MESSAGE in event DO_HANDLE_EVENT. The message passed is added successfully in table M_MESSAGES in method ADD_MESSAGE . But I want to know what code should be written in the layout to display this error message.
Moderator message : Post the question in relevant BSP forum, thread locked.
Edited by: Vinod Kumar on Dec 12, 2011 12:03 PM

Hi,
Try to use the method ADD_MESSAGE
lr_msg_srv = cl_bsp_wd_message_service=>get_instance( ).
  lr_msg_srv->ADD_MESSAGE( IV_MSG_TYPE = 'E'
                                     IV_MSG_ID = 'ZCRM'
                                     IV_MSG_NUMBER = '001'
                                     IV_MSG_V1 = 'Message' ).
Best regards,
Caíque Escaler

Similar Messages

  • How to display message in Default Frame work Page (Page Title bar)

    Dear Guru,
                    I want to display message in Page Title Bar , and that message should move like(Marquee in html) . So please any one suggest how to do and that message should be display for certain time.
    Thanks and regards
    Kumar Rakesh.

    Kumar,
    create a bsp application and create an iview from it and put it in default framework page
    code for the same
      <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <htmlb:content design="design2003" >
      <htmlb:document>
        <htmlb:documentHead>
        <htmlb:headInclude />
        <style type="text/css">
        .urBdyStd { background-color: "#455F55"; }
        </style>
        </htmlb:documentHead>
        <htmlb:documentBody>
    <marquee scrollamount="3" >
    <%-- <htmlb:textView
    encode ="true"
    id="a"
    textColor = "white"
    text = "BI Reports are currently down" />--%>
    <b><font size="2" color="red"><%=wa_rep-s_message%></font></b>
    </marquee>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>

  • Why is Mail 6.2 not displaying messages from my Exchange account?

    Greetings,
    I have a new 13" MacBook Air running Mountain Lion and I'm noticing that most of the time my Mail inbox is not displaying messages from my work Exchange account; however, it does display messages correctly for my Gmail account.  I've included a screen shot of what I'm experiencing.
    Any ideas?
    Thanks,
    Garry

    I have the same problem, as does a coworker. It happens, for instance, if I click on another mailbox (such as Junk) then go back to the inbox. Our company uses Exchange. Quitting mail usually fixes it. A rebuild of the mailbox will too.  Only happens on my Mac at work, not my Mac at home (connected via VPN).
    Another problem I have is with mail not syncing. Mail I have deleted from another device (such as on my Mac at home or my iPad) does not get deleted from my inbox at work. Sometimes they'll go away when I click on them. Other times they won't go away and the only way to delete them is to rebuild the mailbox.
    And lately I have had problems with attachments. Attachments sent from my Exchange account at work show up as .eml attachments in my iCloud account and mime attachments on my iPad or as a string of characters (20-30), not as an attachment. This happens whether sent from home or work.
    I have our IT department looking into the third problem (which is the most vital one for me).  I'll report the other two annoying problems and see what they can figure out.

  • I keep getting a display message saying this cable or accessory is not capitiable with this apple product may not be reliable with this iphone even when i have no cable or accessory in use

    My iphone 5 has been saying this for days now. Yes I have recently purchased a motorola ear piece for easy talking while walking, but i have also used a 10ft cord purchased at walmart for months now and no display before the motorola. now even without anything plugged in ,I still get the display message on my phone saying" the cord or accessory is not capitable with this iphone and may not be reliable with this iphone.
    what DO I do ?! is there something I can do without going to either Sprint or Apple for help.... will this be damaging to my iphone ?! HELP before its too late.
    sincerely,
    Apple lover JAJA

    Try resetting your iPhone.  Hold the on/off and home buttons together for about 10 seconds till the Apple logo appears.
    CAUTION - This may get rid of the warning for now, but the issue the warning points out still remains.  One or both of your cables is certainly suspect.

  • My ipod touch displays message "ipod touch disabled,connect to itunes."I have held down on/of switch until apple logo appears on screen of ipod touch , but the problem persists. Any suggestions?

    My ipod touch displays message" ipod touch disabled,connect to itunes. Ipod touch does no connect with i tunes. I hold on/off switch on ipod touch until Apple log appears on the screen, but the problem persists. Any suggestions ?  I am running Itunes 10.6(7)  My Mac OS X Version is 10.5.8.

    I connected ipod touch to my IMAC while holding on/off switch as stated to by anothe community memberand problem is solved. I wasable to update and reatore.  I have been trying to solve the disable problem
    for weeks. althou you did not actually solve the problem, In time you probably would. You were on the right track  Thank you.
    This helped me
    rbrookstone

  • Display image in BSP page,images are on a web server outside of SAP

    Hi,
    I am creating a BSP page for employee profile.The page needs to show an emp picture along with other info.The images are not in the MIME repository,they are stored in a separate web server.I am able to display the page using
    <img border="0"                     src="http://.com/xyz/xyz.bmp" >
    However this is a non secured test server. If the images are on a secured server,I am assuming,an id ,pswd authentication will be required.Can I get the authentication done automatically so that the page is rendered seamlessly for the end user?
    Would SSO help if this web server is a portal server?what if the web server is not a portal server?

    Hi Manidipa,
    The Http class in SAP can also be used in passing the required authentication information to the non-SAP portal system.
    http://searchsap.techtarget.com/whitepaperPage/0,293857,sid21_gci1084087,00.html
    There is an article written by Angeli Axel which does the same. The article has got ABAP HTTP classes and methods to get and post the parameters to the non-SAP portal system.
    The same solution can be done by passing the credentials in the url. The custom solution would be to pass the required credentials in the url and the receiving application should grab those information from the url and confirm the authentication. After that it should be able to provide you the image. After getting the image it can be simply displayed in your BSP using iframe tag.
    For eg if the receiving side is in java, then the following code can be used to receive the username and password. Once you get this you can verify the validity depending on the datasource whether LDAP(MS-ADS, Sun one, Novell edirectory) or ordinary database(Oracle, MS SQL Server .. etc) is used for storing the credentials.
    try {
              String userName = request.getParameter("username");
              String password = request.getParameter("password");
              if (validateUser(userName, password)) {
                 response.sendRedirect("mainpage.jsp");
    The main page here you display the image
    } catch (Throwable t) {
    The above code should be considered as pseudo code for any server side language.
    Please let me know if this helps.
    With regards,
    Rajesh Khanna Venkatesan.

  • af:validateLongRange displaying message: How to insert 'new line' ?

    Hello,
    While using <af:validateLongRange> tag we need to display message in a well formatted way, we have to display each statement in a new line.For eg. : message as displayed by property 'messageDetailNotInRange' must come in three different new lines not as a continuous statement.I tried inserting '\n' escape sequence for new line, but it dint work.I tried spacing the statements but that also is not working out.
    Any idea how can we get this message displayed separately in three rows rather than in a continuous statement ?
    ++messageDetailNotInRange="You have entered a value more than is available. Value entered must be in the range of {2} to {3}.To delete this line, clear the value and click Delete"++
    +<af:validateLongRange id="xyz_VC1" minimum="1"+
    maximum="100"
    messageDetailNotInRange="You have entered a value more than is available. Value entered must be in the range of {2} to {3}.To delete this line, clear the value and click Delete"
    messageDetailMinimum="Minimum {0} allowed is {2}"
    messageDetailMaximum="Maximum {0} allowed is {2}"
    hintNotInRange="#{'xyz'}"/>

    Thx..Done that!! but dint get the desired result ,I put it as :-
    messageDetailNotInRange="You have entered a value more than is available.&lt;br&gt; Quantity entered must be in the range of {2} to {3}.&lt;br&gt; To delete this order line, clear the quantity and click DELETE."
    On corresponding page this message was displayed as :
    You have entered a value more than is available.<br> Quantity entered must be in the range of 1 to 100.<br> To delete this order line, clear the quantity and click DELETE.
    It dint insert line breaks in the message.Do i need to write it differently?
    Above html code is modified once i posted it, it has inserted line breaks here for the br tag i added , but in my actual .jsff page it did not . I can only see br tag displayed as part of message and no new line got inserted.
    I dont see an option to attach a file with the post so that I can show the code to you.
    Edited by: user13439821 on Aug 15, 2011 2:58 PM

  • Why previously displayed message is coming again?

    Hello
    I am on view_1, here user selecting a option, if its incorrect, then am throwing a message(say, its INCORRECT PICK) in a popup with the below code,
    * Navigate from <CONTEXT> to <ERROR_MESSAGE> via lead selection
        lo_nd_popup_message = wd_context->get_child_node( name = wd_this->wdctx_popup ).
    * Get element via lead selection
        lo_el_popup_message = lo_nd_popup_message->get_element( ).
    * Get single attribute
        lo_el_popup_message->set_attribute(
        EXPORTING
        name = `MESSAGE`
        value = lv_message ).
        lo_api_component = wd_comp_controller->wd_get_api( ).
        lo_window_manager = lo_api_component->get_window_manager( ).
        lo_window = lo_window_manager->create_window(
        window_name = 'POPUPW'
        title = 'Invalid Selection'
        message_display_mode = if_wd_window=>co_msg_display_mode_selected
        close_button = abap_true
        button_kind = if_wd_window=>co_buttons_ok
        message_type = if_wd_window=>co_msg_type_none
        default_button = if_wd_window=>co_button_ok
        lo_window->open( ).
        lo_window->close( ).
        EXIT.
    Then, the user clicks OK button, and selects correct option, then user will navigated to view_2 and user will enter data, clciks submits button, then i am throwing a successful submission message on view_3, fine. But, along with successful message, user is getting the previously displayed message (INCORRECT PICK) as well!!
    How can fix it? Why still the previous message INCORRECT PICK is persisting there? why system is retaining it?
    Thank you

    Hi
    Do you use the messge area to throw messages in?
    If this is the case, please try to reset the message queue by using
    the message manager clear_messages method.
    if you are using a special node say "Messages", check if you go over
    the elements of your node. You should make this node's cardinality 1:1
    and select one attribute at the time.
    I hope this helps
    regards
    yuval peery

  • Mail [snow leop] stops displaying messages

    Mail [snow leop] stops displaying messages in viewer window until I open a new viewer window.
    That is the message text in the riight window section does not show.
    I have looked for an item in PREFERENCES and find nothing relating to this.
    This is an issue that occures more often now.
    What need I do?

    You have managed to close Mail's preview pane.  To reopen it you can double click on the bottom of Mail's window (the thick border with a dot in the middle) or drag it up to reveal the message preview area.

  • Send Display Message to SPA5xx or SPA3xx Series phones from SIP Server

    I have the program samples to update a CISCO SPA5xx phone via HTTP URI.  Unfortunately that URI is not accessible via NAT.
    I would like to be able to update the display from the Dial Plan (ie as the call routing progresses).  We use FreeSwitch, but really this is just a generic SIP question.  Is there a SIP INFO method or SIP HEADER or other way for the server to signal a display message update to the SPA5xx series of phones via SIP?
    FreeSwitch has a send_display function.  However it has only been coded for SNOM and POLYCOM support.  We can't have that!
    Thanks in advance,
    Sean

    Admin Guide contain the information that text messages have format described in RFC3428 (it mention not only how to disable/enable the feature) and I didn't said just RTFM but copied relevant part of such documentation to my response. But I'm not willing to waste our time with the discussion about "has been RTFM, or not has been RTFM".
    Now I understand you are not interested in format of SIP packets, you are interested rather in code sample that can send such kind of messages.
    The Asterisk can send such messages understood by Cisco Phone. You can call sendtext() application from dial plan. For the source code of it see file chan_sip.c, function declared as static int sip_sendtext(struct ast_channel *ast, const char *text)
    It may help to you.

  • JOptionPane.showMessage doesn't display message & icon in Solaris

    Hi huys,
    JOptionPane.showMessageDialog doesn't display message & icon in Solaris, but display is proper through XWin.
    Any help is appreciated.
    Edited by: Quest_4_Java on Oct 29, 2008 12:15 AM

    There's a program called DockStar that lets you put badges on the dock icon for different folders. It's shareware and available here: http://www.ecamm.com/mac/dockstar/
    I've got a smart mailbox named "Unread messages" that just collects ... all my unread messages (I do a lot of automagic sorting) and then have DockStar show how many messages are in that smart folder.

  • CRM 5.0 - Display message list in CIC

    Hello,
    Could someone let me know how the system for service order transaction in CIC can be set or enhanced program to have automatic display messages in the list instead of hide the list for every time that we click on navigation bar "Service Order"?
    Thank you and Regards,
    Jittima

    Hi ana
    It is customization warning message if you press enter it will disappear
    some time it happens
    Regards
    vinay

  • I want to display message more than 50 characters

    hi experts
    i want to display message more than 50 characters, and the fm 'POPUP_DISPLAY_MESSAGE' can display just 50characters, my message maybe much long, what other fm can i use?
    btw, i cann't use POPUP_TO_CONFIRM to let user select, the popup screen should only have one button to let user type in.

    thanks for ur reply,
    but 'POPUP_TO_DISPLAY_TEXT' just has two lines(every line has character limit), my message to be displayed may be much long.
    why i need the fm is that, i want to display error message when user made error operation, if i use 'message msg type 'E' ', the message display in the status bar at the left-down place and cann't display the whole message if the message is to long.
    so i had like to find a fm like 'POPUP_TO_CONFIRM' which can display multipul lines and just with one button(which is the user required...).

  • Change message in display message to user dynamically?

    I want to have the Display Message to User vi pop up and notify the user that the computer will reboot in x number of seconds, where x is constantly decreasing. Is this possible? I have tried sticking it in a for loop and the message won't change without clicking on the button. Also, when the time does reach zero, how can I have it destroy that pop up box?

    you can't use Display Message unless you convert it to a normal VI and do a lot of modification. It simple though, to create your own pop-up that does what you want. Look at the subVI in the attached file. It uses the Elaspsed Time function to create the time left and the window appearance properties to show and then close itself. There are also some shipping examples on creating your own dialog box or pop-ups.
    Attachments:
    Pop-up Demo.llb ‏64 KB

  • How to block displaying message "Save changes to file 'Test1' " in BEx?

    Hello, dear colleagues!
    Do You know how to block displaying message "Save changes to file 'Test1' " in BEx?
    I need some BEx setting which can block it and make it the same way as You close common Excel workbook without any changes made to it after opening e.g. without any messages, just clicking the cross. 
    Thank You all very much in advance!
    Val
    Edited by: vtb777 on Nov 21, 2011 1:46 PM
    Edited by: vtb777 on Nov 21, 2011 1:50 PM
    Edited by: vtb777 on Nov 21, 2011 1:52 PM

    from time to time i am working with macroses, but they are not good for the report's reliability.
    maybe You have some example of such macros?
    UPDATE:
    I have tried to edit event, called WorkbookBeforeClose in module BExEventHandler, adding there such a line:
    Application.DisplayAlerts = False
    but no result. maybe there are some other ways of solving this problem?
    Edited by: vtb777 on Nov 22, 2011 6:26 AM
    UPDATE-2:
    I got such a code, but it doesn't work:
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    If MsgBox("Save changes to file? " & Name, vbYesNo, "") = vbNo Then
       Cancel = True
    End If
    End Sub
    Edited by: vtb777 on Nov 22, 2011 11:07 AM
    Edited by: vtb777 on Nov 22, 2011 11:16 AM
    Edited by: vtb777 on Nov 22, 2011 11:20 AM

Maybe you are looking for

  • Changing operations work center during creation of  PM order

    Hi all, I am looking for BADI or EXIT in order to change operationS work center which created from maintenance calls. Does anyone know such possibility? Assaf

  • Web app security in NW

    Hi SDN, Can someone suggest or point to help/documentation on any NW settings related to the following three security items: 1. Cross-site Scripting 2. MYSAPSSO2 Cookie encryption (as it is, is it secure?), 3. SQL Injection Is there a comprehensive c

  • Add 1 to an Integer for Folder Name

    Hi, I'm trying to create a website which creates a folder on a local drive with a new JobCode and Description eg: '4928 - My New Project' when a submit button is pressed. The Job Code and Description will be stored in a database. I'm using: <cfdirect

  • Flash Distribution does not have latest update 10.1.82.76

    When I go to the flash distribution site, the only Flash version I can download is 10.1.53.64 and I do not know why. We can get the 10.1.82.76 through the Adobe website, but we need the distribution file. 10.1.82.76 was release August 10th. I have tr

  • Dropdown menu on my site is not working correctly anymore

    I use a CSS-based dropdown menu that has a 1 pixel white frame. In FF3.6 and in IE, Safari, Chrome it is working as dedired, but in FF4 the menu disappears as soon as I hover on the white frame. This normally only happens if I leave the area of the m