Report Query - Highlighting the cells that have a new value...

hello all,
I have to display a report in alv in web dynpro abap.
In that I have to display two fields and both the fields are locations of different months.
If the location is different than the previous one then i have to display cell with the new location in red color or highlighted.
How can I achieve this.???
Only for the changed ones it has to be highlighted or different color.....  I repeat.
Happy Coding.

IF want to display 2 locations , one  corresponding to location of previous month  and other corresponding to location of curr month  ,and if 2 are not same then current month location should be highlighted or displaying in red color . If this is what u want to do then try following .
1]    In context where  ur data to be display exist  - In LIST NODE along with attribute  Location_previous_month , Location_current_month add attribute "COLOR" TYPE WDUI_TEXTVIEW_SEM_COL .
2]   Find out the column which has to be marked with a different colour based on its content ( Location_ Current_ Month in your case )  . Assign the context attribute "COLOUR"  to the "Cell Design Fieldname" attribute of the respective column. This can be done while setting Column attributes for each of the ALV Columns
IF find any problem in implementing above step then go thro' this link :
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Web%20Dynpro%20ALV%20-%20Change%20Cell%20Colour%20based%20on%20Content
3] In the method to fill the data to  be displayed .
  CREATE INTERNAL TABLE OF TYPE List node
FILLINTERNAL TABLE CREATED ABOVE  ( SAY ITAB  ) WITH VALUES FOR  LOCATION_ CURRENT_ MONTH  , LOCATION_PREVIOUS_MONTH .
FILL COLOR VALUE FOR EACH ROW OF ITAB AS FOLLOW 
LOOP AT  ITAB INTO LS_ITAB .
   IF LS_ITAB-LOCATION_CURRENT_MONTH  <> LS-ITAB- LOACTION_PREVIOUS_MONTH .
                 COLOR = 06 ." 06 IS COLOR CODE 
   ENDIF .
4] BIND THIS INTERNAL TABLE WITH NODE LIST_NODE .
  DATA NODE_LS_NODE TYPE REF TO IF_WD_CONTEXT_NODE .
NODE_LS_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'LIST_NODE' ) .
         NODE_LS_NODE->BIND_TABLE ( EXPORTING
                   NEW_TAB = ITAB ).
Hope thid will help .
THKS ,
RUSHIKESH
Edited by: RUSHI123 on Oct 31, 2009 8:59 PM

