Fetching Message from message class into variable

hello all,
can anyone please tell me that how can i fetch the message from message class?
because i have to take that message in one variable and have to pass it in function module.
regards saurabh.

Hi,
DATA : MESSAGE TYPE STRING.
Select TEXT from t100 into MESSAGE where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'
msgnr = 'YOUR_MSGNR'
or if you want all the messages to fetch in a single query to avoid performance issue
Select * from t100 into itab where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'
Cheerz
Ram

Similar Messages

  • Fetching Values From JAVA classes into ABAP report

    Hi Experts,
    I have a requirement, in which I need to fetch Java Roles/Groups from  the portal to a ABAP report, for specific users.  The roles inside of our project are not always in sync with the central system.
    I could not find any link with talks about this. Could anybody guide me on how to proceed?
    Regards,
    Trishna

    I have written a report which takes users and specific  roles as the input. Eg, userID :12345  and role/profile :SAP_ALL, SAP_ADMIN..etc in a table. and gives back if the user 12345 has SAP_ALL or not.
    Now I have used RFCs to fetch all the roles for the user from different SAP systems which i further compare .
    What I am unable to do is fetch the portal roles .
    PROBLEM : The portal roles also exist in the central system, but might not be always consistent since they get manually updated in the central system. Hence I want to directly fetch the data from the JAVA Portal.
    WHAT I KNOW : I need to write a JAVA class in NW developer studio which will take the user as the input and give me all the roles/profiles for the same user as output.
    How do I further pass the values to and from  the Java class to my ABAP report?
    I know that I need to use the UME in some way to have this work for me. But since i do not expertize in java I need guidance/steps as to how to proceed.
    Regards
    Trishna

  • ABAP: extract messages from message class

    Hello all,
    I have a message class and now I need to extract some messgae from it and pass them to some methods. For instance, to a pop up window.
    How do I extract messages from that class?
    Thank you.
    Regards,
    Georgy

    Hi Georgy,
      Are you trying to use a confirmation window with a standard "Ok" and "Cancel" button. Then you can do something like this:
    method onactionpopup4_1 .
      data: l_cmp_api          type ref to if_wd_component,
            l_window_manager   type ref to if_wd_window_manager,
            l_popup            type ref to if_wd_window,
            l_text             type string_table,
            l_api              type ref to if_wd_view_controller.
      l_cmp_api        = wd_comp_controller->wd_get_api( ).
      l_window_manager = l_cmp_api->get_window_manager( ).
      insert `Data where changed` into table l_text.    "#EC *
      insert `Do you want to save?`        into table l_text.    "#EC *
      l_popup = l_window_manager->create_popup_to_confirm(
                    text            = l_text
                    button_kind     = if_wd_window=>co_buttons_yesnocancel
                    message_type    = if_wd_window=>co_msg_type_question
                    window_title    = 'Test: Popup to confirm'
                    window_position = if_wd_window=>co_center )."#EC *
      l_api = wd_this->wd_get_api( ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_yes
                   action_name       = 'YES'
                   action_view       = l_api
                   is_default_button = abap_true ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_no
                   action_name       = 'NO'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->subscribe_to_button_event(
                   button            = if_wd_window=>co_button_cancel
                   action_name       = 'CANCEL'
                   action_view       = l_api
                   is_default_button = abap_false ).
      l_popup->open( ).
    endmethod.
    Or else if you have your own pop-up window, then you can just declare a message area and report a message there using the code that I had written in my last post.
    Regards,
    Satyajit.

  • Options of fetching mails from mail server into PI and also from oracle system

    hi All,
    Pls extend your help in looking out the possiblity of fetching mails from mail server into SAP PI
    and also from oracle system into PI ,earliest help would be appreciated.
    and also the types of sources for both the scenarios.
    Regards
    Vidya Sagar Manda

    Hi Vidya,
    you can use the email adapter to read/pick up email from mail box.
    and use JDBC adapter to read data from table of any database. Please refer the links given to your old thread
    Fetch Mails From MailServer using PI and integrate the message into BPM
    regards,
    Harish

  • Deleting message from Message Handler

    Hello,
    I want to delete some message that are getting displayed on ECM UI from SAP in the BADI HRECM00_CONSISTENCY.
    There are several methods available for adding and getting messages from message handler in class CL_HRPA_MESSAGE_LIST
    but there is no method for deleting message from message handler.
    Please let me know if any one of you have any idea,how to delete messages from message handler.
    Message handler has reference to CLASS CL_HRPA_MESSAGE_LIST in the BADI.
    Thank you
    Arvind

    Hello
    In the BADI the messages are not coming in internal table but are in class instance (message_handler).I have got the messages in internal tabe now.But after deleting it this needs to be again added in message handler in such a way that old one are removed and new one are added only.
    This is required as message handler will be carrying the message to ECM user interface where it will be displayed.
    Currently all the message are going to UI,my requirement is to send only my message to UI.
    Thank you
    Arvind

  • Passing messages from BW customer-exit variables to WebI

    Hi
    Is it possible to pass messages from a BW customer-exit variable to WebI?
    We have a scenario where we have some validation done on a customer-exit variable, and under certain conditions a message should be returned to the user running the WebI report. Ideally, then report should stop executing at this time.
    The ABAP is in place, and I can return an error message. If the query is run in RSRT / Web Template, the error message is correctly displayed and processing stops.
    However, in WebI, if the error condition is met, a rather messy looking generic error message is displayed. In this case, the error number I've used in the ABAP is 000, which WebI then interprets as somthing to do with query dimensions could not be retrieved, or a null pointer exception.
    I am not interested in the WebI error message that is being generated ... I know why it is being generated.
    All I'd like to know is whether it is possible to pass an error message from within the customer exit code back to WebI.
    Any ideas?
    Regards,
    Andrew

    Hi,
    I think that the problem is the User Exit is called anew for every query, so the global tables you declared will be empty for the query2.
    One way to do this is create a table using the SE11 and populate it with the Variable from Query1, and use this data to populate the Variable2 of Query2.
    Hope it helps.

  • Sending tile messages from ActionScript classes

    The majority of my code resides in Actionscript classes, not in the MXML tiles themselves.  Do you have an example of an Actionscript class with (or without?) a reference to the tile sending/receiving a message to the composite application?
    Thanks!

    You will have to pass in the MosaicApp reference if you want to actually have the class register a listener or send messages, something as simple as this:
        import com.adobe.mosaic.om.interfaces.IApplication;
        import com.adobe.mosaic.om.events.Message;
        public class Sample
            private var mosaicApp : IApplication;
            public function Sample(app:IApplication)
            public function sendIt() {
                var msg:Message = new Message("someNamespace", "someEvent", "Hello tile");
                mosaicApp.sendMessage(msg);
    Lee Burch

  • How to fetch records from the database into a combo box?

    Hi:
    I´m really new with ABLBPM and I´m trying to fetch records from the database to display them into a combo box as valid values for a presentation but I´m using a dynamic method with this code:
    <em>for each row in SELECT campo1, campo2 from TABLE</em>
    <em>do</em>
    <em>solicitudes[] = [row.campo1, row.campo2]</em>
    <em>end</em>
    <em>return solicitudes
    </em>And the debugger says that SQL instructions can be used only in fuctions and procedures that are executed on the server.
    Do you know another way to do it?
    P.D. Sorry for my terrible english
    Greetings

    Hi Steve,
    Thank you, your idea is perfect, but when I try to run the screenflow where the combo should be filled I get this error:
    fuego.lang.ComponentExecutionException: No se ha podido ejecutar correctamente la tarea.
    Motivo: 'java.lang.NullPointerException'.
         at fuego.web.execution.InteractiveExecution.setExecutionError(InteractiveExecution.java:307)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:166)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.webdebugger.servlet.DebuggerServlet.redirect(DebuggerServlet.java:136)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:85)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
         at fuego.web.execution.servlet.ServletExternalContext.processAction(ServletExternalContext.java:110)
         at fuego.webdebugger.servlet.DebuggerExecution.dispatchComponentExecution(DebuggerExecution.java:64)
         at fuego.web.execution.InteractiveExecution.invokePrepare(InteractiveExecution.java:351)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:192)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
         at fuego.webdebugger.servlet.DebuggerServlet.doDebug(DebuggerServlet.java:148)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:82)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    Any ideas??
    Thanks and greetings

  • Remove message from message determination in billing docs

    I want to generate an SD billing document ONLY if another message is not determined to the some document.
    I'm determining the billing message type to be printed by Sales Organization.
    I started to send Electronic Invoices to some partners, and I want to Not generate the ZRD0 message to the document if another message (ZRDI EDI document)exists (is determined) for that document.
    Is there any easy way to do this? Is there any user-exit in SD billing document where I can test the existence of a message and delete other message from NAST?
    Thank you
    Best regards

    Hi,
      in the IMG, you can define a requirement in the access sequence related to your document (where your output type is determined). This requirement is in fact a piece of code where you define whether you want to generate the output or not.
    It's a kind of user-exit during the output determination. As you have there access to fields of KOMKBV3, you should be able to check NAST with correct parameters.
    I think you can try this...

  • How to send message from Message Driven Bean  to JMS client?

    In my project I have JMS client, two QueueConnectionFactory and Message Driven Bean. Client send message to MDB through the first QueueConnectionFactory , in one's turn MDB send message to client through the second Queue Connection Factory . I already config my Sun AppServer for sending message in one way, and sending message from MDB to the second QueueConnectionFactory. But on my Client there is an error : �JNDI lookup failed: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/MyQueue2� (jms/MyQueue2 � this is the name of my Queue). So it couldn't get this message.
    P.S.
    Thank you for help!!!

    What is the name of the second queue?is the connection factory on the local?Yes the connection factory is on the local. The name of my first queue is jms/MYQueue and the name of another one is jms/MyQueue2.

  • I moved a lot of messages from different profiles into a new profile and obviously that did not work. Help.

    The messages i moved from different profiles show up in Thunderbird below folders I have set up. Here is an example:
    !%26!AAAAAAAAAAAYAAAAAAAAAEar6xxG3IpIp77Cdd9KJ%2FjCgAAAEAAAAMR3mYqi1U1OmSpmool4dwEBAAAAAA%3D%3D%40graphicadd.com.wdseml
    Can anyone understand what I have done and help me fix this problem? Thanks.

    see that wdseml part..... that means that they are files created for the sole purpose of allowing the ever so slightly intellectually disabled windows search to find emails. '''They are not emails'''. They do not contains any attachments!
    Emails are stored in files with the same name as the folder you had them in inside Thunderbird... so the inbox folder in Thunderbird will be the inbox file. To make it easier there is always an MSF file with it. So in this case inbox.msf.
    Using this add-on https://addons.mozilla.org/en-US/thunderbird/addon/importexporttools/ you can import these native MBOX files into your current version of Thunderbird.

  • Alert message from java class

    I have a java class (event handler) that does some server-side processing. During the mid-way of processing, I do a condition
    check. If it fails the condition, I would like to pop up an alert message (yes/no confirm) on the JSP that invoked this handler class. If I click, yes I should be able to proceed with the rest of server-side processing, else I return to the same jsp. Can somebody guide me with this java and javascript interation?

    If the server processing involved only in data processing in DBMS you can do something like this.
    Your processing places all the messages that need to be displayded in a queue.
    The messages can be in three types
    1 - Error Message - (Enqueuing a error message should also result in an exception)
    2 - Alert message (Messages to be displayed with only a OK button)
    3 - Confirmation button (Yes/No, Ok/Cancel)
    after the server processing is orver the client read the content in the message queue and display them appropriatly.
    if it found a error message in the queue it should abort the transaction by executing a rollback
    if it found a alert message just display it
    If it found a confirmation message it should be displayed the transaction should be rolled back or commited based on the users respond
    if the user decided to rollback in such cases rest of the messages should be ignored.
    Above approach can be used only if you can rollback the entire operation at the end of it

  • Push messages from business logic into backing bean

    In my simple web application a table with the contents of a database table is shown to the client. Now I want this table in the browser to be updated each time the db table is updated. In my business logic a jms message is fired to a specified topic each time the db table is updated. The reverse ajax stuff needed for the client update is provided by the Icefaces jsf implementation. There is a backing bean for each session which is responsible for the server side rerendering of the client. Now my question is: How do I connect the bussiness logic firing a jms message if the db table is updated, with the backing bean?
    My thoughts:
    1. Create a message listener for the topic. Each time the message listener receives a message it notifies the backing beans of each session to rerender the client. But how does the message listener know about the backing beans?
    2. The backing bean responsible for rerendering the client adds itself as a listener. But where? As I understand it cannot be a backing bean and a jms MessageListener at the same time.
    Has anyone an idea/pattern for this problem?

    You could keep a list of beans that need to be notified in the application scope. (You should probably use weak references so that they may be garbage collected.) Then you JMS listener could get access to them.
    Somebody posted a thread recently where they were doing something very similar, you might want to try to find it.

  • Copy-paste values from excel sheet into variable screen of SAP BI 7.0 query

    Hello
    Report has selection by material in the variable screen. Users would like to to run a report for a set of materials (100+ items). He wants to copy-paste materials into material variable to avoid manual entry.
    I know its impossible. Are thee any ways to allow user not to enter this materials manually and run the report.
    Set of materials can change over the time.
    Thanks

    Hi,
    You might want to try with a text file (.txt).. place all the 100+ values into a text file.. like the notepad.. make sure you have only one column with all these number.. no headers or no blank spaces in the beginning..
    then, in the variable (variable should have been defined as "select options" or "multiple single values"), if you can go the screen where we can make multiple entries, we will have an option to import from a file.. and select the text file you have created above.. then all the 100+ values will be imported..
    we do this all the time..
    rgds
    Naga

  • How to fetch data from different sources into one source (like into Ztable)

    hi friends,
    As per our client requirements they want to develope an Inventory and an Ontime delivery report in BO on top of Oracle database.
    Situation is some thing like they have ECC 6.0.and they want to collect all inventory and ontime delivery data at one place.According to me that could be one Ztable in which we can gather all data.Apart from that they are going to use Data Integrator in which they can directly fetch the data from R/3 system(They dont want to have BI system) and put all data in Oracle DB.On top of ORacle BO person can develop BO reports.
    My question is how to fetch all data at one place and what are the tables going to be use.
    kindly help me out as its very important project.
    Thanks
    Abhishek

    The following is my standard reply to those who need to get old data from a backup in one account and add it to another account.  The method described here may be applied to your case.  It would be a bit of a long process, though.
    When connected to the account you want to GET data from, Go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off. 
    When prompted choose to keep the data on the iPhone. 
    After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.
    Note that this only affects the "Apple data" like contacts, calendars, reminders, etc.  Many third party apps also use iCloud to store data files there.  These files may be lost in the process, unless the apps also keep the data locally on the device.
    NOTE:  Photos in the photo stream (if you use it) will not transfer to the new account.  It is advised that you save the photos to a computer before performing the account switch. 

Maybe you are looking for