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.

Similar Messages

  • Hi this message appears after 2 hours downloading Mavericks : an error occurred while extracting files from the package "mzps4135638417199433253.pkg"

    Hi this message appears after 2 hours downloading Mavericks in App Store :
    an error occurred while extracting files from the package "mzps4135638417199433253.pkg"
    Same with "CMD + R"
    Help...

    It sounds to me like your Internal Hard Drive is failing.
    I recommend you buy a new one, that is a good candidate for replacing the old one, but install it in an External enclosure and Install a fresh Mac OS X on it from the DVD. You can boot your Mac from any attached drive.
    The new System can be used to get some work done, check your emails, and takes the pressure off resolving this immediately. You can also attempt to salvage files off the old drive if needed.
    Once things seem to be working, then move the new drive inside the computer. Failures at this point may be due to bad cable, which has been a problem in some of these MacBooks.
    Use security erase, write Zeroes, one pass, to re-write every block on the old drive. Any block discovered to be bad will be replaced with spares the drive holds in reserve for this purpose. If more than 10 blocks are pared on one pass, "Initialization Failed!" will be the result. Although you can try the erase again, there is some question whether you want to trust this drive with your precious data.

  • Assign message class to ABAP Objects class in 4.6C

    Hello SDN,
    I would like to assign a message class to an ABAP class (as I'm used to in newer SAP releases). Unfortunately, in 4.6C there is no such option on the properties tab of se24.
    Is there any other possibility  to assign a message class? Old MESSAGE-ID statement or something like that? Or do I have to mention the actual message class in every single message-statement (f.e. via constant).
    Thanks for your advice
    Bjoern

    Sure you can handle PBO and PAI of screen using objects,  take a look at transaction MIGO,  its full of it.  The only thing is is that you can not use the "CALL SCREEN" statement inside your objects.
    Regards,
    Rich Heilman

  • Error when extracting data from ETL - Missing messages and missing InfoIdoc

    Hi All,
    We are using BW 3.0 and extracting data from other source systems through Informatica Powercenter (ETL). The system is working fine but when we try to extract data on 31st Dec , we get the following error. Only this load gives the error and all the other load to other data targets are going fine. All the data are one-to-one mapped from ETL to BW.
    Error messages from Monitor -Status tab:-
       "InfoIdocs missing; external system
       Diagnosis :- InfoIDocs are missing. The IDocs are created in BW with non-SAP systems as source    
       systems that transfer the data and metadata to BW using BAPIs. Since the IDocs are missing, a   
       short dump in BW probably occurred.
       System response:  No selection information arrived from the source system"
    Error messages from Monitor -Details tab:-
        Missing message: Number of sent records,   Missing message: Selection completed
    Highly appretiate your suggestions.
    Vinod.CH

    Hi Rathy Moorthy,
    Thank you very much for your reply. The source system connections are OK and we are able to load data to other Data targets from ETL, we have issue only with this this particular load. The load extracts data and I have loaded the data from ETL to PSA and have checked the data content and it is correct. But when I update the same data to the target I get this error. I have also tried to update from PSA to target and also directly from ETL to target.
    Appretiate your suggestions.

  • Can I use message class(from se91) in BSP applications

    Hi,
    Can I use message from message class(se91) to display in pages of BSP application.
    Best Regards
    Rayudu

    Hi,
      Thanks for response.
    How can I get se91 message in onInput processing?
    I understand that for long texts i can use OTR texts. Weather I need to maintain OTR texts for simple error messages?
    Best Regrads
    Rayudu

  • Message text from message Class need to Display

    Hi All,
    i am getting Message Class and the message Numbers in an Internal Table.
    The message Text for that Number in the message class i need to Display in Out Put.
    Please let me know the procedure How to Display the message text
    Please Suggest the Code if any Function module Exists...
    Regards,
    Reddy

    Hi,
    Are you not able to use the FM "BALW_BAPIRETURN_GET2"?
    The import parameters for this FM are
    TYPE - Message Type (can be error/success.info etc)
    CL - Message Class
    NUMBER - Message No
    PAR1 - Message Place Holder1, if any exists
    PAR2 - Message Place Holder2, if any exists
    PAR3 - Message Place Holder3, if any exists
    PAR4 - Message Place Holder4, if any exists
    You will get the message text information directly from the export parameter RETURN-MESSAGE.
    Regards,
    Ganga

  • Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Hey corrafromlondon,
    Thanks for the question. After reviewing your post, it sounds like the installer file isn't working. Have you tried deleting the installer and redownloading the installer? I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    How to install OS X Yosemite on your Mac - Apple Support
    you can find the Yosemite installer app in your Applications folder or Launchpad. 
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Unknowingly a message class "C2" (standard class) was deleted from SE91

    Dear All,
    Unknowingly a message class "C2" (standard message class) was deleted from SE91 trnsaction in development client, subsequently I have reinstated from Quality system, however the original language has become En insted of DE.
    So please suggest the procedure to reinstate the same in development system.
    Does it have any impact on hot patch application.
    Thanks,
    Kumar.

    Hello,
    You have posted a question that is related to system transports. Unfortunately this category is not related to these kind of questions. SAP TM deals with logistics in the real world - moving pallets, containers, loading trucks, etc.
    To learn more about SAP TM please visit [http://service.sap.com/scm-tm|http://service.sap.com/scm-tm]
    Therefore I will now move this thread to the category Software Logistics. Thank you for your understanding.
    Kind regards,
    Nico van Os.

  • 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

  • Which message class is this message from?

    Hi All,
    is there a way to find to which message class does a particular message belong to? for ex: i wanna know the message class of Message no. 00055 (Fill in all required entry fields) i get this message when i try to bypass any manadatory field while maintaining any infotype in PA30.
    When i go to se91, there are so many classes, i cldnt find to which message class this error message belongs to.searched all classes which search string "infotype" business logic/checks etc. But cldnt find this one.
    any ideas?
    thanks in advance.

    Dear Hruser,
    Go to table T100.
    Put message number & message text , you will get your message
    class in ARBGB (Application area).
    Cross check in se91.
    The message you have given is from message class 00.
    Kindly allot points in case useful.
    Regards,
    Darshan Mulmule

  • Extract messages from E50

    Hi all,
    Please help me. I want to extract messages from my E50 phone to store them on my computer. Does anyone know how to do that?
    Thanks in advance.
    dtngn

    If you browse to message in the Nokia Phone Browser you can then drag the messages to a folder on you hard disk, etc.
    This creates a .vmg file which can be viewed with notepad etc.
    BEGIN:VMSG
    VERSION:1.1
    X-IRMC-STATUS:READ
    X-IRMC-BOX:INBOX
    X-NOK-DT:20070711T175304Z
    BEGIN:VCARD
    VERSION:2.1
    N:
    TEL:+44xxxxxxxxxx
    END:VCARD
    BEGIN:VENV
    BEGIN:VBODY
    Date:11.7.2007 18:53:04
    This is the body of your sms message
    END:VBODY
    END:VENV
    END:VMSG
    John32

  • How to copy message class from SAP 4.7 to SAP ECC 6.0.

    Hi all,
    I want to copy message class created in SAP 4.7 to SAP ECC 6.0.,
    is it possible? if yes, can anyone suggest the procedure  to do it..
    Thanks & Regards,
    Vaikunt.
    Edited by: vaikunt on May 7, 2010 8:03 AM

    Hi Kiran,
    See here the System Version are entirely different. The one is 4.6C and other is ECC 6.0. See there will not be any link between 4.6 and ECC. When we will do SCC1 means the same system divided in to 2 clients means
    100 is development and 200 is the testing system..
    All the things you made in 100 will be there in 200 system. But the system depenended data you need to pass by doing theSCC1.
    Escpecially the Script .
    With Regards,
    Sumodh.P

  • XMES not displaying the text from message class/number

    Hi,
    I have used the operation XMES in a pcr to generate a warning when a particular wage type scenario is in play.  I am using the XMES with the parameter O so that it operates as function MESSG.  The Operation reads as: XMESOZZ001.  I also set up the short and long text for the message class in SE91.  When the payroll is processed, the warning comes through with the Pernr, payroll, period parameter and the ZZ001; however the text does not come through.  I tried also setting it up with the country message class 10 and that does not work either.  While debugging discovered that there is no coding actually moving the corresponding text to the log_msg.  Was this programming meant to be used in ECC 5.0 and on?  There are no updates beyond 4.7 so I am wondering if we are missing something in our coding that others may have or was the intention for the customer to build in its own coding?  Was anyone else able to get the actual text to display in the log??
    Thank you,
    JLM

    Hello:
    You need to use customer exit in Opertion XMES.  Go to Pe04 for XMES and look at code.  When "ZZ"  ZZ customer exit (ZZxxx).    You need to use the same in Payroll rule to pop up the message in the log as described in SE91 for custom message class.  Follow the syntax given in documentation.
    Get this done by a developer.
    Thanks
    Bhavani

  • How to extract data from BPC InfoCube via ABAP program?

    Hi experts!!
    I tried to extract data from a BPC InfoCube via ABAP program, but I did'n have succeed.
    I used the function 'RSDRI_INFOPROV_READ' to extract data from standard InfoCubes such as '0COPC_C07' and it run OK! However, when I change the InfoCube name to '/CPMB/WAIX8NE' (BPC InfoCube), everything goes wrong...
    Is there any difference between extracting data from BPC and standard InfoCubes?
    Thank you all!

    Moderator message - Welcome to SCN.
    But please do not cross and duplicate post.
    Thread locked.
    Rob

  • Issue in maintaining Long Text in Message Class

    Hi
    For Note implementation 1413492, I have to maintain long text, when I click on Long Text , I get a pop-up Create Modification , with 2 options for Template Type (1) Original Text (2) Template (With Headers)
    Can anyone let me know how to proceed further, whatever name I give for the Modification, I am getting Error Message saying 'Enhancement Name violates the namespace convention (Note 989653)', I have tried unchecking the Self Explanatory check box as well, but still I get the same error message.
    Below is the Long text I have to maintain class FR, message number 533
    7. Create new error messages in the message class FR:
    Call transaction SE91, enter the message class FR, and choose "Display" and
    then "Change". Enter the following new messages:
    Message Message short text:
    533 Error while calling RFC destination
    534 Contract Accounts Receivable and Payable is not installed in the
    system
    535 For company code & there were & data records transferred from
    FI-CA
    536 Error during data transfer from FI-CA for company code &; error
    text:
    Set the "Self-explanat'y" indicator for messages 535 and 536.
    Enter a long text for messages 533 and 534:
    Long text FR 533:
    CAUSE
    An error occurred when testing the RFC connection to Contract Accounts
    Receivable and Payable. The message text is:
    &V1&&V2&&V3&
    SYS_ADMIN
    Check the settings of the RFC destination &V4&.

    Hi Ryan,
    Extract from note 989653;
    Note:                                                                               
    The name of the modification object must start with:                                                                               
    o  'Z'/'Y', or                                                                               
    o  the customer namespace available in the system (TRNSPACE table).                                                                               
    Otherwise, message 645 will appear because the SAP namespace is not   
    permitted.                                                                               
    My suggestion would be to start the name with a Z.
    Regards,
    Nick

Maybe you are looking for