Web item analysis Modification -- Traffic lights

Hi all,
I am using BI 7.0 WAD and I would like to display traffic lights icons in the data of web template.
I was able to do this in 3.5 by using a super class CL_RSR_WWW_MODIFY_ TABLE and modifying the CHARACTERISTIC_CELL field.
Then i used to add <param name="MODIFY_CLASS" value="myclass"/> into the table item object tag.
But this was using table interfaces.
In BI 7.0, the table interfaces are replaced by Web Interfaces and hardly find any help documentation as it is very very limited.
I am trying to display images (traffic lights) for specific characteristic values
zstatus = g then display green
zstatus = y then display yellow
zstatus = r then display red
Could some one please help me resolve this issue.
Thanks a lot
Phani.
Edited by: Phani Kothwali on Oct 27, 2008 3:21 AM

Hi
Table Interface Class was a wonderful thing wasn't it ... such a pity they took that functionality away from us ... maybe one day they'll bring it back.
Back to your question ... you could use exception reporting in the query. In the query you should be able to specify that when a certain value is encountered, then show that cell in a certain colour, or show a symbol.
Alternately, the best way I have found to date to replicate table interface functionality, is to write some JavaScript that will process the HTML once it has loaded. There is no reason why you couldn't have some script to go through your table and check the values in a certain column. I have written JavaScript to perform custom calculations  in a certain column, so you could use a similar approach to simply check the value of the cell, and then change the contents to an image instead of a value.
Hope this helps you .
Cheers,
Andrew

