POWL, how to display icons

I've already seen some questions on this forum about displaying icons in POWL lists. However i cannot get this to work, as it seems so easy to do... Simply changing the fieldcat does not work for me.
I have created a feeder class and implemented the powerlist in my webdynpro, now i would like to create a column with status icons. See the coding, who knows what is missing/wrong?
Documentation for the POWL says:
ICON_SRC             Source for icon display
ICON_SRC_REF     outtab column reference determining icon source
ICON_FIRST             Icon positioning
ICON_FIRST_REF     outtab column reference for icon positioning
Field definition in structure:
ICON                type ICON_D
ICONNAME      type ICONNAME
In Method GET_FIELD_CATALOG, the following code:
    ls_fieldcat-colid = 'ICON'.
    ls_fieldcat-icon_src_ref  = 'ICONNAME'.
    INSERT ls_fieldcat INTO TABLE me->mt_fieldcatalog.
    e_fieldcat_changed = 'X'.
    c_fieldcat = me->mt_fieldcatalog.
In Method GET_OBJECTS
  loop at lt_orders assigning <ls_orders>.
*.... code to change iconname
    <ls_orders>-iconname = '@08@'.      "Also tried 'ICON_GREEN_LIGHT' here
    append <ls_orders> to me->mt_result.
  endloop.
  e_results = me->mt_result.
Edited by: Michael on Jan 5, 2011 8:49 PM

Hi Michel,
I think everything looks Ok, can you check the field catalog settings of your ALV. It is in IF_POWL_FEEDER~GET_FIELD_CATALOG, of your POWL feeder class.
The changing parameter c_fieldcat, you need to set the Field catalog for the column 'ICON' .
DATA ls_filedcatalog TYPE LINE OF POWL_FIELDCAT_STY.
Set the parameter as below.
  DATA ls_fildcat TYPE POWL_FIELDCAT_STY.
  ls_fildcat-colid = 'ICON'.
  ls_fildcat-colpos = 'COL_NO'. "Column Number
  ls_fildcat-Header = 'Rating'.
  ls_fildcat-display_type = 'IM'. " for Image (Important)
  ls_fildcat-eabled = 'X'.
  ls_fildcat-icon_src_ref = 'REF'.  " The Reference field of the POWL atble data in which the icon path or name is populated
  ls_fildcat-icon = 'ICON_LED_RED'.  " use only one of these two, icon-src_ref or icon
  APPEND ls_fildcat TO c_fieldcat.
I hope this should work, if the changes doesn't reflect then claear the cache of POWL  using report POWL_d01.
Please let me know in case if you still face any issue.
Regards
Vineet

