Skip to Content
author's profile photo Former Member
Former Member

Table Interface

Hi Guys,

I need to change the colour of a cell depending of its value. I know that can be posible using table interface. Can you please provide the main steps and piece of code for this

Thanks,

I.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 07, 2005 at 01:24 AM

    ivan ,

    Use the cell_td_extend under data_cell

    if you want to change a characteristic.

    Give the HTML code in the c_cell_td_extent methos.

    If you want to change a KF it is easier to ahve exception color coding and then change the contents.

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2005 at 01:34 AM

    hi I,

    following 'how to table interface' doc as reference

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49dfeb90-0201-0010-a1a2-9d7a7ca1a238

    optional

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f0aca990-0201-0010-0380-f3aac4127a57

    steps

    1. create webtemplate in WAD, add web item 'table', go to tab 'html', change the <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/> with

    <param name="MODIFY_CLASS" value="ZSHRMINAPP"/>

    ZSHRMINAPP is the abap class.

    2. Log on to the BW system. Classes are created in transaction SE24 (Class Builder). You can create the class ZSHRMINAPP here. Choose 'class' as the object type.

    3. go to tab properties, click button 'superclass', choose CL_RSR_WWW_MODIFY_TABLE. click save.

    4. now attributes and methods are inherit from the superclass, go to tab 'method', in edit mode, cursor position in 'DATA_CELL', click 'redefine' (pencil with globe something button, near checkbox 'filter' right corner).

    5. screen for method DATA_CELL come out, put your code here, e.g

    if i_x = 4.

    C_CELL_STYLE = 'SAPBEXstdDataRed'.

    endif.

    x = column.

    6. activate and try

    hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.