Similar Messages

  • Highlight a field that have been changed

    Hi,
    I have to highlight all cells that have not been changed in a input-ready query in a webtemplate. But I don't know how to do this. Can anybody give me a hint?

    Hi.
    I have no ready solution with jvascript - it was only an idea.
    Take a look at [following document|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80220fed-0e6d-2b10-bbb9-f6af76dee0cc].
    Here you can find very long javascript code when one of the functions (sapbi_rig_cp_highlight) does highlighting of selected cells.
    I sure, if you are familiar with javascript, it is possible to take this function and modify as needed.
    Regards.

  • Can you select the row in a table view without highlighting the cell?

    I have an an app with a table view which is presented modally. Cell selections in this table are saved in the parent controller so that they can be reselected if the table is reloaded after being dismissed.
    When the cell is first highlighted, I want to momentarily highlight the cell and have it fade out, which I do by unselecting the cell from the modal view controller's didSelectRowAtIndexPath by calling setSelected:animated on the table view cell.
    However, when I present the table view controller modally again and want to display the previously selected cell as selected, I don't want the cell background to be highlighted, and I'm having trouble doing this.
    In order to make sure the table view knows the cell is selected, I am calling selectRowAtIndexPath. I need to make sure the cell is selected so that I can set/unset the cell's accessoryType. However, this has the sideeffect of highlighting the cell too, which looks weird and confusing to the user.
    I've tried things like temporarily setting the cell's selection style to none, but while that stops the cell background from highlighting? I've tried setting the selectionStyle to UITableViewSelectionStyleNone, but while this prevents the cell background from highlighting, the cell text still changes to white, so it the text is invisible against the white background.
    Is there a easy way of setting a cell to selected in the table view without also changing the highlight and text colour of the actual cell? Immediately setting the cell to be unselected still makes the highlight visible for a split second.

    I tried that, but setting the highlighted property doesn't seem to affect it.
    I figured out how what I was doing wrong though. I was setting selection style UITableViewSelectionStyleNone, selecting the cell, then setting the selection style back to whatever it had previously been. This causes the background not to draw highlighted, but the text and accessory type to still draw highlighted.
    In order to fix this, I moved the code to set the cell selection style to whatever it had previously been to the didDeselectRowAtIndexPath method.

  • Report with the alerts that have been thrown

    Hi all!
    We are using the XI alerts to send several e-mails according to the alert that have been thrown.
    Now, I would like to know if some report could be automatically generated showing the information of these alerts. Is it possible?
    Thanks in advance.
    Regards,
    Sergi

    Hi Sergi !
    That's strange. I assume you tried with a wide date range, just to be sure that it is not a filter issue.
    Try this:
    go to TX 'ALRTCATDEF', locate your alert category and write down the name. Maybe you can get it from the RWB Alert Inbox, I'm not sure. Anyway, in the ALRTCATDEF tx there will be one or more alert categories already defined. Also you can find the alert category in use in the part of the scenario where the alert is triggered.
    Then go to tx SLG1, in object filter keep the "*" and this time complete the "External ID" field with the name of the alert category, matching the case.
    Try to find the alert this way.
    Regards,
    Matias.

  • Report to display the contracts that are to expiry

    Hi experts,
                           I have to create a report to display the contracts that are to expiry for a given time period.
    can anybody tell me what are the tables and fields  involved. the module is MM.
    Thanks.

    Hi,
    you can refer the given below link
    http://www.sapgenie.com/abap/tables.htm
    Thanks
    Arun

  • Hi,  We are developing quite a few excel worksheet reports. The reports dont show the cells if contain formulas ( when opened in iPad or ipod  ),  is there any good solutions .

    Hi, 
    We are developing quite a few excel worksheet reports.
    The reports dont show the cells if contain formulas ( when opened in iPad or ipod  ),
    Is there any good solutions .
    Thanks.

    There is no version of Excel for iPads.  iPads come with something that lets you view the contents of Excel files but it implements only the common easy features and there are (literally) hundreds of things you can do in Excel that it doesn't know how to show on the screen, including some functions.
    If you intend to work with spreadsheets on an iPad I suggest you buy Numbers for iPad
    http://www.apple.com/apps/iwork/numbers/
    which understands more (but still not 100%) of the things that Excel does.  It is so cheap that you can probably afford to buy a copy just to see whether it does what you want.
    If you are doing things with spreadsheets and intend to be primarily working on iPads then I suggest you actually use Numbers on a Mac as well, rather than using Excel at all.

  • Query Help - PO's That Have Not Been Sent

    Is it possible to make a query for PO's that have not been sent? I tried a few things and couldn't get it to work.

    I think I understand what you mean let me try and answer that,
    Yes the order comes into SAP from our website then we have someone who then creates the PO based off the sales order. During that process the person who creates the PO then sends it via email in the messaging system to the vendor. My end game is to be able to run some type of query where we could see if that person has missed any.

  • How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them.

    How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them before updating.

    Thanks. This seems to have worked easily.

  • HT201272 How do i see a list of the apps that have been downloaded and the dates and times and amounts?  Tried to follow the on-line thing but i want to compare what has been downloaded with my visa bill.  HELP!!

    How do i see a list of the apps that have been downloaded and the dates and times and amounts?  Tried to follow the on-line thing but i want to compare what has been downloaded with my visa bill.  HELP!!

    See this -> http://support.apple.com/kb/HT2727

  • I have a number of apps on my Ipad2 that no longer have sound. I have checked setting on my ipad and the settings on the apps that have a settings and the sound and volume are ok. Do I have a virus in some apps?

    I have a number of apps on my ipad2 tha no longer have sound.  I have checked the ipad settings and the apps that have settings and all sound and volume are ok.  Do I have a virus?  Pandora sound is ok. It seems mostly to be games...angry birds, tap tap, and educational games for little ones. Any suggestions?

    There aren't any viruses for iOS devices. Have you got notifications muted ? Only notifications (including games) get muted, so the iPod and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085

  • Shutting down my iPhone 4S no longer removes all the apps that have accumulated on the multitasking bar. What happened?

    Maybe I imagined it, but I could have sworn that holding down the home button and sleep button at the same time until the slider icon appears at the top of the screen, and then engaging the slider icon,  completely shuts down your iPhone and also removes all the apps that have accumulated in the multitasking bar.  But, that does not work anymore on my iPhone 4S running iOS 5.0.1 (9A405).  The iPhone shuts down, but the apps in the multitasking bar remain after you turn the phone back on.  Did I imagine this feature in the past, or has something happened that no longer enables this functionality?  Closing all those open apps in the multitasking bar one at a time is a PIA. 

    imanfromsweden wrote:
    Please apple support do you people have a convincing answer for us? Is there a solution? My phone is only 2 years old and was (2 hours ago), in top condition!!
    Please help....
    On belhalf of my fellow volunteers, the answer is, "We'll try our best." 
    My advice is to try not to treat this like it is a paid service provided by compensated professionals.  Ask nicely and one of the nice folks here might take some time out of their weekend to offer advice.

  • In a PrC, how to delete data from the PSA that have been loaded in Prcs Chn

    Hello,
    In a process chain, how can I delete the data from the PSA that have been loaded within that process chain. I don't want to delete data that belongs to other business units that use the same datasource.
    Thanks,
    Andre

    I dont think so you can achieve that, PSA is actually datasource dependent.
    One you load from a datasource to PSA.That is accesible by multiple DTPs if you have created so.
    As you said "I don't want to delete data that belongs to other business units that use the same datasource."
    If you delete the PSA, you may have to repull the data from source system again and if thats delta it wont work out.
    As said by above ppl you can include the "Delete PSA" in process chain but choose some 15 days buffer.
    Hope this helps.

  • I have just subscribed for a monthly billing for my acorbat pro XI, the problem is i have clicked on the link on the email that have sent me to activate it but its still not allowing me to acess this and see my PDF's

    i have just subscribed for a monthly billing for my acrobat pro XI, the problem is i have clicked on the link on the email that have sent me to activate it but its still not allowing me to acess this and see my PDF's, how to i activate my new license?

    Can you explain the problem in more detail - "not allowing me to access" isn't clear to me. If you get any errors, please give the full wording. If you just don't seem to have any useful functions under TOOLS, make sure you are NOT still running Adobe Reader.

  • My table of contents does not use the entry style I select for words in the paragraph that have character styles applied to them in the chapter, so some of the letters are showing up as green, which is fine in the chapter but not in the TOC.

    My table of contents does not use the entry style I select for words in the paragraph that have character styles applied to them in the chapter, so some of the letters, specifically parameters, are showing up green, which is fine in the chapter but not in the TOC. I can manually fix this in the TOC by changing the character style to none after the toc  has been generated, but I don't want to do this.

    What application are you running? Please ask this in the forum of the product you're using.

  • Apps in the store that have zero reviews, yet 4.5 million downloads

    "I see many apps in the store that have zero reviews, yet they are top of the list as displayed by Apple.
    One caught my eye as there own website claims 4.5 million unique downloads. Yet the same app has no reviews in the App store?
    What gives? I may not be one to dolots of  reviews but after 4.5 million surely a few people would have bothered to send in a review?
    No link to software as I do not want to be accused of promoting it.
    So whats the point of a review system if you don't publish them?

    That's just great, defend the app by insinuating that the purchasers are stupid.  To answer your question of what else one might need --
    1)  The portion of the title that is first presented to the user should make it clear that the app is not Microsoft Word 2010.
    2)  The icon should not contain the W in the blue box.
    Here, for example, we have a legitimate book on Microsoft Word, namely "Word 2010 for Dummies."  Notice that the images on the cover are totally different from Microsoft's icon. 
    http://www.amazon.com/Word-2010-For-Dummies-Gookin/dp/0470487720/ref=sr_1_3?s=bo oks&ie=UTF8&qid=1336054960&sr=1-3

