Apex report column in one color

Hai,
How can i make selected report cell(Whole column) in color
For example select emp_no, emp_name from emp;
i should display all emp_name cell in color (not only the name of the employee)
Using report attributes.. i tried with background color " background-color:yellow " in CSS style.. its giving color for the charcters in the cell not for whole cell..
Thanks
Joe

Hi,
One way is use JavaScript (jQuery) and dynamic action
These links might help.
http://dbswh.webhop.net/apex/f?p=BLOG:READ:0::::ARTICLE:351800346145832
Re: Background Colour of Report Cell Issues.
As I understand you need color all cells and color is fixed, you do not need create hidden column to report or custom report template.
Just modify JavaScript in dynamic action
Regards,
Jari

Similar Messages

  • Calling a .rdf report from a link on a apex report column

    Hi,
    I want to call a xxx.rdf report from a link on a apex report column.
    Can anyone help me on this ?
    Best regards,
    JCN

    Hi,
    Sorry - I should have read a bit further in your last post!
    The url variable that you're defining should just be the URL string that you want to create, so you only need the "http://........" part. There's also a + missing after the "&TODT..." string.
    The "DEA_PERMIT_ID=&G_PERMIT_ID." part at the end should have an & at the start to indicate a new parameter in the URL. Otherwise, &G_PERMIT_ID. would be replaced by the value stored in the session for the G_PERMIT_ID item (presumably that is an Application Item?).
    So:
    function callPopup()
    var url = "'http://snapper.accsp.org/reports/rwservlet?destype=cache&desformat=PDF&report=edr_landings_dollars_by_vessel.rdf&userid=evtr_report/chicken99@safis&FROMDT=" + $v("P810_FROM") + "&TODT=" + $v("P810_TO") + "&DEA_PERMIT_ID=&G_PERMIT_ID.";
    popupURL(url);
    }Andy

  • Call Javascript function to pass a id  from APEX report column link

    Hi,
    Can anyone help me, in a report column link i'm calling a function to pass an id and i want to onclick change a icon on that column based on the value on the column status of this table.
    Is this possible?

    Hi Ron,
    I am doing exaclty what you have suggested me but no luck. I started changing the DEMO_CUSTOMERS application to my requirements.The report is working fine and on the report I have created a page attribute to the Hyper linked column and linked that to the page 2 and assign that attribute with #JOBNUM#.
    I am able to pass that value on to form when I click on the JOBNUM. But the problem is I am not able to pass that value into the SQL query so that my query pulls 20+ columns on to the Form ( which is second page ).
    Small clarification... On the form region it is said FORM NAME and type is HTML is that is the way the APEX was designed or does it need to say region type as FORM.
    Thanks for your help in advance.
    Cheers,
    Krishna.

  • Report Columns in one Page

    Hi,
    I know the posts on the same issue exist in year 2002 exist but they doesn't seem to have any solutions, or at least do not have the proper answers that I want. Or maybe I miss it when I search.
    I have created a matrix report with groups above.
    Report data layout (example):
    Let's say the group above is by month and year (combined). Then the columns would be the departments while the rows would be the date of the month. The data would be the income type A, income type B, income type C and income type D.
    Jan 2006 | Dept One                      | Dept Two                      | Dept Three                    | Dept Four                     |
             | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
    1        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    2        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    3        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    4        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    5        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    ...      |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    31       |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    Feb 2006 | Dept One                      | Dept Two                      | Dept Three                    | Dept Four                     |
             | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
    1        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    2        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    3        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    4        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    5        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    ...      |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    31       |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |Problem:
    I can see that the report generates successfully. Rows and columns showing the correct data. However, the problem arises where one single month (let's say January 2006) of the report matrix group expand from page 1 to page 2 horizontally. And on page one, big amount of space left (below the first part of Janurary 2006 matrix group) which can actually accomodate either the first part of February 2006 matrix group or the rest of January 2006 matrix group. But it wasn't populated.
    {Content of Page One}
    Jan 2006 | Dept One                      | Dept Two                      |
             | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
    1        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    2        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    3        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    4        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    5        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    ...      |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    31       |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    {Content of Page Two}
    Jan 2006 | Dept Three                    | Dept Four                     |
             | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
    1        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    2        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    3        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    4        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    5        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    ...      |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    31       |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    Feb 2006 | Dept One                      | Dept Two                      |
             | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
    1        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    2        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    3        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    4        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    5        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    ...      |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    31       |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    {Content of Page Three}
    Feb 2006 | Dept Three                    | Dept Four                     |
             | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
    1        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    2        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    3        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    4        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    5        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    ...      |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    31       |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    Mar 2006 | Dept One                      | Dept Two                      |
             | Inc A | Inc B | Inc C | Inc D | Inc A | Inc B | Inc C | Inc D |
    1        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    2        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    3        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    4        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    5        |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    ...      |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    31       |   ... |   ... |   ... |   ... |   ... |   ... |   ... |   ... |
    {...and so on...}Instead, the February 2006 matrix group only started out on page 2 when the January 2006 matrix group ends.
    How can it be done, so that either the following be done?
    A) Second part of January 2006 fills up the first page as well instead of the empty space. Meaning the First part of January 2006 is above and 2nd part below thus filling up the first page. February 2006 would start off from 2nd page.
    B) First part of January and February 2006 fills up the first page and their second part ends at 2nd page.
    FYI, horizontal landscape of report is NOT preferable. Even if it is used, the same scenario persist.
    Hope someone can help me out here on this. Or at least show me how you do it alternatively.
    Thank you.

    Thanks for the reply.
    FYI, not every month have all the columns filled up. Meaning some months may have lesser columns resulting in smaller tables. That's why some of the months, their tables will fit into one page.
    Changing width of does not solve my problem because my reports are made for A4 paper size. Printing such a report with its width altered causes some part of the table which overflows out from A4 paper size not to be printed.
    The location of the value I changed can be found here:
    Paper Layout > Main Section > Property Sheet: Width
    Please do help. Thanks.

  • Oracle Report: columns display one after another.

    Hello
    I have a report that has 10 columns. I want all of the rows of first set of 5 columns to display then the second set of 5 columns will display after that. for example
    Date range 1/1/07 to 1/5/07
    col1 col2 col3 col4 col5
    AA BB CC DD CCC
    AA VV DDD DD XXX
    Date range 1/6/07 to 7/10/07
    col6 col7 col8 col9 col10
    AA BB CC DD CCC
    AA VV DDD DD XXX

    Hallo,
    In the sense of Applicatin Express you have two Report Regions.
    Both regions can be dependent on a master item (e.g. SELECT ... WHERE MASTER_ID = :MASTER_ITEM)
    Hope that helps, Willi

  • Can we change the background color of a Standard report "column"?

    4.2.1
    Theme 24 - Cloudy
    Hi There,
    I searched this forum and online but did not get a straight forward way to change the color of a standard classic Apex report column. I want the whole columns background color to be blue. I tried some of the suggestions for using span etc, but they did not work.
    Was wondering if anyone has a solution for this? would be very helpful!
    Thanks,
    Ryan

    Use a custom named column report template with <tt>&lt;colgroup&gt;/&lt;col&gt;</tt> and CSS as in these threads.
    Could also be done with JavaScript, but if the entire column is to be coloured (rather than individual cells based on some condition), the template approach will be simpler and have better performance

  • How to display special characters in APEX Classic Report column

    Ref: Thread: How to display newline characters as new lines
    Version: APEX 3.2
    Hi,
    I have created an classic SQL Report with one of the columns being a decode that gives a value 'Post'(the value should be highlighted in Red) on one condition and 'Pre' on another. I have followed the advice given in the page (URL provided above) , i.e. I have changed Strip HTML to 'No', changed Display as to 'Display as text (escape special characters, does not save state)'. I have also passed this value back to the same page to be stored in a page item each time a link (another column in report) in report is clicked. I have tried passing it as #DEADLINE# and \#DEADLINE#\. The issue I face is, instead of the value being highlighted in Red, it gets passed back as a string holding the value 'Post'. Is there any way I can get this to display as it should without the Strip HTML being changed to 'Yes'.
    Thanks very much.
    Rohi
    Edited by: Rohi on 18-Jul-2012 04:21

    876651 wrote:
    Hi,
    Thanks for your response.
    I am trying to display a page item that is derived from a report column based on a click on the URL link (*view >*>)
    This page item (here, it is Manager_ID) should ideally be highlighted when a particular condition is satisfied (achieved using a DECODE in the report).
    But it is not displayed like it should be.
    I do not want the value to be displayed along with the html tags as a string.
    I want the html tags to take effect and highlight the value within it.
    Initially, I had set Strip HTML to Yes and the value was returned without any highlighting .
    So I changed it to 'No' and and it contained the html tags.
    I am not sure what setting in APEX Report Attributes can help me achieve that effect I want.None of the report settings are relevant. They affect the rendering of the report and none of the columns you were changing the properties of were actually rendered.
    You can't pass HTML and CSS around in URL parameters.
    I suggest you pass *2* values in the column link: the MGR ID and a simple class or colour value computed by the DECODE in the report. I've suppressed the first version of the report and created a new one that does this:
    decode(dept.deptno, '30', 'c00', '000') highlight The link column now passes the MGR ID and the HIGHLIGHT colour (red when the condition is satisfied and black when it is not).
    I created another hidden and protected page item <tt>P0_HIGHLIGHT</tt> as the target for the highlight value, and used the Pre/Post Element Text properties of the <tt>P0_G_MGR</tt> to wrap it in a <tt>span</tt> whose colour is changed using the <tt>P0_HIGHLIGHT</tt> value as a subtitution string:
    <span style="color: #&P0_HIGHLIGHT.;">Having done that, I still don't really get the requirement here. I'm sure that given the full picture I'd be using a completely different approach...

  • APEX Report to balance a column of data over 3 columns

    I have an sql report that outputs a code and description e.g.
    1  Ape
    2  Boar
    3  Cat
    4  Dog
    5  Elephant
    6  Goat
    7  Hare
    8  Ibis
    9  Jackel
    10 Kangaroo
    11 Lion
    12 Mouse
    13 Numbat
    I need the following output where the number of records can change but I always want the values to fit into 3 evenly balanced columns e.g. Sorry about trying to line the columns up
    1  Ape      6  Goat    11  Lion
    2  Boar      7  Hare    12  Mouse
    3  Cat      8  Ibis    13  Numbat
    4  Dog      9  Jackel    
    5  Elephant      10  Kangaroo    
    What is the best way to do this in one APEX report. I've tried using 3 separate reports in columns 1,2,3 side by side with "no template" but I can't seem to centre the 3 reports and spread out the values evenly across the page.
    thanks in advance
    Paul P

    Interesting data.
    See:
    {thread:id=414418}
    {thread:id=1013063}
    {thread:id=1011638}

  • Pass value of column when report has only one row

    Hello everyone,
    Sorry for not being very accurate with the title of the thread.Here's my situation:
    I have an item that, when modified(key pressed) refreshes an interactive report. All the report column have link to a javascript function, so when the user clicks the row it passes a value to another item on the page.
    To be more specific it goes like this: the user enters a numer in the item, and as he presses a key the report is shrinked down based on the number that it's made.(asynchronous search like google)
    Here's my problem:
    I have made all this working(using dynamic actions and a little javascript), but, for the sake of making it user-friendly i want that when the report is shrunk to only one line, the value of a column in that line to be auto-passed to a page item.(or a javascript function)
    Thanks a lot!
    Kind Regards,
    Cearnau Dan
    PS: APEX 4

    I am currently work on something similar, sort of, unless it's not.
    Anyway, the first function called by the action, onChange in my case, returns a count of items. If there is an exact match, meaning a one is returned, the function branches one way. Otherwise, it branches another way.
    In the case of an exact match, I run some other JS/AJAX to populate other details on the line. If not an exact match, in my case, I show a <div id="searchCriteria"> for the user to refine their search or accept what they typed in the first box and get a list of all possible matches. Obviously yours would behave differently.
    Hope this helps,
    Gregory

  • APEX report with Break columns and BI Publisher

    I am having an issue with APEX and using column breaks when printing to BI publisher.. It seems that when you write an APEX report that breaks on the 1st or 1st and 2nd columns, the grouping shows nicely in APEX, but when BI Publisher gets the XML data, and you do the same grouping using an RTF file, there is a group of rows with NO grouping info that occurs at the top of the report, then each group you expect has just ONE row..
    (Just giving this a bump to see anyone has an idea here..)
    Any suggestions?
    Thank you,
    Tony Miller
    Message was edited by:
    Tony Miller

    WITH clause or Subquery Factoring allows the set of data to be reused multiple times within the SQL. Oracle will usually materialize the data into a temporary table (you will see it if you take an explain plan of the SQL).
    I would be surprised if it was the actual WITH clause that was causing the performance issue, however you can test this by turning the WITH clause feature off. Go to the Physical model, right mouse click on your Database > Properties > Features Tab, scroll down to WITH_CLAUSE_SUPPORTED and switch it off.
    I'd be interested to know if you do see actual improvement.
    Good Luck.

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

  • Concatenate out put of 2 or more columns in BEX Report in to one column

    Hi,
    I am working on service order report in BEX, and i would like to Concatenate out put of 2 or more columns in BEX Report in to one column.
    Please share me if any scenarios.
    Thank
    Neni

    Hi Ashutosh,
    Thanks for your reply,
    Actually in my report 4 different columns belongs to service orders information from different departments, i want see all 4 columns information in to single column, those four are virtual characteristics.
    As per your solution concatenate in workbook using function, can you please give me the steps how to do that.
    Thanks for your help.
    Thanks
    Neni.

  • Column Links in Apex Reports

    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?

    Doug wrote:
    I am using version 4.0 of APEX.  My question concerns linking to other APEX pages from a report.  In APEX we link to another page, which may be a form or another report, by using a column in the report as a link column.  Any column may be used to transfer values from any other column.  This works fine, but the disadvantage is that whichever column is used as the link column has a heading which identifies the column's purpose but may not identify the purpose of the transition to another page.  In Oracle Forms, we could use buttons as a column of the multi-row screen (i.e. same as APEX report), and the button's label identified the purpose for the transition.
    Is there any way to create a column in an APEX report  to serve the same purpose as the button in Oracle Forms?
    When discussing "reports" it is essential to indicate whether this means a standard report or an interactive report in order to receive an appropriate response.
    It is possible to create a link column that is distinct from report data columns. In standard reports, this is done using the Add Column Link option from the Tasks menu in the right sidebar of the Report Attributes page. In interactive reports, define a Link Column on the Report Attributes page.
    To provide further information about links to users in both cases, specify an HTML title attribute for the link in the Link Attributes property of the link definition. This will be rendered as a tooltip when the cursor hovers over the link in visual browsers, and as an audio cue on navigation to the link when using a screen reader.

  • Standar Report Column missing in Apex 5.0.

    Standard Report Column is missing in Apex 5.0. How to work with apex_item which required display type to be Standard Report Column?

    Hi Rupesh,
    Rupesh Gupta wrote:
    Standard Report Column is missing in Apex 5.0. How to work with apex_item which required display type to be Standard Report Column?
    Check this similar old thread : APEX_ITEM.CHECKBOX2 issue in apex 5
    Regards,
    Jitendra

  • Colors in ALV report - column wise

    Hi,
    I have a ALV report. I want color in my report like Column Wise.
    ex.
    Document No........Date.........Amount......Document No......Date........Amount........Document Nov........Date.............Amount....
    2008000123...10.07.2009....2000.00......2008000133....10.07.2009....2000.00.....2008000143.......10.07.2009.......2000.00
    2008000124...10.07.2009....2000.00......2008000134....10.07.2009....2000.00.....2008000144.......10.07.2009.......2000.00
    2008000125...10.07.2009....2000.00......2008000135....10.07.2009....2000.00.....2008000145.......10.07.2009.......2000.00
    Please see, there is 3 times Document No, Date and Amount. I want that there should come diff. colors for diff. document numbers.
    It is possible or not. If yes, then how...
    Thanks...

    Hi,
    go though this link....
    i hope this will help u
    TABLES:
    SPFLI.
    TYPE-POOLS:
    SLIS.
    PARAMETERS:
    P_COL TYPE I ,
    P_ROW TYPE I,
    P_COLOR(4) TYPE C .
    DATA:
    T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
    FS_FIELDCAT LIKE LINE OF T_FIELDCAT,
    FS_LAYOUT TYPE SLIS_LAYOUT_ALV ,
    W_COLOR(4) ,
    W_ROW TYPE I,
    W_FIELDNAME(20),
    W_PROG TYPE SY-REPID.
    DATA:
    BEGIN OF T_SPFLI OCCURS 0,
    COLOR(4),
    CHECKBOX ,
    CELL TYPE SLIS_T_SPECIALCOL_ALV,
    CARRID TYPE SPFLI-CARRID,
    CONNID TYPE SPFLI-CONNID,
    CITYFROM TYPE SPFLI-CITYFROM,
    CITYTO TYPE SPFLI-CITYTO,
    DISTANCE TYPE SPFLI-DISTANCE,
    END OF T_SPFLI.
    DATA:
    FS_CELL LIKE LINE OF T_SPFLI-CELL.
    SELECT *
    FROM SPFLI
    INTO CORRESPONDING FIELDS OF TABLE T_SPFLI.
    W_COLOR = P_COLOR.
    T_SPFLI-COLOR = P_COLOR.
    IF P_COL IS INITIAL AND P_ROW GT 0.
    MODIFY T_SPFLI INDEX P_ROW TRANSPORTING COLOR.
    ENDIF.
    FS_FIELDCAT-FIELDNAME = 'CARRID'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 1.
    FS_FIELDCAT-KEY = 'X'.
    FS_FIELDCAT-HOTSPOT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT .
    FS_FIELDCAT-FIELDNAME = 'CONNID'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 2.
    FS_FIELDCAT-KEY = 'X'.
    FS_FIELDCAT-HOTSPOT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT .
    FS_FIELDCAT-FIELDNAME = 'DISTANCE'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 3.
    FS_FIELDCAT-KEY = ' '.
    FS_FIELDCAT-EDIT = 'X'.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    CLEAR FS_FIELDCAT.
    FS_FIELDCAT-FIELDNAME = 'CITYFROM'.
    FS_FIELDCAT-REF_TABNAME = 'SPFLI'.
    FS_FIELDCAT-COL_POS = 4.
    FS_FIELDCAT-KEY = ' '.
    APPEND FS_FIELDCAT TO T_FIELDCAT.
    LOOP AT T_FIELDCAT INTO FS_FIELDCAT.
    IF FS_FIELDCAT-COL_POS EQ P_COL.
    FS_FIELDCAT-EMPHASIZE = P_COLOR.
    W_FIELDNAME = FS_FIELDCAT-FIELDNAME.
    IF P_ROW IS INITIAL AND P_COL GT 0.
    MODIFY T_FIELDCAT FROM FS_FIELDCAT TRANSPORTING EMPHASIZE.
    ENDIF.
    ENDIF.
    ENDLOOP.
    FS_CELL-FIELDNAME = W_FIELDNAME .
    FS_CELL-COLOR-COL = 6.
    FS_CELL-NOKEYCOL = 'X'.
    APPEND FS_CELL TO T_SPFLI-CELL.
    IF P_ROW IS NOT INITIAL AND P_COL IS NOT INITIAL.
    MODIFY T_SPFLI INDEX P_ROW TRANSPORTING CELL.
    ENDIF.
    FS_LAYOUT-INFO_FIELDNAME = 'COLOR'.
    FS_LAYOUT-BOX_FIELDNAME = 'CHECKBOX'.
    FS_LAYOUT-COLTAB_FIELDNAME = 'CELL'.
    FS_LAYOUT-F2CODE = '&ETA'.
    W_PROG = SY-REPID.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = W_PROG
    IS_LAYOUT = FS_LAYOUT
    IT_FIELDCAT = T_FIELDCAT
    TABLES
    T_OUTTAB = T_SPFLI
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    NOTE
    Column and Row are colored with a coded color u2018Cxyzu2019.
        Where C: Color (coding must begin with C)
                     X: Color Number
                     Y: Bold
                     Z: Inverse.
    Thanks
    Ashu

Maybe you are looking for

  • No sound on my lenovo 3000 j115

    Ok, so I had Vista up until yesterday when I reformatted my computer and loaded XP on it. Everything is working fine except now I have no sound. There is no volume icon in the task bar and in the "Sounds and Audio Devices" it says "No Audio Device."

  • Match code for file in server

    Hi all, I have a selection screen with a parameter "file name output" and i have to add to it a match code. I have no idea about the code to be applied to set up this match code. Some one can help me please? Thanks for all

  • Project Siena download

    Hi. I'm trying to download the Project Siena app to install but I can't find where to download it. I've been here; http://apps.microsoft.com/windows/en-us/app/5ae47651-e8f3-4e41-aab7-e19ab1b80180,and here; http://www.microsoft.com/en-us/projectsiena/

  • Transaction completing with out the process

    hi all I have an SP which does Updation in table_1 and Table_2 Both having more than 8 columns where 4 columns are updating though this SP depends on the condition. My problem is i wrote this Query under transaction Block to update 4 cols of both tab

  • Testing Services in SOAPUI

    Hello, I want to test webservices in SOAP UI. The services are provided in an abap backend, and will be consumed in a 3rd party system. The communication is via an integration server. I created . In WS navigator the service can be tested succesfully.