Similar Messages

  • How to display icon symbols for a field in se38 program

    HI
    IAM VIJAY. PLS GIVE ME THE SOLUTION .
    how to display icon symbols for a field in se38 program.
    WITH REGARDS.
    VIJAY.

    Hi
    you cab use INCLUDE <ICON> and use standard icons provided by sap.
    Sample code:
    WRITE /20(2) ICON_DATE AS ICON.
    WRITE /20(2) ICON_TIME AS ICON.
    WRITE /20(2) ICON_ADDRESS AS ICON.
    Thanks!!

  • How to display ICONS in normal report without using icons table

    Hi Friends,
    I have to display icons(traffic lights) in a normal report.
    Can we do that without using icons table?
    If yes, please let me know how?
    Thanks,

    Hi Pagidala,
    Go to txcode - ABAPDOCU and in that expand BC-ABAP Programming->ABAP User Dialog->Screens->complex screen elements->status icons on Screens.
    In this you can see sample code which may help you.
    Cheers!!

  • How to display icons on selection screen ,without using classes.

    Hi Experts,
    How can we display icons on the selection-screen ..?
    one of the methods i heard frm my frnds was to use                   ->cl_gui_picture_viewer
    but as a begginer i am not tht comfortable with classes .So is there a way around to display icons on my selection screen without using classes .
    Thanx in Advance,
    Regards ,
    Rajesh .

    Hi,
    here a short example:
    REPORT Z_TEST2.
    TABLES: SSCRFIELDS.   "Felder auf Selektionsbildern
    INCLUDE .
    SELECTION-SCREEN: BEGIN OF BLOCK A01 WITH FRAME TITLE MELDUNG1.
    SELECTION-SCREEN: SKIP 2.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: COMMENT 10(04) T_ICON.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: SKIP.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: COMMENT 01(34) T_AUFSD.
    PARAMETERS:       P_AUFSD  AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: COMMENT 01(34) T_AUFCO.
    PARAMETERS:       P_AUFCO  AS CHECKBOX DEFAULT ' '.
    SELECTION-SCREEN: PUSHBUTTON 45(04) PB01 USER-COMMAND SALL.
    SELECTION-SCREEN: PUSHBUTTON 50(04) PB02 USER-COMMAND DALL.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: COMMENT 01(34) T_AUFCS.
    PARAMETERS:       P_AUFCS  AS CHECKBOX DEFAULT ' '.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: COMMENT 01(34) T_AUFPP.
    PARAMETERS:       P_AUFPP  AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN: PUSHBUTTON 45(15) PB03 USER-COMMAND INIT.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: SKIP 2.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: PUSHBUTTON 45(15) PB04 USER-COMMAND ONLI.
    SELECTION-SCREEN: END   OF LINE.
    SELECTION-SCREEN: SKIP 2.
    SELECTION-SCREEN: END   OF BLOCK A01.
    AT SELECTION-SCREEN.
      IF SSCRFIELDS-UCOMM = 'SALL'. "alle selektieren
        P_AUFSD = 'X'.
        P_AUFCO = 'X'.
        P_AUFCS = 'X'.
        P_AUFPP = 'X'.
      ENDIF.
      IF SSCRFIELDS-UCOMM = 'DALL'. "alle deselektieren
        P_AUFSD = ' '.
        P_AUFCO = ' '.
        P_AUFCS = ' '.
        P_AUFPP = ' '.
      ENDIF.
      IF SSCRFIELDS-UCOMM = 'INIT'. "initialisiern
        P_AUFSD = 'X'.
        P_AUFCO = ' '.
        P_AUFCS = ' '.
        P_AUFPP = 'X'.
      ENDIF.
    INITIALIZATION.
      MELDUNG1 = 'Datenbankselektion'.
      T_ICON   = ICON_PRINT.
      T_AUFSD  = 'Kundenauftrag'.
      T_AUFCO  = 'Innenauftrag'.
      T_AUFCS  = 'Serviceauftrag'.
      T_AUFPP  = 'Fertingungsauftrag'.
      PB01     = ICON_SELECT_ALL.
      PB02     = ICON_DESELECT_ALL.
      CONCATENATE ICON_REFRESH 'Initial' INTO PB03.
      CONCATENATE ICON_EXECUTE_OBJECT 'Ausführen' INTO PB04.
    START-OF-SELECTION.
    write: / 'Test'.
    END-OF-SELECTION.
    Regards, Dieter

  • How to display icon status in table control

    hi, i trying to display icon in table control its not displaying
    i given below statment.
    DATA: BEGIN OF WA_MARA,
            ICON1(4) TYPE C,
             END OF WA_MARA.
         INCLUDE <list>.
    MOVE ICON_GREEN_LIGHT TO IT_MARA-ICON1.
    APPEND IT_MARA..
    when i debugging it display green icon but after run the program its display ' @08@ '   in table control.
    how to display green icon in table control help me.

    Hi,
    check the link:
    Table control in custom infotypes

  • How to display icon in view

    I've already seen some questions on this forum about displaying icons but in ALV Table.I have data in ALV display and user status as icon but when i select a row i need to display all row details in another view but for user status field its not showing in icon..coming in i/p field.So how to display this field as icon.I tried to change data element as icon...but its not working.
    Thanks
    Kiran

    Hi Kiran,
    Instead of I/P element use IMAGE ui element and check.
    Cheers,
    Kris.

  • MAX: How to display icons (blob) in VB

    Hi!
    I've written a VB application which gets some information from MAX. It works very well, but I was wondering how to display the icons (stored as blob). Who can help me? Thank you in advance!!
    here is a piece of my code:
    Dim maxConf As mxConfiguration
    Dim maxItems As mxItems
    Dim maxItemAttribute As ImxItemAttribute
    Set maxConf = New MXCTRLLib.mxConfiguration
    maxConf.Initialize ("Local")
    Set maxItems = maxConf.EnumItems("CAT=Software,ALL")
    Set maxItemAttribute = maxItems.Item(ItemsListBox.ListIndex).EnumItemAttributes.Item(AttributesListBox.ListIndex)
    Select Case maxItemAttribute.AttributeType
    Case "Blob"
    'here, I want to display the icon and I need your help!
    Case Else
    ListBox1.AddItem (maxItemAttribute.AttributeValue)
    end select

    I will try this when I get back home - travelling at the moment.
    A bit more background....... I have a Function that is called to produce a yearly calendar view of rentals for a home, along with the rental prices - this has already been written using the as_pdf3 package, which can either physically create the report on the server (using utl_file), or it can return the blob direct.
    On the screen, the user can select the years that they wish to see in the report, push a button which will pass the parameters into the above said function, and then launch the "blob" in another window (as the blob is PDF format, it would launch the users PDF reader) - if the user then wants to save the report, they can do (using PDF reader) - this avoids me a) saving and housekeeping a file(s) on the server, b) I don't have to enable utl_file for the schema

  • How to display iconic images using forms 9i

    Hi,
    i had created a simple push button ,and made its properties iconic=yes and icon file name =c:\temp\save
    i had copied the save.GIF file in the c:\temp path
    also i had made necessary changes in the orion.web file
    and registry.dat
    actually i had the metalink document 203846.1 and followed all the step written in that doc.
    but then also during run time i am not able to see the icons.
    Can you give me a sample code having only one push button
    and all the changes in different files to make the icons appear in web.
    I had tried all the steps so pl give me the sample step by step code.
    Thanks ,
    Kumar Iyer

    Hi Kumar,
    I think if you follow the oracle note 203846.1 more or less it should be fine. I took a little exception on step 7 which requires modifying the registry.dat file.
    I ignored the step 7, try this in forms builder for button property
    1) icon filename=save
    2) create jar file for icons under c:\temp directory, using the command
    C:\Temp>jar -cvf icons.jar *.gif
    please note that file save.GIF should be save.gif since java is case sensitive.
    3) modify the following entries in file <9iDS_HOME>\forms90\server\formsweb.cfg
    archive_jini=f90all_jinit.jar,/forms90/icons/icons.jar
    imageBase=codebase
    so this should help in your test form to display icon at runtime.
    -Lokesh

  • How to display icon files in mac

    In JLabel how to add icon files with ext .ico from MAC OSX

    What temp files? Most are deleted automatically when an application quits or when you log in or restart.

  • How to display icon in alv report output

    hi,
    my ewquirement in in alv report in one column to diaplay the icon(tickmark) based on some codition.
    how to achieve it??
    condition is
    Affected (Locked on Current ECM) u2013 can use symbols    for affected and   for changing u2013
    u2022     Lock AEOI u2013 CCLCK for AE01-OBJKT (Material) lock.
    Condition:
      If AEOI u2013 CCLCK is activated then display symbols  (tickmark)  in line of their AE01-OBJKT (Material). else display
    (x mark)

    Hi,
    In field catalog of grid set
    Ex--
    when 'Field'.
      lwa_fcat-icon      = c_true.
    based on your condition
    set the desired icon in table.
    Ex.... lwa_table-field = icon_tick.

  • How to display ICON uskng ABAP Query

    Dear all,
    I want to add a new field to an existing query which generates Selfbill Discrepancy report.I want to add a field in the selection screen to see if the billing Document has been cleared or not. I have added this field.
    After executing the report based on whether the document has been cleared or not i want to display either RED or GREEN colour Icon in the first coloumn of the report output.
    I searched some documents regarding this.It is mentioned that a new local field should be created and we have an option to add ICON there. But i am not able to create the local field.If i give the icon name and also choose the ICON symbol but i get an error "Field not yet defined". Can you please help me in this. or is there any other way to add icon to the output.Could you please ellabiorate on the same.
    Regards,
    Subasree

    Just add a field of type c(4) & assign the value '@08@' for Green, '@0A@' for Red. It will be displayed.
    You can check this sample code.
    DATA it_icon TYPE TABLE OF ty_icon WITH HEADER LINE.
    it_icon-c = '@08@'. APPEND it_icon.
    it_icon-c = '@09@'. APPEND it_icon.
    it_icon-c = '@0A@'. APPEND it_icon.
    LOOP AT it_icon.
      WRITE:/ it_icon-c.
    ENDLOOP.
    Refer to the type pool ICON for icon codes.
    Regards,
    Naga Sai
    Edited by: Naga Sai Swapna on Dec 9, 2009 7:38 AM
    Edited by: Naga Sai Swapna on Dec 9, 2009 7:42 AM

  • To display icon in ALV report

    How to display icon (like green or red circle similar to signal light) in ALV Report

    Hi,
    just create a separate col in alv and in the field catalog assign the property lights .
    and refer to the wiki link
    [http://wiki.sdn.sap.com/wiki/display/Snippets/ALVGriddisplaywithLights]
    Hope this resolves the issue !
    Best of Luck !!
    Regards,
    Ravi Aswani

  • Displaying icon in tow in table control

    Hi experts, I need help on how to display icons in every row in my table control which will be displayed via SAP GUI not Web.
    Did anyone have successfully done this?
    Thank you in advance guys..

    Hi,
    Check these links.It can help you.If so,kindly reward points by clicking the star on the left of reply.
    Re: Showing a status icon column on a table control
    Re: How to show icon(traffic lights) into table control in dialog program?
    http://www.sapdesignguild.org/resources/MiniSG-old/from_develop/norm_status_icons.htm#positioning_4

  • Displaying icons on views

    Hi,
    Anyone know how to display icons on buttons and on labels such as the delete icon and save icons on screens in CRM 7.0.
    Some documentation / link to read on would be appreciated.
    Regards,
    Sbu

    I already used icons in a table column if this is from interest:
    1. GET_method of the attribute:
    IF lv_bool = 'X'.
        CALL METHOD cl_thtmlb_util=>get_icon_info
          EXPORTING
         iv_icon_type       = cl_thtmlb_util=>gc_icon_pdfshortcut
          IMPORTING
            ev_icon_filename   = lv_filename
        CALL METHOD cl_thtmlb_util=>get_icon_url
          EXPORTING
            iv_icon_name    = lv_filename
          RECEIVING
            ev_url          = value
    ENDIF.
    2. GET_P_method of the attribute:
    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
            IF lv_bool = 'X'.
              rv_value = if_bsp_dlc_view_descriptor=>field_type_image.
            ENDIF.
          WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
            rv_value = 'PDF'.
        ENDCASE.
    Kind regards
    Manfred

  • How to display different icon, for different node of jtree

    Hi All,
    How to display different icon, for different node of jtree

    you haven't responded to my last post here: [http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676|http://forums.sun.com/thread.jspa?threadID=5323190&messageID=10382676#10382676]

Maybe you are looking for

  • Can't run app-client example (cont.)

    I added an application-client.xml file in src\client: <?xml version="1.0"?> <!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd"> <application-

  • SAP Netweaver CE 7.1 - Cleaning up JAVA Netweaver Cache Procedure???...

    Good Afternoon, One of my clients has a SAP Netweaver CE 7.1 (EHP1) and there are several development team developing using the CAF in the system (several webservices, etc...). One of the development teams is requesting a Netweaver Java Cache cleanup

  • Opening MS-DOS with Java

    I'm involved in a college programming class with Java and I'm stumped. I need to create a Java program that is able to open the MS-DOS prompt window and run a Java program in it as well as add a MS-DOS command afterwards in order to catch the output.

  • Windows XP will not start up on HP Pavilion a350n.

    Hp Pavilion a350n desktop Windows XP No Error Message I have installed new ram and a new video card, but all was fine for many months/ possibly even a year after install. Hi, any help that anyone can give me would be greatly appreciated. My computer,

  • Making non editable in SRM4.0

    Hi , We are in SRM 4.0, We have a requirment where in we need to make Quantity and Purchasing group fields non editable if we pick catalogs. I tried following :- 1,  In SRM4.0 BBP_UI_CONTROL_BADI does not have BBP_SC_UI_CTRL method. 2, Tried using be