Need to capture all massages

Dear All,
I need to capture all bapi return massages along with some dynamic massages, with signal lights  and need to display in alv grid display. Please let me know the procedure. If possible please send the code.
Thanks and regards,
Krish...................

Hi Krish,
          Move the lines of the return table of bapi to the i_message (internal table) follow the below statement.
APPEND LINES OF i_return TO i_messages.
refresh i_return[].
        then Loop at i_messages as given below.
LOOP AT i_messages INTO wa_messages.
      IF wa_messages-type EQ 'S'.
        l_error_code = '0'.
      ELSEIF wa_messages-type EQ 'E'.
        l_error_code = '1'.
      ELSEIF wa_messages-type EQ 'W'.
        l_error_code = '2'.
      ENDIF.
      CALL FUNCTION 'GET_IMAGE_ICON_CODE'
        EXPORTING
          error_code = l_error_code
        IMPORTING
          icon_code  = l_icon.
      MESSAGE ID wa_messages-id TYPE wa_messages-type NUMBER wa_messages-number
                        INTO v_message
                        WITH wa_messages-message_v1 wa_messages-message_v2 wa_messages-message_v3 wa_messages-message_v4.
      wa_alv_messages-icon = l_icon.
      wa_alv_messages-message = v_message.
      APPEND wa_alv_messages TO i_alv_messages.
    ENDLOOP.
Decalartion for the function module parameters are as below:
DATA:l_error_code TYPE int1,
            l_icon TYPE tv_image,
          v_message TYPE string.
Use the above code, and if you still face any issue please revert back.