Similar Messages

  • Web Item Analysis Modification Modules

    Samples provided by SAP for Web Item Analysis Modification are
    4) Negative Number module (com.sap.ip.bi.rig.NegativeNumber)
    Depicts negative numbers in a column or entire table in red.
    Hi SDN Community,
    I have recently been exposed to Web Interface in BI7, (having previously worked in BW35 on Table Interface Class)
    How do we ensure that the modules are activated as per the SAP documentaiton.
    Are there transactions/documentation available?
    Finally, once I get past this point, i found a document on the web that explains how to use one of these Exception modules,
    In the case of the negative number module, do you know if the numbers are displayed in red font when negative, (and in the same column)
    Thank you.
    Simon

    Part success!
    I used this module, and sure enough, the negative colours are red.  It must have been already active.
    Now, to change the sign, to positive...  is there a standard module, or will this require some ABAP or java coding.
    for example, do i require to do this?
    ABAP Class for the Custom Extension Web Item 
    Thank you.
    Simon

  • Web Item Analysis Moodule in BI7 - How to Activate

    Samples provided by SAP for Web Item Analysis Modification are
    4) Negative Number module (com.sap.ip.bi.rig.NegativeNumber)
    Depicts negative numbers in a column or entire table in red.
    Hi SDN Community,
    I have recently been exposed to Web Interface in BI7, (having previously worked in BW35 on Table Interface Class)
    How do we ensure that the modules are activated as per the SAP documentaiton.
    Are there transactions/documentation available?
    Finally, once I get past this point, i found a document on the web that explains how to use one of these Exception modules,
    In the case of the negative number module, do you know if the numbers are displayed in red font when negative, (and in the same column)
    Thank you.
    Simon

    It seems that you simply use the RIG module in the web template, and save.
    This essentially activates it.

  • How to fix column / row as "header" in WAD (Web item Analysis) ?

    Hi,
    is there a possibility to fix a column or row as "header" in web item analysis? (like freeze panes in excel)
    When scrolling down, the header should always be displayed.
    Thank you very much in advance, best regards
    Frank

    We did a custom proof of concept on this back in 3.5 using CSS and/or javascript. At that time there was no BW solution for this.
    Don't know if 2004s has this ability or not. Here's a link to an example that shows how it can be done using CSS:
    http://home.tampabay.rr.com/bmerkey/examples/locked-column-csv.html

  • Reset Row Selection from Web Item Analysis in WAD 7.0

    Hi All,
    I have a Web Item Type Analysis and I use the Row Selection (SELECT_ROWS) value multiple.
    Is there a way to reset the selection via a function?
    The user select some rows and start a planning function via a button. If they would like to start the function for an other selection they first have to remove the old ones and have to mark the other lines.
    A function to remove all selection from the item is needed!
    PS: It is getting funny if there is paging and the selection is not even visible because it is on an other page.
    Thanks for help.

    Hello All.
    I have exaclty the same problem now.
    Is there any way to do this?
    Thanks a lot and best regards,
    Alfonso.

  • WAD: Push button not displaying some Web Items

    Hi All,
    I have a web template 7.x in which there is a push button for "Export to PDF". There are some changes carried out to this web template, to include one radio button web item. My requirement is to display this Web Item on the export to PDF page.
    I have included this radio button web item in "Export to PDF" button list. However still it is not displayed on Export to PDF page.
    Is there any other setting which i am missing?
    Appreciate your quick response.
    Thanks.

    Hi Samruddhi,
    As per SAP Note 1069368 which talks about the limitations of Export to PDF functionality in WAD 7, the following webitems alone are supported on Export to PDF:-
    Supported Web items
    Analysis item
    Report item (see also the section 'Web application export with report items')
    Chart item
    Map item
    Information item
    Text item
    List of conditions
    List of exceptions
    Images (only from the MIME repository, see Note 484390)
    Thus Radio Button cannot be included in the exported PDF.
    --Priya

  • Customize Analysis web item

    Hi All,
    I have to customize the Analysis web item by adding an extra column for user to put in comments for each row and the comments should be saved.
    Is there a way to do this using Modification parameter in the parameters for Analysis web item or using Custom Extension web item ?
    Can you please suggest how it can be done?
    We are on BI 7.0 and we don't have the above mentioned 2 options in our WAD . But read the documentation on the help portal and thought there is way to do it. Our basis team is working on it to get those 2 options available in WAD.
    Please let me know the steps to achieve it.
    Thanks,
    Prasad

    Hi
    Also chk these links whether this could be of any help :
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/f3a83adae1a010e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/content.htm
    Regards

  • Viewing an Analysis Application in BI Launch Pad : "Error while generating Web Item"

    Dear all,
    I'm testing an Analysis Application containing an SDK Extension.
    It works fine when I execute the application locally.
    However, when I execute it on the BI Platform, this error message comes up : Error while generating Web Item
    I do have installed the Extension on the Platform :
    The Adaptive Processing Server running the Analysis Application Service has been restarted.
    Thanks for your help
    Hans

    Hi Hans,
    We are also facing the same issue, were you able to resolve this issue by any chance, if yes please share the solution.
    Regards.
    SJ

  • Traffic lights both in header&item level in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi all,
    I am using 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. I need to display traffic lights both in header and item level. here is the piece of code I used.
      DATA : e_alvly TYPE slis_layout_alv.
        e_alvly-expand_fieldname = 'LIGHT'.
        e_alvly-lights_fieldname = 'LIGHT'.
        e_alvly-lights_tabname   = 'TS_HEADER_DETAILS'.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
          i_callback_program = w_prog
          is_layout          = e_alvly
          it_fieldcat        = it_fieldcat
          it_events          = ts_events
          i_tabname_header   = c_ts_header_details
          i_tabname_item     = c_ts_item_details
          is_keyinfo         = key
        TABLES
          t_outtab_header    = ts_header_details
          t_outtab_item      = ts_item_details.
      IF sy-subrc <> 0.
        MESSAGE 'Error in ALV ' TYPE 'I'.
      ENDIF.
    Using this I could get traffic lights only  at header level. if I replace 'TS_HEADER_DETAILS' with 'TS_ITEM_DETAILS' , i can see lights only at item level.
    Insummary I can get lights eithere in Header or item level, but I need at both the levels.
    Please suggest some solution to overcome this problem..
    Thanks in Advance,
    Vishal..

    H,
    Have you tried this,
    e_alvly-expand_fieldname = 'LIGHT'.
    e_alvly-lights_fieldname = 'LIGHT'.
    e_alvly-lights_tabname = 'TS_HEADER_DETAILS'.
    append e_alvly-lights_tabname.
    e_alvly-expand_fieldname = 'LIGHT'.
    e_alvly-lights_fieldname = 'LIGHT'.
    e_alvly-lights_tabname = 'TS_ITEM_DETAILS'.
    append e_alvly-lights_tabname.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
    i_callback_program = w_prog
    is_layout = e_alvly
    it_fieldcat = it_fieldcat
    it_events = ts_events
    i_tabname_header = c_ts_header_details
    i_tabname_item = c_ts_item_details
    is_keyinfo = key
    TABLES
    t_outtab_header = ts_header_details
    t_outtab_item = ts_item_details.
    IF sy-subrc 0.
    MESSAGE 'Error in ALV ' TYPE 'I'.
    ENDIF.
    hope it works,
    Regards,
    Abhijit G. Borkar

  • Displaying traffic light in a web template.

    Hi BW Experts,
    Here goes my problem:
    In my project I added a new row into a Bex Query which is working fine. But when i executed the same query in the web templates in the WAD i got a formatting error while displaying. There are particular fields for each row in which values itself are not displayed instead it displays either red or green traffic light if values are decreasing or increasing respectively. Originally there were 5 rows, when i added a new row between the 4th and the 5th row, the 6th row displayed values but no traffic light while the newly added 5th row fields displayed traffic lights. when I tried to swap 5th and 6th row, same problem ocurred again in the 6th row.
    Thanks in advance.

    Hari,
    Use SE24 and enter the class name to modify it.
    See the help link for more details:
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/frameset.htm
    Raj.

  • How to Fix Table Header of Analysis Web Item in BEx Web Template

    Hi,
    I am using an Analysis Web Item to display line item report in BEx Web Template. Is there any way to fix the table header of the like in Excel for better navigation?
    Thanks in advance.
    Regards,
    Joon

    Thank you all for your quick responses (I will award points once this is sorted)
    On the information you have supplied this has opened up yet another new part of WAD that I have not experienced ...TAGs
    Shubhranshu - I have done what you said but as I have never used tags I have just had a look around and found that I can insert Any Tag but not sure if I should be doing that.  If it is inert any tag , I chose FONT from the drop down and cbmAttributes defaulted into the custom tab for the class name but not sure what it wants in the Attributes and CSS Style tab, it won't accept what I am putting which is leading me to believe that I shouldn't be doing it that way.
    Venkat - thanks for the links they will prove very useful.  I've had a look and although they talk alot about the XHTML code for tags they don't actually say how you do it in the editor - I would like to produce one that way first and then see the code it generates for it.  I'm a bit apprehensive with changing the code direct as I don't want to mess anything up.
    Thanks again for your help

  • Change colors in the Analysis web item

    Hi
    How and where can I change them ?
    Thanks
    Steffen

    Hi Steffen,
    You can use different stylesheets to change the color in a web item or hard code it in your HTML.
    Regards,
    Kishore

  • Display Exception as Traffic Lights

    Dear All,
    is there any possibility to display exceptions per default as traffic lights in a BI 7.0 Web Application? We want to use the same functionality a local status exception is offering. Setting EXCEPTION_RENDERING to Symbol offers the arrow as symbol.  Also the command set_exception in the is using the trend exception symbol as default.
    Thanks for any input
    jens

    Hi ,
    You can display the traffic light symbols for exceptions in BI 7.0.
    You need to create a Status Exception at WAD level by using List of Exceptions Web Item.
    Then you save the executed result as Queryview.
    Use this Queryview as the DataProvider for the Analysis Web Item.
    Hope this helps.

  • Displaying traffic lights in alv grid report?

    Hi everyone,
    I have an alv grid report.I m using the FM reuse_alv_grod_display to display my alv report.I am passing the fieldcatalogue automatically.I m getting the output perfectly.Now i have to add traffic lights to that alv report.
    Since i m passing the fieldcatalogue automatically i m confused to display the traffic lights?
    any suggestions please?
    Thank you.

    hi dp,
    look at the program i made... se the bold part you will be able to impelment lights easily,
    DECLARING TYPES POOL *
    All the definitions of internal tables, structures and constants
    are declared in a type-pool called SLIS.
    type-pools: slis.
    TABLES *
    tables: vbak,vbap,kna1.
    TYPES *
    *&--defining types for TABLE VBAK
    types: begin of t_vbak,
    vbeln type vbeln_va, "sales document
    kunnr type kunag,
    erdat type erdat,
    auart type auart,
    netwr type netwr_ak,
    waerk type waerk,
    vkorg type vkorg,
    vtweg type vtweg,
    spart type spart,
    name1 type name1_gp,
    stras type stras_gp,
    ort01 type ort01_gp,
    pstlz type pstlz,
    regio type regio,
    land1 type land1_gp,
    telf1 type telf1,
    end of t_vbak.
    *&--Defining types for TABLE VBAP
    types: begin of t_vbap,
    vbeln type vbeln_va,
    posnr type posnr_va,
    matnr type matnr,
    maktx type maktx,
    end of t_vbap.
    *&--MERGED FINAL SALES TABLE
    types: begin of t_sales_final,
    vbeln type vbeln_va,
    kunnr type kunag,
    posnr type posnr_va,
    erdat type erdat, "date of creation
    auart type auart,
    netwr type netwr_ak,
    waerk type waerk,
    vkorg type vkorg,
    vtweg type vtweg,
    spart type spart,
    name1 type name1_gp,
    v_lights type c,
    stras type stras_gp,
    ort01 type ort01_gp,
    pstlz type pstlz,
    regio type regio,
    land1 type land1_gp,
    telf1 type telf1,
    matnr type matnr,
    maktx type maktx,
    end of t_sales_final.
    defining wrokarea and IT.
    WORK AREA DECLARATION *
    *&---work area for Internal Tables
    data: wa_vbak type t_vbak.
    data: wa_vbap type t_vbap.
    data: wa_sales_final type t_sales_final.
    *&--work area for layout
    data: wa_layout type slis_layout_alv.
    INTERNAL TABLES DECLARATION *
    *&---Internal tables without Header Line.
    data : i_vbak type standard table of t_vbak,
    i_vbap type standard table of t_vbap,
    i_sales_final type standard table of t_sales_final.
    *&---Internal table for field catalog
    data : i_fieldcat type slis_t_fieldcat_alv,
    *&---Internal table for the sorting sequence.
    i_sortinfo type slis_t_sortinfo_alv,
    *&---Internal table for the event catalog.
    i_eventcat type slis_t_event,
    *&---Internal table for the top of page event
    i_listheader type slis_t_listheader.
    VARIABLE DECLARATION *
    data : v_progname like sy-repid, "Program name(system defined)
    v_gridtitle type lvc_title. "Grid Title
    INITIALIZATION EVENT *
    initialization.
    v_progname = sy-repid.
    refresh:i_vbak,
    i_vbap,
    i_sales_final,
    i_fieldcat,
    i_sortinfo,
    i_eventcat,
    i_listheader.
    clear: wa_vbak,
    wa_vbap,
    wa_sales_final,
    wa_layout.
    SELECTION SCREEN *
    SCREEN FOR ENTERING INFORMATION
    selection-screen begin of block b1 with frame title text-001.
    select-options: r_vbeln for wa_vbak-vbeln obligatory.
    select-options: r_erdat for wa_vbak-erdat obligatory.
    selection-screen end of block b1 .
    AT SELECTION SCREEN *
    at selection-screen.
    perform zf_validate_sales_doc_no.
    perform zf_validate_date.
    START OF SELECTION EVENT
    start-of-selection.
    perform zf_populate_header.
    perform zf_populate_detail.
    perform zf_append_sales_final.
    END OF SELECTION EVENT
    end-of-selection.
    *If Internal Table Is Populated Then Only Display Alv Report.
    if i_sales_final is not initial.
    Prepare fieldcatalog .
    perform zf_build_fieldcat using i_fieldcat.
    MODIFY the records IN the internal TABLE for the traffic lights.
    perform zf_modify_final.
    build event catalogue
    perform zf_eventcat using i_eventcat.
    build sorting
    perform zf_sorting using i_sortinfo.
    &---Build Listheader for TOP OF PAGE EVENT.
    perform zf_build_listheader using i_listheader.
    &---Build layout.
    perform zf_layout.
    &---Initializating Grid Title
    perform zf_build_grid_title.
    &---Display alv grid.
    perform zf_display_alv_grid.
    else.
    *If Table is not Populated ie Records Does not exist
    message 'Record Does Not Exist' type 'S'.
    endif.
    *& Form zf_validate_sales_doc_no
    text
    --> p1 text
    <-- p2 text
    form zf_validate_sales_doc_no .
    select single vbeln into wa_vbak-vbeln from vbak where vbeln in r_vbeln .
    if sy-subrc <> 0.
    message i101.
    endif.
    endform. " zf_validate_sales_doc_no
    *& Form zf_validate_date
    text
    --> p1 text
    <-- p2 text
    form zf_validate_date .
    if date is future
    if r_erdat-low >= sy-datum.
    message e102.
    elseif r_erdat-high >= sy-datum.
    message e103.
    endif.
    endform. " zf_validate_date
    *& Form zf_populate_header
    text
    --> p1 text
    <-- p2 text
    form zf_populate_header .
    select vbeln
    kunnr
    erdat
    auart
    netwr
    waerk
    vkorg
    vtweg
    spart
    into table i_vbak from vbak where vbeln in r_vbeln.
    if sy-subrc <> 0.
    message 'RECORD DOES NOT EXIST' type 'E'.
    endif.
    sort i_vbak by vbeln.
    *&--LOGIC TO GET FIELDS FROM TABLE KNA1 INTO INTERNAL TABLE I_VBAK
    loop at i_vbak into wa_vbak.
    select single name1 stras ort01 pstlz regio land1 telf1 into (wa_vbak-name1,
    wa_vbak-stras,
    wa_vbak-ort01,
    wa_vbak-pstlz,
    wa_vbak-regio,
    wa_vbak-land1,
    wa_vbak-telf1)
    from kna1
    where kunnr = wa_vbak-kunnr.
    modifying it_header.
    modify i_vbak from wa_vbak.
    clear wa_vbak.
    endloop.
    endform. " zf_populate_header
    *& Form zf_populate_detail
    text
    --> p1 text
    <-- p2 text
    form zf_populate_detail .
    if i_vbak[] is not initial.
    select vbeln
    posnr
    matnr
    into table i_vbap from vbap
    for all entries in i_vbak where vbeln = i_vbak-vbeln.
    endif.
    sort i_vbap by vbeln.
    sort i_vbap by posnr.
    *&--LOGIC TO GET FIELDS FROM TABLE MAKT INTO INTERNAL TABLE I_VBAP
    loop at i_vbap into wa_vbap.
    select single maktx into (wa_vbap-maktx)
    from makt where matnr = wa_vbap-matnr and spras = sy-langu.
    modifying it_header.
    modify i_vbap from wa_vbap.
    clear wa_vbap.
    endloop.
    endform. " zf_populate_detail
    *& Form zf_append_sales_final
    text
    --> p1 text
    <-- p2 text
    form zf_append_sales_final .
    sort i_vbak by vbeln.
    sort i_vbap by vbeln posnr.
    loop at i_vbak into wa_vbak.
    move-corresponding wa_vbak to wa_sales_final.
    read table i_vbap with key vbeln = wa_vbak-vbeln
    binary search transporting no fields.
    loop at i_vbap into wa_vbap from sy-tabix.
    if wa_vbap-vbeln <> wa_vbak-vbeln.
    exit.
    endif.
    move-corresponding wa_vbap to wa_sales_final.
    append wa_sales_final to i_sales_final.
    endloop.
    endloop.
    endform. " zf_append_sales_final
    *& Form zf_build_fieldcat
    text
    -->P_I_FIELDCAT text
    form zf_build_fieldcat using p_i_fieldcat type slis_t_fieldcat_alv.
    data: l_fieldcat type slis_fieldcat_alv. "local Workarea used
    clear l_fieldcat.
    FOR LIGHT IN COLUMN
    clear l_fieldcat.
    l_fieldcat-col_pos = '1'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'V_LIGHTS'.
    " FIELD FOR WHICH CATALOG ID FILLED.
    *We are passing final internal table 'I_FINAL' to l_fieldcat(local
    *variable
    l_fieldcat-tabname = 'I_SALES_FINAL'.
    " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-just = 'C'. " FOR JUSTIFICATION.
    l_fieldcat-outputlen = 20.
    " TO DEFINE OUTPUT LENGTH OF THE COLUMN.
    append l_fieldcat to p_i_fieldcat.
    FIRST COLUMN ********************************
    l_fieldcat-col_pos = '2'. " POSITION OF THE COLUMN
    l_fieldcat-fieldname = 'VBELN'. " FIELD FOR WHICH CATALOG ID FILLED
    l_fieldcat-tabname = 'I_SALES_FINAL'. " INTERNAL TABLE BELONGS TO
    l_fieldcat-key = 'X'. " SO THAT this field is not scrollable hiddable.
    l_fieldcat-just = 'L'. " FOR JUSTIFICATION
    *l_fieldcat-hotspot = 'X'. " MARK THIS field as hotsopt
    l_fieldcat-lzero = 'X'. " OUTPUT WITH leading zeros.
    l_fieldcat-seltext_l = 'Sales Document'. " long text for header.
    l_fieldcat-seltext_m = 'Sales Doc'. " medium text for header.
    l_fieldcat-seltext_s = 'Sales Doc'. " sort text for header.
    l_fieldcat-outputlen = 20. " SET THE output length.
    l_fieldcat-ref_tabname = 'VBAK'. " FOR F1 & F4 help as
    append l_fieldcat to p_i_fieldcat.
    clear l_fieldcat.
    **************************SECOND COLUMN ********************************
    *l_fieldcat-col_pos = '3'. " POSITION OF THE COLUMN
    l_fieldcat-row_pos = '2'. " POSITION OF THE COLUMN
    l_fieldcat-fieldname = 'POSNR'. " FIELD FOR WHICH CATALOG ID FILLED
    l_fieldcat-tabname = 'I_SALES_FINAL'. " INTERNAL TABLE BELONGS TO
    l_fieldcat-key = 'X'. " SO THAT this field is not scrollable hiddable.
    l_fieldcat-just = 'L'. " FOR JUSTIFICATION
    l_fieldcat-hotspot = 'X'. " MARK THIS field as hotsopt
    l_fieldcat-lzero = 'x'. " OUTPUT WITH leading zeros.
    l_fieldcat-seltext_l = 'Sales Document Item'. " long text for header.
    l_fieldcat-seltext_m = 'Sales Document Item'. " medium text for header.
    l_fieldcat-seltext_s = 'Sales Document Item'. " sort text for header.
    l_fieldcat-outputlen = 20. " SET THE output length.
    l_fieldcat-ref_tabname = 'VBAP'. " FOR F1 & F4 help as
    append l_fieldcat to p_i_fieldcat.
    clear l_fieldcat.
    endform. " zf_build_fieldcat
    *& Form zf_eventcat
    text
    -->P_I_EVENTCAT text
    form zf_eventcat using p_i_eventcat type slis_t_event.
    data: l_eventcat type slis_alv_event.
    clear l_eventcat.
    call function 'REUSE_ALV_EVENTS_GET'
    exporting
    i_list_type = 0
    importing
    et_events = p_i_eventcat
    exceptions
    list_type_wrong = 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.
    TOP OF PAGE FORM
    clear l_eventcat.
    read table p_i_eventcat into l_eventcat with key
    name = slis_ev_top_of_page.
    "(COMPONENT "NAME"of structure)
    if sy-subrc = 0. "if success
    move 'ZF_TOP_OF_PAGE' to l_eventcat-form.
    "matches name and moves form to workarea and modifies table
    modify p_i_eventcat from l_eventcat index sy-tabix
    transporting form.
    endif.
    PF_STATUS_SET FORM
    clear l_eventcat.
    read table p_i_eventcat into l_eventcat with key
    name = slis_ev_pf_status_set.
    if sy-subrc = 0.
    move 'ZF_PF_STATUS_SET' to l_eventcat-form.
    modify p_i_eventcat from l_eventcat index sy-tabix
    transporting form.
    endif.
    USER_COMMAND FORM
    clear l_eventcat.
    read table p_i_eventcat into l_eventcat with key
    name = slis_ev_user_command.
    if sy-subrc = 0.
    move 'ZF_USER_COMMAND' to l_eventcat-form.
    modify p_i_eventcat from l_eventcat index sy-tabix
    transporting form.
    endif.
    endform. " zf_eventcat
    *& Form zf_sorting
    text
    -->P_I_SORTINFO text
    form zf_sorting using p_i_sortinfo.
    endform. " zf_sorting
    *& Form zf_build_listheader
    text
    -->P_I_LISTHEADER text
    form zf_build_listheader using p_i_listheader type slis_t_listheader.
    data: l_listheader type slis_listheader.
    refresh p_i_listheader.
    clear l_listheader.
    HEADER
    l_listheader-typ = 'H'.
    l_listheader-info = 'FUJITSU CONSULTING INDIA LTD.'.
    append l_listheader to p_i_listheader.
    SELECTION
    l_listheader-typ = 'S'.
    l_listheader-key = 'Date:'.
    l_listheader-info = sy-datum.
    append l_listheader to p_i_listheader.
    ACTION
    l_listheader-typ = 'A'.
    *l_listheader-key =
    l_listheader-info = 'SALES ORDER ALV REPORT By Rohan Malik'.
    append l_listheader to p_i_listheader.
    endform. " zf_build_listheader
    *& Form zf_build_grid_title
    text
    --> p1 text
    <-- p2 text
    form zf_build_grid_title .
    v_gridtitle = 'List of Purchase Order'.
    endform. " zf_build_grid_title
    *& Form zf_display_alv_grid
    text
    --> p1 text
    <-- p2 text
    form zf_display_alv_grid .
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = v_progname
    i_grid_title = v_gridtitle
    is_layout = wa_layout
    it_fieldcat = i_fieldcat
    it_sort = i_sortinfo
    it_events = i_eventcat
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    tables
    t_outtab = i_sales_final
    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.
    endform. " zf_display_alv_grid
    *& Form zf_top_of_page
    text
    --> p1 text
    <-- p2 text
    form zf_top_of_page .
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
    it_list_commentary = i_listheader
    i_logo = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID =
    endform. " zf_top_of_page
    *& Form zf_user_command
    text
    --> p1 text
    <-- p2 text
    form zf_user_command using r_ucomm like sy-ucomm
    rs_selfield type slis_selfield .
    case r_ucomm. "FCODE
    when 'VA03'.
    read table i_sales_final into wa_sales_final index rs_selfield-tabindex.
    set parameter id 'AUN' field rs_selfield-value.
    call transaction 'VA03' and skip first screen .
    message i102 with rs_selfield-value .
    when '&IC1'. "for hotspot with VBELN, POSNR, MATNR, KUNNR.
    if rs_selfield-fieldname = 'MATNR'.
    set parameter id 'MAT' field rs_selfield-value.
    call transaction 'MM03' and skip first screen.
    return.
    message i103 with rs_selfield-value .
    endif.
    if rs_selfield-fieldname = 'VBELN'.
    set parameter id 'AUN' field rs_selfield-value.
    call transaction 'VA03' and skip first screen.
    return.
    message i104 with rs_selfield-value .
    endif.
    endcase.
    endform. " zf_user_command
    *& Form ZF_PF_STATUS_SET
    text
    --> p1 text
    <-- p2 text
    form zf_pf_status_set using rt_extab type slis_t_extab.
    set pf-status 'Z11_RM_ALV_SO'.
    endform. " ZF_PF_STATUS_SET
    *& Form zf_layout
    text
    --> p1 text
    <-- p2 text
    form zf_layout .
    wa_layout-zebra = 'X'.
    wa_layout-lights_fieldname = 'V_LIGHTS'.
    wa_layout-lights_tabname = 'I_SALES_FINAL'.
    " 1, 2 or 3 for red, yellow and green respectively.
    endform. " zf_layout
    *& Form zf_modify_final
    text
    --> p1 text
    <-- p2 text
    form zf_modify_final .
    CODE TO EXECUTE LIGHTS
    *start of loop
    loop at i_sales_final into wa_sales_final.
    *giving conditions and modifying as we want to change many rows
    if wa_sales_final-netwr <= 10000.
    wa_sales_final-v_lights = '1'.
    modify i_sales_final from wa_sales_final transporting v_lights.
    elseif wa_sales_final-netwr > 10000 and wa_sales_final-netwr <= 100000.
    wa_sales_final-v_lights = '2'. " Exception.
    modify i_sales_final from wa_sales_final transporting v_lights.
    else.
    wa_sales_final-v_lights = '3'. " Exception.
    modify i_sales_final from wa_sales_final transporting v_lights.
    endif.
    endloop.
    reward point s if helpful
    rohan malik

  • Financial Reporting Studio Traffic Lighting

    I need to create traffic lighting in FR similar what is seen in Excel. Lighting will depend on data values. Web Analysis is not an option. However, the only literature I can find on traffic lighting is with WA. Has anyone successfully completed this in FR? The user guide has no instructions for this. The best I can come up with is conditional formatting to color the cells, but I need to have an icon.
    Thanks

    I've done that once using conditional format and wending font.
    You can't get icons in there. However you can get different fonts which resemble icon. I had something like a tick an arrow and a - to show nothing changed.
    Regards
    Celvin
    http://www.orahyplabs.com

Maybe you are looking for