Display messages dynamically

i want to show messages dynamically  i.e text and item no combindly
please help me out.
murali

Hi Krishna murali.,
                This is out of my experience that when a end user raises an order the partner function for the particular customer is PLIT,it is a store,When the partner function is copied to order,The user should get a Error message that ,Change the store,For that we have created dynamic error message in SE91 with the help of ABAPERs where it needs some coding
REWARD if helpfull
Thanks & Regards
Narayana

Similar Messages

  • Dynamically display messages in JTextArea

    Hello everyone! I have a problem with my code so i hope someone can help me out. I am not very advanced to Java but i have to create a chat program. My problem is that i dont know how to display messages from different users into my JTextArea. I haven`t connected my program to a server yet because i am still working on the interface.
    So how can i display dynamically messages so that it looks like an interactive chat window. Here is my code.
    Please bear in mind that i will use only a username not a password.
    Thanks
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.JScrollPane;
    public class Jchat extends JApplet implements ActionListener
         JLabel label1 = new JLabel ("Welcome to ... CHAT");
         JTextField write = new JTextField(30);
         JTextArea output = new JTextArea(10,35);
         JButton button1 = new JButton("Send");
         JButton button2 = new JButton("Clear");
         Container con = getContentPane();
         Font headline = new Font("Georgia", Font.ITALIC, 18);
         JScrollPane scroll = new JScrollPane(con,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
         JScrollPane scrollOutput = new JScrollPane(output);     
         public void init()
              con.setPreferredSize(new Dimension(700,400));
              label1.setFont(headline);
              con.setBackground(Color.gray);
              con.setLayout(new BorderLayout());
              con.add(label1,BorderLayout.NORTH);
              con.add(output,BorderLayout.CENTER);
              con.add(write,BorderLayout.SOUTH);
              con.setLayout(new FlowLayout());
              con.add(button1,BorderLayout.EAST);
              con.add(button2);
              button1.addActionListener(this);
              button2.addActionListener(this);
              write.addActionListener(this);
              write.requestFocus();
              //cannot change text in the text area screen
              output.setEditable(false);
              output.setLineWrap(true);
              //scrollOutput.setVerticalScrollBarPolicy(38);
              setContentPane(scroll);
         public void actionPerformed (ActionEvent e)
              Object source = e.getSource();          
              if (source == button2)
                   write.setText(" ");
              else if (source == button1 || source == write)
                   String input = write.getText();
                   con.add(output,BorderLayout.CENTER);
                   output.setText("User says: " + input + '\n');
                   validate();
    }and the other one
    <html>
         <head>
              <title> </title>
         </head>
         <body>
              <APPLET
                   CODE="Jchat.class"
                   WIDTH=500
                   HEIGHT=300>
              </APPLET>
         </body>
    </html>

    the border layout declaration has nothing to do with my question.Maybe not, but at least it would should that you took the time to read the suggestion.
    And what you advised me to use TextArea.append(...); is not very specific.Well, neither was your question, so I gave the best suggestion I could. If it wasn't helpfull, then I would assume you would post a followup question to clear up the confusion.
    setText(...) replaces all the text in the text area.
    append(...) adds the text to the bottom of the text area.
    If you didn't understand how/why to use the append(...) method why would you create a new posting? Would you not post a followup question in the original posting? Are we supposed to be mind readers and guess that you can't read the API to determine how a method should be used?
    Of couse maybe I don't understand what you mean by "interactive chat", in which case reposting a question with the same wording won't help get the problem solved either.

  • 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 display the dynamic text in the selection screen

    Hi All,
    I want to display the dynamic text in the selection screen .... ( I searched in forums , didnt get the any answer fot this sort of qustion ).....
    EX: If i have the date of today 31st  it has to show message like " today date is 31 like some thing "  when i execute the report .
    Could any one face this sort of requirment, Please let me know.
    Thanks in advance.
    Reagrds,
    Bharani

    Where would you like this dynamic text being displayed? As an "message" or in some parameter field?
    If first
    parameters date type d.
    data: text type string.
    at selection-screen.
       concatenate 'Today is' date into text.
       message text type 'I'.
    If second
    parameters pa_text type c length 50.
    at selection-screen on date.
      if date is not initial.
        concatenate 'Today is' date into  pa_text.
      enidf.
    at selection-screen output.
       "show it as read only
       loop at screen.
        if screen-name = 'PA_TEXT'.
               screen-input = abap_false.
              modify screen.
        endif.
       endloop.
    Regards
    Marcin

  • Display a dynamic header

    Dear Vinod,
    IMHO i don't think this is a spec dumping. I did try to search and even tried hands on it. Unfortunately i didn't get any luck with that.
    Morever i'm not asking for any spoon feeding...It's just about some pointer's or any ideas that would help me.
    Hope that clarifies much better.
    Thanks in advance,
    Arya.
    My selection screen has a parameter P_WEEK.
    Suppose if user enter's a week no for ex: 5. My ALV header should display as
    Week5  Week6  Week7  Week8  Week9  Week10
    i.e. Up to next 5 weeks. How to design a ALV that would display a dynamic header?
    Any ideas or suggestion would be of great help.
    Thanks,
    Arya
    Moderator message : Search for available information. Moved to basic(points-free) forum.
    Edited by: Vinod Kumar on Oct 19, 2011 3:37 PM
    Edited by: arya.soumya on Oct 19, 2011 12:22 PM
    Edited by: Suhas Saha on Oct 19, 2011 4:08 PM

    Hi,
    you just try to write below logic in TOP-OF-PAGE routine in your program.
    parameter: p_week(3) type c.
    Form top_of_page .
    do p_week times.
    pass the required data to your internal table and append it.
    enddo.
    Endform.
    Ram.

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

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

  • Is it possible to display only dynamically selected fields in the out put?

    Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
    thanks in advance.

    Hi Remya,
    Are you talking about dynamic programming in ABAP ?
    If yes, there are concepts like RTTS which facilitates it.
    Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
    Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
    Regards,
    Philip.

  • 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

  • Not able to display a dynamic image

    I'm not able to display a dynamic image on Adobe print form.
    Here is what I did.
    Please let me know what I need to do to get this working...
    1. Created a Graphics node in the Context of the Adobe form.
    2. In the URL tab of the graphics node defined the following two lines:
         <URL pointing to the MIME repository folder>
         IM_FILENAME_1
         Where IM_FILENAME_1 is being passed to the Adobeform function module.
    3. In the Layout mode, dragged and dropped the Graphics node from the
        contenxt tab to the form layout. On doing so it appears as a image field in the form layout.
    4. Activated the form.
    BUT, when I run the form , the image is not showing up.
    The idea is to pass the image file name to the form so that it will show up a dynamic image at run time.
    PLEASE HELP.

    Hi Atul,
    Try this, that should work.
    In the interface , define a parameter type string where you will store the URL of the image .
    In the initialization part of the interface , check if the URL is defined, in case it's empty define a default URL . You should put the compelte URL of the image like "http://www.company.org:8080/logo.logo.jpg" .
    Then link this parameter to the Grpahic Node in the URL parameters .
    Let me know if that works

  • Displaying a dynamic image in a jsp

    I am interested in the way of dynamically generating an image in a web browser. The image should be formed on the servlet, more precisely with the aid of a servlet, and reloaded in the web browser every time it suffers modifications (for example, elements are drawn). The drawing and displaying part is already functioning not as a server application, but as a desktop one. The result of the drawing actions are displayed in a Bufferd Image view. What I have to do is to display this image in the browser, encoded as a gif (I already know how to do the encoding part).
    //code from TheServlet.java
    ImageViewPort view = new ImageViewPort(600, 600); // BufferedImage type
    Image image = view;
    g = image.getGraphics();
    response.setContentType("image/gif");
    GifEncoder encoder = new GifEncoder(image, out);
    encoder.encode();
    How would I correctly reference in the HTML form this servlet? In the HTML form I have to display the dynamically created GIF image as a server side image map?
    // code from the HTML form
    <img WIDTH=600 HEIGHT=600 BORDER="2" src="http://localhost:8080/servlet/TheServlet");
    ISMAP/>
    How should be written the source of these image map?

    you can use AJAX for this.. google maps is using ajax for rendering their maps..

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

Maybe you are looking for

  • Can i transfer money across itunes accounts

    I want to transfer money across from one itunes account to another is this possible?

  • Error message with QT for Windows Vista

    I have an error message from Windows Vista... Microsoft Visual C++ Runtime Library Buffer overrun detected! Program: C:\Program Files\QuickTime\QuickTimePlayer.exe A buffer overrun has been detected which has corrupted the program's internal state. T

  • Account of the opportunity is not populated after the creation of a task

    Hi, In our project, we are using the Opportunity Object after the creation of a task. Our tasks are always related to an existing account. I was wondering why when I create an opportunity from a task, the field "Account Name" is not populated by defa

  • Outbound to dymanic directory

    Hi all. I need copy files from some computer (always the same directory) to another (different directory each time). The output directory depends on filename. The filenme it's like XXXYYYYMMDD.CCWW, where XXX = some code, YYYY=year, MM=month,DD=day,C

  • Internet bandwidth usage reporting in real time

    Need some guidance with regard to software selection and physical layout. I've been asked to provide reports on internet usage; - IP address - port/protocol - bandwidth We havcusco cisco 4500. Our ISP router is 3400 metro router (fibre to Ethernet me