Conditional font in report table

Hi,
I was hoping someone could help me. I am trying to change the color of the font in a report based on if the result returned in that column (e.g. date) meets a certain condition (e.g. is 5 days away from the start or end date range entered in a prompt). Can you tell me if this is even possible?
Thanks
Una

Try this,
Change the column format to HTML,
Case when Table1.date between timestampadd(sql_tsi_day,-5,cast('@{PV_Date}' as date)) and timestampadd(sql_tsi_day,5,cast('@{PV_Date}' as date)) then '[font color=Red>'||cast(Table1.date as char)||'</font]' else cast(Table1.date as char) end
replace the tags..
Thanks,
Vino

Similar Messages

  • Complex conditional display in report table

    Hi,
    I built a report in a region, and want to make one of the columns conditionally display based on attributes from two other columns in the table. The drop-down for the conditional display only lets me refer to the current item. Is there a way I can reference the other cells in that table row in a PL/SQL expression (e.g.: something akin to #COLB# is not null and #COLC#>1000 ?)
    Related question: I'm assuming the reason I can't directly change the source for the report region and can only modify it from the Query Definition tab is because I used a wizard to create it. Is there a way to "undo" this and make the source for the report fully editable? That would also solve the problem, since I could just add a function-derived column to the query.
    Thanks in advance,
    Keith

    One final update and rephrasing of the problem, because maybe there's another way to solve this.
    I have a column in a report that links to another page, but the link is only shown if a certain condition is met (which is based on other cells in this table row). I can test for those conditions in my original SQL query, so that a null value in my link column results in no user-clickable link being created. (I have to make sure that a null value appears as null on the report page, too.)
    This works fine if the link text is just that: text. Because not meeting the condition returns null, so no text == no link.
    Now the only problem I have comes if I want to use an icon (e.g.: the edit icon) instead of link text.
    What I really want is for the icon to only appear if a certain condition is met. However, the icon replaces the column value so I can no longer use a null value to prevent the link from appearing.
    The original question asked whether I can use other report cells (#foo#) in the conditional display for a cell. If that's not possible, any suggestions on how to achieve the desired effect without resorting to JavaScript?
    Thanks.
    Edited by: kswartz on Jun 20, 2009 1:56 AM

  • Condition type wise report

    can we have condition type wise report of all billing documents executed
    thanks
    srinivasan

    See u r prices are in KONV & Billing Tables are VBRK & VBRP
    VBRK is Header Table
    VBRP is Detail table
    Now enter billing document number in VBELN field of VBRK & extract KNUMV i.e Document Condition.
    Also enter billing document number in VBELN field and material number in field of MATNR & extract Item Number POSNR,
    So now u are having Document condition & item number
    Put this two things in KNUMV & KPOSN fields of KONV & u will get all values in KWERT according to Condition Type.
    I hope this will help u.
    Regards
    SWAPNIL

  • Using where condition with dynamic internal table

    Hi Friends.
    How to use where condition with dynamic internal table ?
    Regards,
    Amit Raut

    Hai Amit
    REPORT  ZDYNAMIC_SELECT                         .
    TABLES: VBAK.
    DATA: CONDITION TYPE STRING.
    DATA: BEGIN OF ITAB OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    END OF ITAB.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    CONCATENATE 'VBELN' 'IN' 'S_VBELN.'
    INTO CONDITION SEPARATED BY SPACE.
    SELECT VBELN POSNR FROM VBAP INTO TABLE ITAB
    WHERE (CONDITION).
    LOOP AT ITAB.
    WRITE 'hello'.
    ENDLOOP.
    Thanks & Regards
    Sreenivasulu P

  • How to Use MAX condition using Query Report

    Hi SAP Abap Expert,
    Can we use the MAX condition in Query Report (SQ01/SQ02) ?
    I have created one sample query using table VBRP and VBRK then i need to use max condition to get the MAX record in VBELN.
    Please Help ???

    Hi Ashishsingh,
    According to your description, you want to know how to use MAX function in SQL Server Analysis Services MDX Query, right? In this case, please refer to the link below which describe the syntax and sample of MDX function.
    http://technet.microsoft.com/en-us/library/ms145601.aspx
    http://www.mdxpert.com/Functions/MDXFunction.aspx?f=64
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Conditional Format in Pivot Table

    Thanks in advance...
    I created report like below in pivot table
    _____Year 2009
    ______Period 3
    Name Mark
    Aju__ 100
    Alex_ 75
    Mick_ 80
    Rabi_ 90
    sam_ 80
    from this report I need to highlight the entire row of 'Alex' and 'Sam' ...
    but its work in 'Compound Layout'
    How could I do this ?
    Regards,
    Selva

    Hi Selva,
    Conditional formatting is bit difficult for your requirement in Pivot table,because there some limitations in conditional formatting of pivot table.
    You can select the entire Pivot table and apply the conditional formatting but..conditions will only format specific Cells .. and can not format entire row.. (for exmp. it will highlight only cell of alex. and not entire row of alex)
    Hope this will help..
    Thanks.

  • Timestamp format in Report table

    How can you set the timestamp value to nowrap in the Report table results. It is the only column that is wrapping since the timestamp is longer than the Column header

    I also work with Timestamps, and I would ask what you are trying to achieve. The Timestamp takes up a lot of room. If you don't necessarily need every bit of the timestamp, use a dateformat to display it in a shorter format that fits in the space restraints you define. If you need all the data, you're going to have to either give it the space it needs (could be up to almost 30 characters) or put it on two lines.
    You could also try using HTML tags to affect the font size, or even display the full timestamp as a mouseover. Other than that, not many options.

  • Hiding one specific column element in specific row  of a report table

    Hi Apex People!
    I have a report table showing something like this:
    Make Reservation····Movie·········Time·······Available Seats
    Link·······················Terminator·················>12
    Link·······················Terminator·················4
    Link·······················Terminator·················>12
    Link·······················Terminator·················sold out
    What I want is to hide the first column link when the screening is sold out:
    Make Reservation····Movie·········Time·······Available Seats
    Link·······················Terminator·················>12
    Link·······················Terminator·················4
    Link·······················Terminator·················>12
    ·····························Terminator·················sold out
    How can one do that?
    All I tried so far let me hide all Links, but not the one from the rows, with available_seats =0...
    Thank you
    Johann

    Johann,
    You could use a CASE statement in the select from the report to hide the first column dependent on the value in the Available seets column.
    Or you could grey it out using a style tag.
    Have a look at this link which talks about conditional formatting which is what you are wanting to do
    formating values
    Chris
    Message was edited by:
    tiffer

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

  • Report / Table for getting Datewise item cost

    Friends,
    Can u help me know MM Report / Table for getting Datewise item cost in a plant.

    hi,
    try table S031...Movement of stocks....
    THis shd help you..
    Regards
    Priyanka.P

  • Report S_ALR_87013105 : no authorization for the report/ table 7KU6_001

    Hi Gurus,
    While executing the program S_ALR_87013105 (Detailed Reports 
    For Sales Order : Plan/Actual Comparison ) system showing the selection log.
    "Have no authorization for the report/table  7KU6_001 and 7KU6_002".
    But for the user the authorization check through SU53 was successful.
    Pl can any one suggest on this issue.
    Thanks in advance,
    Vijay

    Hi,
    Contact your basis consultant to provide the missing authorisation. This is one of the authorisation object.
    Regards,
    Sankar

  • User/Profile Risk Violation Report table is empty

    Dear community,
    I am struggeling to find the solution for a quite simple problem: the user and profile risk violation report tables show no results (are empty). And this, although the associated tables (in the backend) contain entries for the same selection criteria (eg. GRACPROFILEACTVL etc.). What could be the reason for that? I started again the batch risk analysis very carefully (manually) on User and Profile Level, for the correct rule set and the correct system, it completed successfully, but I still can't see any results (not even a message like "No violations" or something). As an example, I took the profile SAP_ALL for a target system, which should obviously return a lot of risks/violations.
    I have also checked that this is not an authorization issue. To be more precise, actually, this functionality is working fine on the development and UAT GRC system, but not in production.
    Any help is highly appreciated. Thanks in advance.

    Hi Erik,
    The problem you are facing with only due to the SoD rule sets, which are in active as you might not have generated in Production system
    Generate the SoD rule sets, run the jobs and then run the risks reports, you will get the results as expected.
    Regards,
    Ameet

  • Possible to do conditional formatting in pivot table?

    Hello,
    I would like to do color row or column values based on certain conditions in my pivot table. I noticed the field tags in the pivot are not your standard <?value1?> but rather they are structured like <?./H?> or <?./M1?>
    Is it possible to do this? As an example, if a row = '001' i want the entire row green, or if a single measure value in a cell = '0' i would like to color it red.

    Check the blog http://blogs.oracle.com/xmlpublisher/2010/03/new_skool_crosstabbing.html for explanation on those fields and try to format them accordingly.

  • How to find out the Area Menu for a Report/ Table/Function Module

    Hi,
    Is there any procedure to find out the <b>"AREA MEANU"</b> for a Report/Table/Function Module...
    Or is there any Transaction code / Report is available to find out all the report for a particular "AREA MENU".
    Thank you for your quick response...
    Regards,
    Thiru
    <b></b>

    Hi,
    Check these below threads:
    user log in & log out time SAO
    How to find user log-out time ?
    Regards,
    Nitin

  • Error in ABAP Report TABLES declaration

    Hi,
    I am a Basis administrator and trying to write a small program for archiving.
    I get a folowing error when user the following statement in a report -
    TABLES: RSDAARCHREQ.
    The error is as follows -
    "RSDAARCHREQ" must be a flat structure. You cannot use internal tables,
    strings, references, or structures as components. -
    I can include all the other tables requred but somehow this particular table gives me this error which I have never encountered earlier. This is BI 7.0 and it is standard SAP transparent table.
    Please help me.
    I will appreciate it.
    Regards,
    Sume

    Hi Sume,
    Do not declare RSDAARCHREQ in tables.
    If you want a internal table  declare in the below mentioned way .
    data: it_RSDAARCHREQ TYPE STANDARD TABLE OF RSDAARCHREQ.
    select * into table
    it_RSDAARCHREQ
      from RSDAARCHREQ.
    Regards
    Naresh

Maybe you are looking for

  • Problem w/ audio files

    I just got my new macbook pro, and cannot play the audio files on the comp. They are .wma files and worked on my previous macbook, but when trying to play on quicktime it says, "not a video file." I tried Flip4Mac but this didn't work. Any suggestion

  • Parallel port access problem

    Hi all! I'm trying to communicate with parallel port using the commapi version 2. Unfortunately, the api doesn't accept any other mode than SPP mode that is read-only. When I try to change the parallel port mode, I got an UnsupportedCommOperationExce

  • Hello , I'm having failed the Creative Cloud Desktop installation ( error code 1 ) . can you help me?

    Hello , I'm having failed the Creative Cloud Desktop installation ( error code 1 ) . can you help me?

  • Getting artist name to show up in itunes

    Hi, I put my new podcast and the artist search is not showing the podcast. I tried adding the keyword tag and still the artist name does not show up. Also, If i change website, how do I configure the previous submission to reflect the new site. Saul

  • Splash Screen generates   java.lang.NoClassDefFoundError: Eapply errors.

    Hi Everyone, Again, I am new to Java (2nd month actually coding) and don't know of a better place to post this problem. Also, the forum does not have a search feature (that I can see) so I apologize if this issue has been raised and discussed before