Maybe you are looking for

  • Report Queries Rendering Issue

    I'm having real trouble generating RTF reports from Report Queries using BI Publisher. When i copy the url into a button link the output is below {\rtf1\ansi\deff0 {\fonttbl {\f0 Arial;} {\f1 Times;} {\f2 Courier New;} {\f3 Helvetica;} } {\colortbl ;

  • How to find path of third party applicatoin

    we can run any third party application using Process p = Runtime.getRuntime().exec.... etc But exact location of that program executable I do not know because it is upto user where he installs C drive or D drive or so. How to find the path of that th

  • Streaming videos from Cloudfront in Captivate 6

    Hi, I'm really hoping someone out there can explain this to me in as simple a way as possible. I have a large project with 10 video files at various points throughout the course.  I've run some tests with the videos set to progressively download, but

  • Urgent change with unlock tasklist

    Hello everyone, the problem occured to our customer with customizing urgent change. They want import transport request manually through tasklist, but if urgent change is in status "Authorized for Production", tasklist is still locked. I can release t

  • Problem when showing MS power point files on browser.

    Hi      I wrote the code in JSP to show MS power point files on browser. And I logged session for security as follow. <%@ page language = "java" import="javax.servlet.*, java.util.*, java.io.*" %> <%      String filename = request.getParameter("fileN