Similar Messages

  • Just started with NetBeans IDE, need to capture all keyboard input!

    Hello,
    I discovered that I can only capture keyboard events when my GUI application has focus. Ok, but I need a functionality that can capture all keyboard input, even if my application runs in the background or in the system tray.
    How can I achieve that?
    Regards,
    Mirza

    I know...sorry, didn't mean to imply otherwise.Don't worry about it; I wasn't offended. (I didn't think that that was what you were tying to do.) I was trying to (subtly) take this a different direction. (Was going to write something Solaris specific or perhaps something in ASM that would effectively do what the O/P wanted. Seeing as how Key Loggers only serve one practical purpose - as far as I know - I just wanted to give him code that he could do nothing with.)

  • How to capture all the values(occurrence) using Extraction Rules(correlation) in VSTS web test?

    Hi,
      I am using VSTS 2010 for performance testing and have a question about Extraction Rules functionality.  Requirement below.
    Example :
    Server Response
    <a>1</a>
    <a>2</a>
     <a>3</a>
    <a>...</a>
    we need to capture all the values with same left and right boundary. Along with the number of occurrence from the response. We need pass a random value in the
    index where the index value will be between 0 - count of values with same left and right boundary.
    How to find out the count of values with same left and right boundary.

    Thanks for Adrian's help.
    Hi PChav,
    Based on your issue, I think that the Adrian's suggestion is useful for you, so I suggest you could refer the Adrian's suggestion to check your issue.
    In addition, I suggest you could also try the rogeorge's suggestion to create a custom extraction rule to do this.
    Reference:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ccff9f7a-d5bc-45d5-80eb-c83f9fc0e103/how-to-capture-all-the-valuesoccurrence-using-extraction-rulescorrelation-in-web-test?forum=vstswebtest
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I need to back up my imac running Tiger (no time machine) so that we can upgrade OS. It is set up for multiple accounts.  How do I capture all files in each account using newly purchased USB external hard drive?

    I need to back up my imac running Tiger (no time machine) so that we can upgrade OS. It is set up for multiple accounts.  How do I capture all files in each account using newly purchased USB external hard drive?  Thanks!

    Backup Software Recommendations
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    Synk Pro
    Tri-Backup
    Others may be found at VersionTracker or MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.
    Or you can simply use the Restore option of Disk Utility to clone the drive to the backup:
    Clone using Restore Option of Disk Utility
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

  • Iphoto-I inadvertantly created a smart album.  It has captured all recent photos in it I want to delete it but need to know if this will delete the same photos in their albums?

    iphoto- I accidently created a smart album which is capturing all current new photos.  I put them in their  own album but I can't delete them in the smart album.  Can I delete the smart album without losing the photos in the other albums? larrybksfld

    Yes you can delete the Smaert Album. It will not delete the photos.
    Regards
    TD

  • Capture all SQL statements and archive to file in real time

    Want to Capture all SQL statements and archive to file in real time?
    Oracle Session Manager is the tool just you need.
    Get it at http://www.wangz.net
    This tools monitor how connected sessions use database instance resources in real time. You can obtain an overview of session activity sorted by a statistic of your choosing. For any given session, you can then drill down for more detail. You can further customize the information you display by specifying manual or automatic data refresh, the rate of automatic refresh.
    In addition to these useful monitoring capabilities, OSM allows you to send LAN pop-up message to users of Oracle sessions.
    Features:
    --Capture all SQL statement text and archive to files in real time
    --Pinpoints problematic database sessions and displays detailed performance and resource consumption data.
    --Dynamically list sessions holding locks and other sessions who are waiting for.
    --Support to kill several selected sessions
    --Send LAN pop-up message to users of Oracle sessions
    --Gives hit/miss ratio for library cache,dictionary cache and buffer cache periodically,helps to tune memory
    --Export necessary data into file
    --Modify the dynamic system parameters on the fly
    --Syntax highlight for SQL statements
    --An overview of your current connected instance informaiton,such as Version, SGA,License,etc
    --Find out object according to File Id and Block Id
    Gudu Software
    http://www.wangz.net

    AnkitV wrote:
    Hi All
    I have 3 statements and I am writing some thing to a file using UTL_FILE.PUT_LINE after each statement is over. Each statement takes mentioned time to complete.
    I am opening file in append mode.
    statement1 (takes 2 mins)
    UTL_FILE.PUT_LINE
    statement2 (takes 5 mins)
    UTL_FILE.PUT_LINE
    statement3 (takes 10 mins)
    UTL_FILE.PUT_LINE
    I noticed that I am able to see contents written by UTL_FILE.PUT_LINE only after statement3 is over, not IMMEDIATELY after statement1 and statement2 are done ?
    Can anybody tell me if this is correct behavior or am I missing something here ?Calling procedure must terminate before data is actually written to the file.
    It is expected & correct behavior.

  • How to capture all queries in a log file

    I need a way to capture all queries fired by all my 200+ DAO java objects easily
    in a log file easy debugging purpose.
    Any thoughts?

    I don't know, I always suppress the html output since the
    html it generates isn't W3C-valid in any context I'm designing. I
    use swfobject for my flash files -- thanks for the idea, though!
    Does it enumerate all URLs that are embedded in a flash file's
    actionscript? That seems like it can get rather data-heavy?

  • I need to download all of my photos from my iPhone 4S and my iPad 2 to my MacBook Air. I want to make sure all my photos are not lost and that they do not return to the original devices because of the cloud. Can someone please help ?

    I need to download all of my photos from my iPhone 4S and my iPad 2 to my MacBook Air because there is no more storage space available. I want to make sure all my photos are not lost and that they do not return to the original devices because of the cloud. Can someone please help ?

    Connect your devices to the computer with the USB cable (one device at a time) and import the photos via iPhoto or Image Capture.
    If you have not changed any default settings on your computer, iPhoto will automatically launch when you plug in the device. Then follow the import prompts.

  • Need to capture multiple image paths for responsive design when only one will be displayed at a time

    I'm new to CQ and am having enough trouble following the documentation on image components as it is (why is there no master reference for all this?). I have a requirement where we need to capture three versions of an image and put the URLs into three attributes of a tag. The appropriately sized image will be selected via JavaScript based on the browser/device capabilities. I need to know how to capture those images when seemingly only one at a time can be dropped onto the page. Or perhaps there is a more CQ solution to this.

    Hi,
    You need to customize image component. I mean selected image is a asset in the repository and each asset by default has 3 rendtion generated when the image is uploaded in the dam.
    For example when you upload image.jpg file into the DAM, standard workflow is launched and after a while inside the repository (see paths) are created following renditions:
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.140.100.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.319.319.png
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.48.48.png
    This process can be customized by changing /etc/workflow/models/dam/update_asset.html workflow and modifing "Thumbnail creation" step by adding in the Process tab -> Arguments field new values for new rendition. So for example if you add there [400,400] new rendition will be created in the path
    /content/dam/project/image/image.jpg/jcr:content/renditions/cq5dam.thumbnail.400.400.png
    Next step is to customize jsp for image component. Using path to the drag and dropped image from a component attributes you can easily take all renditions iterating on the /content/dam/project/image/yourimage.jpg/jcr:content/renditions node and then set paths to all renditions in the tag attributes. Then like you wrote using js you can select proper rendition.
    I hope that it hepls you.
    Regards,
    Adam

  • To capture all the objects from an tablespace and restore.

    Hi All,
    I have a situation in the  Schema  refresh process where i may have  to delete a tablespace  and its datafiles.
    Then I have to recreate it as it was before and restore all it objects .
    Is there any way that i can capture all the objects of that tablespace before it is deleted  and then later restore it back as it was .
    Any Expert sugggestion is highly apprciated .
    The Platform is as below ..
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Thanks In Advance .

    There are 2 methods you could use with Data Pump.
    1. tablespace mode export.  expdp user/password tablespaces=<your list here> ...
    2. transportable tablespace mode.  expdp user/password transport_tablespaces=<your tablespace list here> ...
      NOTE:  for #2, you need to have your tablespaces in read only mode, then you need to copy the data files, and the
                    tablespaces need to be self contained.
    Hope this helps.
    Dean

  • Need to capture RWB alerts to CCMS

    Dear All,
    I have configured for Alerts in RWB to capture Integration and Adapter Engine failure messages.
    I am getting a detailed description of alert text in the alert inbox.
    Example:Error found in MAPPING.EXCEPTION_DURING_EXECUTE for the MAPPING Category in the Message ID XXXX for the Interface XXXX from the Sender Party XXXX.
    Now my requirement is I need to capture the detailed text message in CCMS.
    Note: I have added the rule CCMS_GET_MTE_BY_CLASS and specified R/3 system ID (SID) and MTEClass as SXI_RWBAlerts in RZ20.
    I am getting only the Number of active alerts for the defined Alert Category and the number of alert rules created in RWB.
    Number of active alerts 2
    Assigned alert rule: 1 Alert for Application Category error
    Assigned alert rule: 2 Alert rasied for all IE/AE failures
    What is the method need to be assigned to capture the detailed error text messages from RWB?
    Regards
    B.Dheepa

    Hi
    CCMS alert guide- May be useful in your case..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/aeeda66b-0a01-0010-6884-876fac1c4a2d
    Alert Monitoring and Notification Mails
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/ae8d4243a5de54e10000000a155106/frameset.htm
    this link contains a list of conatiner variables that can be used while configuring Alerts,
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
    regards,
    Surya

  • Flex automation - need to capture the mousemove

    hi All,
         I am creating Whiteboard application. I want to test my application through automation, but i can't capture the mousemove event.
    Inside the Whiteboard i have drawing fucntionality, this functionality require the mousedown, mousemove and mouseup events. I need to capture these events.
    Please help me.
    - Rajan

    I tryed that method.
    This is my sample file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml"applicationComplete="init();"
    >
    <mx:Script>
    <![CDATA[
    import mx.automation.Automation; 
    import mx.automation.IAutomationManager; 
    private function init():void
    bindDraw.addEventListener(MouseEvent.MOUSE_DOWN, _MouseDownHandler,
    false, 0, true);}
    private function _MouseDownHandler(evt:MouseEvent):void{
    this.systemManager.addEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false, 0, true); 
    bindDraw.addEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
    false, 0, true); 
    bindDraw.graphics.lineStyle(3, 0, 1);
    bindDraw.graphics.moveTo(evt.localX, evt.localY);
    private function _MouseMoveHanlder(evt:MouseEvent):void{
    bindDraw.graphics.lineTo(evt.localX, evt.localY);
    private function _MouseUpHandler(evt:MouseEvent):void{
    bindDraw.graphics.clear();
    this.systemManager.removeEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false); 
    bindDraw.removeEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
    false);}
    private var _count:Number = 0; 
    private function clickHandler(evt:MouseEvent):void{
    evt.currentTarget.label=
    "clicked "+(++_count);}
    ]]>
    </mx:Script>
     <mx:Button id="b1" label="click me" click="clickHandler(event)"/>
     <mx:Canvas showInAutomationHierarchy="true" id="bindDraw" width="100%" height="100%" />
     <mx:Canvas id="fff" width="100" height="100" backgroundColor="34233"/></mx:Application>

  • Developer 10g Capture All CHANGED Item Values

    Still learning this application one module at a time so be kind :)
    What is the most efficient way to capture all the data block item values that have changed on the form at say the pre-update trigger?
    I'm thinking of testing for:
    RECORD_STATUS = 'CHANGED'
    and if true then assign the first item to v_item using:
    v_item := 'block_name' || '.' || get_block_property('block_name',first_item)
    Then loop through each item in the block and test the DATABASE_VALUE against the form value and if they are not equal the assign the DB value to a variable and the form value to a variable and build a string of text to be displayed to the user by using:
    IF GET_ITEM_PROPERTY(v_item,DATABASE_VALUE) <> :BLOCK_NAME.ITEM_NAME THEN
    v_dbvalue := GET_ITEM_PROPERTY(v_item,DATABASE_VALUE);
    v_frmvalue := :BLOCK_NAME.GET_ITEM_PROPERTY(v_item,ITEM_NAME);
    v_string := v_string || 'Old value was ' || v_dbvalue || ' and new value is ' || v_form value;
    Then advance to the next item by resetting the v_item variable to the next item using:
    v_item := 'BLOCK_NAME' || '.' || GET_ITEM_PROPERTY(v_item,NEXTITEM);
    And repeat the process until there are no more items in the block:
    EXIT WHEN 'BLOCK_NAME' || '.' || NULL;
    So what would be the most efficient way to do this?

    The form holds information that is inserted by a technician then the manager of the technician has to approve the info and submit it to the director for final approval.
    So what I do is capture any of the changes that the technician makes and put that sting into an email and send it to the manager so they know that changes were made to the record and they can approve or decline the changes before submitting it on to the director.
    My successful POST-UPDATE trigger at the form level ended up like:
    <<
    p_html := 'Catalog item ' || :ITEMS.MANUFACTURER || ' - ' || :ITEMS.MODEL_DESC || ' ' || :ITEMS.MODEL || ' has been modified and the results are as follows: <br> ';
    v_item := 'ITEMS' || '.' || get_block_property('ITEMS',first_item);
    <<item_loop>>
    loop
    exit when v_item = 'ITEMS' || '.' || null;
    v_dbvalue := GET_ITEM_PROPERTY(v_item,DATABASE_VALUE);
    v_itemname := GET_ITEM_PROPERTY(v_item,ITEM_NAME);
    v_block := 'ITEMS';
    v_name := v_block || '.' || v_itemname;
    v_frmvalue := NAME_IN(v_name);
    IF v_dbvalue <> v_frmvalue THEN
    p_html := p_html || 'OLD VALUE WAS: ' || v_dbvalue || '<br>AND NEW VALUE IS: ' || v_frmvalue || '<br>';
    END IF;
    v_item := 'ITEMS' || '.' || get_item_property(v_item,nextitem );
    >>
    The p_html variable is the string that I send to the email package to send out via our mail service.
    Maybe this will help someone with a similar need.
    Cheers,
    Max

  • Need to capture edited values ALV

    Hi All,
    Iam working with OOALV and I need to capture the edited values of ALV.
    Here Iam successful by capturing edited values in first time.
    i.e, Execute the program edit on row then Save I able to capture the row in PAI and I save it in dbtab and again come to alv screen and now I will edit some other row . But, this time Iam unable to capture the edited row.
    Here I used check_changed_data method to capture..
    Pls help me in this regard.....
    Thanks,

    >
    > i.e, Execute the program edit on row then Save I able to capture the row in PAI and I save it in dbtab and again come to alv screen and now I will edit some other row . But, this time Iam unable to capture the edited row.
    >
    > Here I used check_changed_data method to capture..
    are you using REFRESH_DISPLAY method.
    in the data_changed after the population.
    And where you are calling that method
    if it is in PAI , in the beginning then that would be fine. You need to use the REFRESH_DISPLAY after the update and you need to call the FLUSH method

  • ODI CDC using Logminer - how to capture all changes for one PK

    Hi,
    Let me explain our scenario and challenges we are facing -
    *1.     Captures all changes in CDC –*
    We are using CDC (LOGMINER) to capture change. Currently current ODI code capture latest change happened during last execution.
    Now requirement is to capture all changes happened after last execution cycle.
    To achieve this, can you please suggest what changes we need to do in current code.
    *2. Performance Improvement* - Current CDC can handle 400 TPS (Transactions per second, here transactions means single record) and we are looking for 2000 TPS
    we are expecting 15 million records for INIT load and 7-8 million records on daily basis for CDC
    What needs to be done to improve the performance. In case if you need more details to answer this, please let me know.
    Oracle database version at source and target - 11g
    ODI - 11g
    Thanks in advance.
    Regards,
    Dinesh.

    Hi Dinesh,
    I have some experience with ODI And Logminer / Streams.
    Can you confirm what JKM you are using?.
    For your 1st point - the logic to only get the latest update is contained within the JV$ / JV$D view , you can edit the definitions of these views if you want to bring through all transactions - there should be an SCN number in the change table you can order by if you are interested in the order the transactions occurred - I assume you are otherwise your target DB will get out of sync.
    As for performance - Have you tweaked the Streams settings ? How many Change sets do you have ?

Maybe you are looking for

  • (DocumentBuilder).parse return null under jdk 1.5.0

    I would like to understand why the following code return a correct Document instance if it running under jdk 1.4.2 and instead return null if it running under jdk 1.5.0. Thanks! F. import java.io.IOException; import java.io.StringReader; import javax

  • Ocspd issue, causing repeated log errors.

    I'm fairly new to Apple servers and have recently installed a new mac mini server with Lion OS Server. The server seems to intermittently slow down or refuse to send receive email for a while.  Looking at the log files I have noticed the following er

  • Console not seeing Media Centre when wired through...

    I have an issue that is causing no end of problems. My current wired network and wifi SSIDs BT Home Hub 2----- DHCP - Wifi 802.11g only {SSID}OLD   |             |   |           Sky HD Box (Wired)   |           XBOX360_1 (Wired)   | TP-Link WR1043N r

  • Differences between type -1,type-2,type-3,type-4 jdbc drivers ?

    in what situations they will use?

  • A little help for my xmonad configuration???

    i'm totally new with xmonad, and i'm all confused with this problem... it says that the last statement in a 'do' block must be an expression or something... i'm just following http://thinkingeek.com/2011/11/21/simpl … en2-conky/, everything goes righ