Regarding color particular column

Hi abapers,
                 i have to color the particular column. i need red color . i searched in  sdn but it is there for the  row color. guide me in this issue.

Hi Srinu,
In the alv we will set the colour in the line colour of that field.
We have set that row with colour code relevent for red.
refer the link below for the whole understanding:-
http://www.sapdev.co.uk/reporting/alv/alvgrid_color.htm
thanks & regards
Sabyasachi

Similar Messages

  • Change a particular column font color

    i have a report . i need particular column values should be red.
    select empno, ename from emp;
    i need ename values to be appeared in red color.
    how this can be achieved?

    Hi,
    As it's just a report, you could adjust your SQL statement to something like:
    select empno,
    case when empno < 1000 then '<span style="color:red">' || ename || '</span>' else ename end empname
    from emp
    Change the test empno < 1000 to whatever test you require.
    Regards
    Andy

  • Set a particular column's Color when importing a list to Excel

    Hi all,
    I am displaying a list by using REUSE_ALV_LIST_DISPLAY.
    It works fine.Now i import this List to Excel sheet by custom program to set the formatting part and for color prospect which is not working with standard Import functionality.I am using the Methods of Interface  I_OI_SPREADSHEET.
    Now my query is that how to set a particular column's Color ?
    And how to set the width of a particular column ?
    Suggess.
    Points will be sured.
    Thanks
    Sanket sethi

    check this
    downloading my report output with the same color on my report to excel .
    Download alv output to an excel file

  • How to change the particular column background  color in jTable?

    I am woking with a project, in which I am using a jTable. Then
    How to change the particular column background color in jTable?

    Use a custom Renderer. This is the JTable tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to set color for a particular column in advance table?

    How can we set the color of a particular column in advance table based on some parameter feteched from vo query in process request?

    i have tried the same way as mentioned in the post but ,its giving error
    java.lang.ArrayIndexOutOfBoundsException: 0
    processRequest code
    OAAdvancedTableBean table =
    (OAAdvancedTableBean)webBean.findIndexedChildRecursive("TimEntAdvtbl");
    if (table != null)
    System.out.println("table");
    OAColumnGroupBean daily =
    (OAColumnGroupBean)table.findIndexedChildRecursive("DailyColGrp");
    if (daily != null)
    System.out.println("daily col");
    OAColumnGroupBean ColGrp6 =
    (OAColumnGroupBean)table.findIndexedChildRecursive("ColGrp6");
    if (ColGrp6 != null)
    System.out.println("ColGrp6");
    OAColumnBean SatCol =
    (OAColumnBean)webBean.findIndexedChildRecursive("SatCol");
    if (SatCol != null)
    System.out.println("col");
    OAMessageTextInputBean sat1 =
    (OAMessageTextInputBean)SatCol.findIndexedChildRecursive("sat");
    if (sat1 != null)
    System.out.println("sat1");
    OADataBoundValueViewObject csssat= new OADataBoundValueViewObject(sat1,"Color");
    sat1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, csssat);
    Error Page
    ## Detail 0 ##
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3199)
         at oracle.sql.NUMBER.toString(NUMBER.java:761)
         at oracle.sql.NUMBER.stringValue(NUMBER.java:2090)
         at oracle.jbo.domain.Number.toString(Number.java:390)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.formatObject(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.convertValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValue.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    Please help

  • How to make a particular column bold in alv?

    Dear  Experts,
    I have searched many threads on this. I have used control break events to get the subotals and totals. The requirement is to make the text and the figure of subtotal and total bold.
    I am still not able to find the thread to make a particular column text in bold. And about colouring, I have used collect statement in my final structure so I am unable to use cellcolor type lvc_t_scol.
    Is there any way to make the subtotals and totals in bold? If not able, I may go for coloring.
    Regards
    Mani

    Hello mani,
    Try this:
    TYPES : BEGIN OF ty_outtab,
            celltab TYPE lvc_t_styl.
            INCLUDE STRUCTURE mara.
    TYPES   END   OF ty_outtab.
    DATA  : gt_outtab  TYPE TABLE OF ty_outtab WITH HEADER LINE,
                 gs_layout  TYPE lvc_s_layo,
                 ls_celltab TYPE lvc_s_styl,
                 lt_celltab TYPE lvc_t_styl.
    SELECT * FROM MARA INTO CORRESPONDIG FIELDS OF TABLE gt_outtab UP TO 20 ROWS.
    ls_celltab-style = '00000121'.
    INSERT ls_celltab INTO lt_celltab INDEX 1.
    READ TABLE gt_outtab INDEX 1.
    gt_outtab-celltab = lt_celltab.
    INSERT gt_outtab INDEX 1.
    gs_layout-stylefname = 'CELLTAB'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
      EXPORTING
        i_structure_name = 'MARA'
        is_layout_lvc    = gs_layout
      TABLES
        t_outtab         = gt_outtab
      EXCEPTIONS
        program_error    = 1
        OTHERS           = 2.
    I hope you help.

  • Hotspot click for only some rows in ALV grid for a particular column ?

    Hi there,
            In ALV grid, we can make Hotspot enable for all rows in a specified column
    by specifying in the fieldcatalog with Hotspot attribute set as true.
    But I want to enable Hotspot only for certain rows in the particular column. I tried with MC_STYLE4_LINK , but I didnt got the required result.
    So , how could I achieve that in ALV grid.
    Points would be rewarded for helpful answers.
    Regards,
    Anil .

    Hi,
    You can do it for a column. Please refer to the code snippet below,
      DATA : it_fcat TYPE lvc_t_fcat,
             wa_fcat LIKE LINE OF it_fcat.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
      I_BUFFER_ACTIVE              =
         i_structure_name             = 'SMMW_ALERTS_ICON_S'
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           =
      I_INTERNAL_TABNAME           =
        CHANGING
          ct_fieldcat                  = it_fcat
       EXCEPTIONS
         inconsistent_interface       = 1
         program_error                = 2
         OTHERS                       = 3
    LOOP AT it_fcat INTO wa_fcat.
      IF wa_fcat-fieldname = 'STATUS'.
        wa_fcat-hotspot = 'X'.
        MODIFY it_fcat FROM wa_fcat.
        CLEAR wa_fcat.
      ENDIF.
    ENDLOOP.
    CALL METHOD l_obj_alv_grid->set_table_for_first_display
          EXPORTING
        i_structure_name              = 'SMMW_ALERTS_ICON_S'
       CHANGING
            it_outtab                     = lt_alerts_st
            it_fieldcatalog               = it_fcat.
    In the above replace the structure 'SMMW_ALERTS_ICON_S' with your structure and column 'STATUS' with your desired column.
    Hope this helps,
    Regards,
    Vinodh

  • Query throws an error while drilldowning a particular column in production

    Hello Gurus,
    There is an issue in a query when I run it on portal and when I try to drill down one particular column, it throws an error. I am pasting the error message below for your reference. This query works fine when I run in Bex. It also works fine when I run it on Quality portal. It only throws an error when I run it on production portal. I have got the patches and PI checked with BASIS team, everything seems to be fine.
    Please help me out with this issue.
    Termination message sent
    ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    com.sap.ip.bi.base.application.exceptions
    ABEND: Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    ABEND: System error in program SAPLRRK0 and form LRECH_01-01- (see long text)
    Regards,

    Hi,
    There are a couple of threads on the same issue.
    Refer to these, just might be handy.
    Re: Uncaught_exception in Report Designer
    Program error in class SAPMSSY1 method  : UNCAUGHT_EXCEPTION in Report
    Good Luck!
    Sandeep Tudumu

  • Adding inputhelp to a particular column in tableview

    Hi experts,
      I need to display a particlular column by providing inputhelp in tableview.My requirement is to save the data entered in the tableview to the database. but in particlular coulmn v should select data from the inpuhelp.please help me out.Please anybody help me how should i make particular column as inputhelp in tableview. This is urgent requirement.
    Thanks in advance.
    Regards,
    sireesha

    Hi,
    Can anybody tell me whats wrong with the following script.and also can see the layout here.
    <script language="JavaScript" type="text/javascript">
              function pass_data()
                   if (top.window.dialogArguments) {
                   if ( document.form1.row_sel.value )
    top.dialogArguments.document.form1.tab01_6_2.value=document.form1.row_sel.value;
                   top.close();
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form id="form1" >
          <htmlb:tableView id              = "tab01"
                           table           = "<%= flights %>"
                           visibleRowCount = "14"
                           width           = "100%"
                           design          = "ALTERNATING"
                           footerVisible   = "TRUE"
                           onRowSelection  = "my_event"
                           selectionMode   = "SINGLESELECT" >
          </htmlb:tableView>
          <htmlb:inputField id      = "row_sel"
                            value   = "<%= rowselected %>"
                            visible = "false" />
    In this script am getting the following error:
    <b>top.dialogArguments.document.form1.tab01_6_2.value is null or not an object.</b>
    In the OnInputProcessing the event is getting triggered when i click on the row in tableview. And that selected value is also assigned to the inputfield.But in the layout am getting the above error.Can anybody pls help me out.I dont know the javascript.
    How should i pass this selected value to the inputfield in the parent window.
    Pls help me out.
    Thanks in advance
    Regards
    sireesha
    In the OnInputProcessing

  • Wanting data from a table without a particular column

    I need the data from a table, except the data for a particular
    column. I don't want to write the select list, as it would be
    too clumsy for a large table. Can anybody suggest a solution. I
    can certainly create a view, but I don't want that.

    Hi,
    Try this select Statement.
    set haeding off
    set feedback off
    spool file.sql
    Select 'Select ' from dual;
    Select Column_name || ',' from all_tab_columns Where table_name = 'EMPLOYEE' and Column_Name != 'DEPARTMENT_ID';
    Select '1' from dual;
    select 'From Employee;' from dual;
    Spool off
    regards,
    Ganesh R

  • How to hide/remove Particular column from the payslip in ESS\MSS Portal overview table?

    Steps to be followed.
    1)Go to SE18
    2)Select Enhancement spot
    3)Give the Espot name 'HRESS_PAYSLIP'
    4)From left side double click on the Implementing Class 'CL_HRESS_PAYSLIP_BADI_STANDARD'.
    5)Within that double click on the method 'if_hress_payslip_badi~adjust_field_catalog'.
    6)AT the end of this method there will be 4 Lines of coding with the Loop and endloop. This is the code which
    is use to hide the column from ESS/MSS payslip overview.
    7) According to your requirements you should copy the same 4 lines code and hard code the particular column field name
    with the Implicit Enhancement.
    Below Code is for ur understanding:
      clear ls_field_usage.
       ls_field_usage-enabled = abap_false.
        ls_field_usage-visibility = cl_wd_uielement=>e_visible-none.
        modify ct_field_usage from ls_field_usage transporting enabled visibility
          where name eq 'Hardcode ur column field name'.
    All the best

    Hi,
    For making a page/iview invisible temporally without deleting from role, change page/iview property "Invisible in navigation areas" to "yes" then it will be hided in navigation areas.
    regards,
    Mahesh

  • To retrieve the mapping expression of a particular column of an Interface

    How to retrieve the mapping expression corresponding to a particular column(say BATCH_ID) in the target table of the interface in IKM...?
    Using getColList() method all the mappings in the interface are retrieved.
    Is there a way to get the mapping for a single column using an API in IKM...?
    Thanks,
    Soumya

    Hi Soumya,
    You can define a User Defined Flag on your target and use it to get your column.
    For example, select the UD1 checkbox for BATCH_ID.
    If your KM task, pass an additional parameter (pSelector) to getColList : "UD1"
    http://docs.oracle.com/cd/E14571_01/integrate.1111/e12645/odiref_reference.htm#CIADFCFJ
    Hope it helps.
    Regards,
    JeromeFr
    [Edit] DecaXD was faster ;)

  • How to merge the contents of two rows in ALV for particular column data

    Hi Experts,
    I have a requirement to merge various rows in a ALV Grid with same data for particular columns.
    Kindly Suggest,
    Thanks and Best Regards,
    Sahil

    Hi,
    Just fill the and pass the SORT table for what ever fields you want this functionality.
      DATA: lwa_sort  TYPE lvc_s_sort.
      CLEAR lwa_sort.
      MOVE: 'VBELN' TO lwa_sort-fieldname,
                   'X' TO lwa_sort-up,
    APPEND lwa_sort TO i_sort.
    Now pass this SORT table to ALV FM.
    Thanks,
    Vinod.

  • How do i prevent display of a particular column in ALV

    How do i prevent display of a particular column
    of a structure in ALV

    Hi Serdar,
    Please do let us know the link , as soon as your code sample is put in sdn.sap.com.
    I request the <b>veteran members</b> of this forum to <b>contribute to WebLogs</b> or <b>code samples</b>, since over the time, the same questions will be asked and instead of repeating the answers, we can direct them to Weblogs or Code Samples.
    There is an ABAP FAQ present in this site, which has given insight to so many things, that I have not even considered remotely possible.
    As seen today, there was a useful piece of code posted. Instead of posting the code in the forum, you can create it as a weblog and post it there.
    Regards,
    Subramanian V.

  • Choosing particular columns using XSU PL/SQL API

    Hi ya,
    I have another query regarding XSU PL/SQL API please
    If I dont want to choose all columns but choose particular columns
    in my select clause,how shud I do this.??
    I havent used XSU before,so please forgive my ignorance.
    declare
    queryCtx DBMS_XMLQuery.ctxType;
    result CLOB;
    begin
    -- set the query context.
    queryCtx := DBMS_XMLQuery.newContext('select CHOOSE CERTAIN COLS ONLY from <TABLE>');
    result := DBMS_XMLQuery.getXML(queryCtx); -- get the result
    DBMS_XMLQuery.closeContext(queryCtx); -- close the query handle;
    end;
    Can anyone tell me how to select particulat columnsor some one suggested(Mr Kishore) to use a view?
    I dont want to use 'Select * from <Table>'
    Help really appreciated.
    Rgds

    This is a duplicate of this posting Creating a View to check for 2 conditions.. This is a particularly heinous case because some of our finest minds have already responded in that thread.
    Lose ten culture points.
    Regards, APC

Maybe you are looking for