Display status icon

Hi all,
how can I display the status Icon (like the icon for status @AH@, see program SHOWICON ) in a BEx Web Application and not the char4 expression of that?
Many thanks!
Best regards
Tobias

I extract data from SAP Solution Manager (ABAP) to a SAP Business Intelligence data model. Having a look at the received data in BI I still get the icon expression of the char4 value (e.g. yellow exclamation mark). Loading the data via a query into a BEx chart or analysis table I just get the char4 value.
Hope this helps.
Best regards
Tobias

Similar Messages

  • How to display an status Icon in Table UI web dynpro ABAP?

    Hi Experts ,
    How to display an status Icon ( Traffic light ) in Table UI web dynpro ABAP? can somebody tell with a coding example. also I need to update status on condition so whats the best way?
    Thanks in advance.
    Regards,

    Hi Laeeq,
    click on table cntrol n place it on the screen..
    now click on the icon button n place it in the table control area.. a column of icons get created. name it (say) ICON.
    in the PBO..
    loop at internal table and call module in the loop (say) .
    MODULE ICON_DISP.
    now in the module try the foll code :
    module icon_display output.
    check some condition and assign the icon to the variable icon_r
      icon_R = 'ICON_GREEN_LIGHT'.
      CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name                        = ICON_R
        TEXT                        = ' '
        INFO                        = ' '
        ADD_STDINF                  = 'X'
       IMPORTING
         RESULT                      = ICON
      EXCEPTIONS
        ICON_NOT_FOUND              = 1
        OUTPUTFIELD_TOO_SHORT       = 2
        OTHERS                      = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      endmodule.
    where icon(35) and icon_r(35) type c .
    hope this helps u..
    Regards
    Aparna

  • To display the icon on the report output

    hi friends good afternoon!
    iam devloping a report which need to display the icon on the output.
    when i press the icon some action will be performed,
    this is my requirment plz help.

    Hi,
    First declare INCLUDE ICON in the program Code.
    Then you can write the different Icons:
    declare a single char field.
    move the icons into that and display.
    sample code:
    form select_icons.
      data: w_disp_tab like zpickdisp,
            w_disp_head like zpickhead,
            w_color like zpickdisp-color,
            ov_icon like zpickdisp-ov_icon,
            gi_icon like zpickdisp-gi_icon,
            to_icon like zpickdisp-to_icon,
            lp_icon like zpickdisp-lp_icon,
            pc_icon like zpickdisp-pc_icon,
            lv_icon like zpickdisp-lv_icon,
            vm_icon like zpickdisp-vm_icon,
            em_icon like zpickdisp-em_icon,
            t_ovst_tab like t_disp_tab with header line.
      constants: c_col1(3) value 'C10',
                 c_col2(3) value 'C20'.
      sort t_data_tab by lgtor vbeln.
      w_color = c_col2.
      loop at t_data_tab.
        at new lgtor.
        fill ALV header table
          clear w_disp_head.
          w_disp_head-lgtor = t_data_tab-lgtor.
          append w_disp_head to t_disp_head.
        endat.
      goods issue status & overall amber/green only
        case t_data_tab-wbstk.
          when c_c.
            move icon_green_light to gi_icon.
            move icon_green_light to ov_icon.
          when others.
            move icon_red_light to gi_icon.
            move icon_yellow_light to ov_icon.
        endcase.
      transfer order status
        case t_data_tab-lvsta.
          when c_a.
            move icon_red_light to to_icon.
          when c_b.
            move icon_yellow_light to to_icon.
          when c_c.
            move icon_green_light to to_icon.
          when space.
          write N/A
            to_icon = 'N/A'.
        endcase.
      loaded to pallet status
        if not t_data_tab-zpallet_no is initial.
          move icon_green_light to lp_icon.
        else.
          move icon_red_light to lp_icon.
        endif.
      pallet count status
        if not t_data_tab-zcount_check is initial.
          move icon_green_light to pc_icon.
        else.
          move icon_red_light to pc_icon.
        endif.
      loaded to van status
        if not t_data_tab-zvan_no is initial.
          move icon_green_light to lv_icon.
        else.
          move icon_red_light to lv_icon.
        endif.
      van manifest status
        if not t_data_tab-zvan_print is initial.
          move icon_green_light to vm_icon.
        else.
          move icon_red_light to vm_icon.
        endif.
      end of day manifest status
        if not t_data_tab-zeod_print is initial.
          move icon_green_light to em_icon.
        else.
          move icon_red_light to em_icon.
        endif.
      move working data table to display table
        move-corresponding t_data_tab to w_disp_tab.
        w_disp_tab-ov_icon = ov_icon.
        w_disp_tab-gi_icon = gi_icon.
        w_disp_tab-to_icon = to_icon.
        w_disp_tab-lp_icon = lp_icon.
        w_disp_tab-pc_icon = pc_icon.
        w_disp_tab-lv_icon = lv_icon.
        w_disp_tab-vm_icon = vm_icon.
        w_disp_tab-em_icon = em_icon.
        w_disp_tab-color = w_color.
      fill N/A values for initial fields for display
        if w_disp_tab-packvorschr is initial.
          w_disp_tab-packvorschr = 'N/A'.
        endif.
        if w_disp_tab-exidv is initial.
          w_disp_tab-exidv = 'N/A'.
        endif.
        if w_disp_tab-zpallet_no is initial.
          write 'N/A' to w_disp_tab-zpallet_no.
        endif.
        if w_disp_tab-zvan_no is initial.
          write 'N/A' to w_disp_tab-zvan_no.
        endif.
      display different color for new doc number
        at end of vbeln.
          if w_color = c_col1.
            w_color = c_col2.
          elseif w_color = c_col2.
            w_color = c_col1.
          endif.
        endat.
        append w_disp_tab to t_disp_tab.
        clear w_disp_tab.
      endloop.
    we have all the icons in display but need to check the overall status
    as this refers to the line items
    green and amber statuses already set and use the same criteria as the
    goods issue status unless detected as red here
      data: ov_stat_red(1).
      clear w_disp_tab.
      sort t_disp_tab by vbeln.
      loop at t_disp_tab into w_disp_tab.
        at new vbeln.
        check all line items for delivery
          loop at t_data_tab where vbeln = w_disp_tab-vbeln.
            if t_data_tab-lvsta = c_a.
            set overall status to red
              ov_stat_red = c_yes.
              exit.
            else.
            leave green/amber status icon as previosly determined
            endif.
          endloop.
          if ov_stat_red = c_yes.
          set overall status to red for all items in that delivery
            clear ov_stat_red.
            move icon_red_light to w_disp_tab-ov_icon.
            modify t_disp_tab from w_disp_tab transporting ov_icon
                              where vbeln = w_disp_tab-vbeln.
          endif.
        endat.
      endloop.
    endform.                    " select_icons
    Regards,
    Anji

  • How to display different icon within WDA alv table base on row data ?

    Hi,
    is that possible to display different icon for every row within ALV table depending on the row data ?
    for instance if the status 'S' display ~Icon/SuccessMessage and 'E' display ~Icon/ErrorMessage ?
    because base on this code below i only can set 1 icon for the whole row data.
    LOOP AT lt_columns ASSIGNING <fs_column>.
        CASE <fs_column>-id.
          WHEN 'ICO'.
            CREATE OBJECT lr_caption.
               lr_caption->set_image_source( value = '~Icon/SuccessMessage').
               <fs_column>-r_column->set_cell_editor( lr_caption ).
        ENDCASE.
      ENDLOOP.
    Thank you in advance.
    Fernand

    Hello,
    Yes it is possible to display different images based on data.
    For that what you can do is create one attribute 'STATUS' of type string in context node which you are mapping to ALV.
    And fill that attribute with the path to image based on your requirement like for status 'S' set the attribute to ~Icon/SuccessMessage and if status is 'E', set it to ~Icon/ErrorMessage at runtime.
    Now in the settings for ALV use the following code:
    * Display icon in column seatsocc
      DATA: lr_column TYPE REF TO cl_salv_wd_column,
            lr_image TYPE REF TO cl_salv_wd_uie_image,
            lv_icon TYPE string.
      lr_column = lv_model->if_salv_wd_column_settings~get_column( 'SEATSOCC' ).
      CREATE OBJECT lr_image.
      lr_image->SET_SOURCE_FIELDNAME( 'STATUS' ).
      lr_column->set_cell_editor( lr_image ).
    in the above code, column 'SEATSOCC' will be displayed as an icon.
    Sample code to fill the attribute 'STATUS'
    LOOP AT lt_flights INTO ls_flight.
        lv_seatsfree = ls_flight-seatsmax - ls_flight-seatsocc.
        IF lv_seatsfree = 0.
          ls_flight-status = 'ICON_RED_LIGHT'.
        ELSEIF lv_seatsfree <= 50.
          ls_flight-status = 'ICON_YELLOW_LIGHT'.
        ELSE.
          ls_flight-status = 'ICON_GREEN_LIGHT'.
        ENDIF.
        MODIFY lt_flights FROM ls_flight.
      ENDLOOP.
    Hope this helps!
    Regards,
    Srilatha
    Edited by: Srilatha M on Jun 25, 2010 12:02 PM

  • Why is AirPlay status icon missing from menu bar?

    After updating to Mavericks and installing/configuring a new AirPort Time Capsule (APTC), no AirPlay icon was present in the menu bar of my Mac. I updated my Apple TV3 software and configured it to the new APTC network. An AirPlay status icon appeared in the menu bar for about 1 day only, and then disappeared. In the Apple TV settings, AirPlay is "On". On my Mac>System Preferences>Displays>Display>AirPlay Display menu (lower left) shows a greyed-out "No devices detected". My AppleTV light is on. Is there a known problem with APTC, or am I missing something?

    Cycle power on all of your devices (turn On first your 3rd party router then Time Capsule, then mbp and apple tv). Make sure that your MBP and Apple TV are connected to the same network.
    When router mode settings on Time Capsule are set to Bridge Mode, then router is resposible for distributing settings to all of your devices and could have some issues with it. Simply cycling power might resolve your problem.
    Some routers might require to be off for a bit longer (up to even 10mins). Try it.

  • How to bring status icons in the Adobe Form.

    Hi Experts,
    I am new to Adobe forms and I need to bring a icon indicating the satus ( For example green icon shoud be displayed if the values exceed our expection ) . Currently if I try to bring an icon in the form it is just displaying the text value corresponding to the icon even though the icon is of data type  ICONTEXT (For Example:Instead of displaying a icon in green it just displaying the corresponding text values like '@@4' ) . When we try to display the same icon in the table view it is displayed in a form of image.
    Kindly let me know how to bring status icon in the adobe forms.
    Thanks in Advance.
    Regards,
    Nandha

    Hi,
    The ADS will not understand this as an icon and create it on the PDF. If you want to insert an icon in the
    PDF you should insert it as an image in the Designer.
    Arun

  • Status Icon

    Hi all,
    i need to put Status icons (Traffic lights Green, yellow, red) based on some condition in one of coloumn of ALV grid. Plese send me a sample code to put status icons in ALV grid.
    Thanks in advance.
    Regards,
    Suresh.

    Hi,
    chek the below code..
    TYPE-POOLS:SLIS.
    TABLES: MARA, MAKT.
    *AS per the req the internal table sud consist of check box, lights, material no, icon ,material desc,
    editable basic text box.
    data : BEGIN OF itab1 occurs 0,
    v_TEXT(60) type c,
    v_lights(2) type c,
    v_box(1) type c,
    v_icon(4) type c,
    MATNR type MATNR,
    MAKTX type MAKTX,
    text type tdline,
    END OF itab1.
    DATA: BEGIN OF itab2 occurs 0 ,
    MATNR TYPE MATNR,
    MAKTX TYPE MAKTX,
    TEXT_1 TYPE TDLINE,
    END OF ITAB2.
    DATA: S_NAME TYPE THEAD-TDNAME.
    data: wa type tline.
    data: wa1(55).
    data: v_progname type sy-repid.
    data: v_gridtitle type lvc_title.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    parameters: p_var like disvariant-variant.
    FOR USER-DEFINED AND GENERAL LIST VARIANTS.
    data: i_variant like disvariant.
    *DATA DECLARATION FOR THE CATALOGS
    data: i_fieldcat type slis_t_fieldcat_alv.
    *DATA DECLARATION FOR THE 2ND CATALOGS
    data: i_fC_DISPLAY type slis_t_fieldcat_alv.
    FOR LAYOUT
    data: i_layout type slis_layout_alv.
    FOR THE EVENT CATALOG.
    data: i_eventcat type slis_t_event.
    FOR THE TOP OF PAGE EVENT
    data: i_listheader type slis_t_listheader.
    FOR THE INTERNAL TABLE CONTAINING LONGTEXT
    DATA: IT_LINES TYPE TLINE OCCURS 0 WITH HEADER LINE.
    INITIALIZATION EVENT *
    *to perform screen validations..........
    at selection-screen.
    perform sel_validations.
    initialization.
    v_progname = sy-repid.
    DISPLAY DEFAULT VARIANT
    perform default_variant.
    START OF SELECTION EVENT *
    start-of-selection.
    perform zf_build_fieldcat using i_fieldcat.
    perform DISPLAY using i_fC_DISPLAY.
    perform SELECT_TABLE.
    perform modify_MARA.
    perform layout_itab1.
    perform zf_build_eventcat using i_eventcat.
    perform zf_build_listheader using i_listheader.
    perform grid_title.
    perform display_alv_grid.
    *& Form zf_check_var_exist
    text
    --> p1 text
    <-- p2 text
    form zf_check_var_exist .
    data: l_variant like disvariant.
    if not p_var is initial.
    clear l_variant.
    l_variant-report = v_progname.
    l_variant-variant = p_var.
    CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
    EXPORTING
    I_SAVE = 'A'
    CHANGING
    cs_variant = L_VARIANT
    EXCEPTIONS
    WRONG_INPUT = 1
    NOT_FOUND = 2
    PROGRAM_ERROR = 3
    OTHERS = 4
    IF sy-subrc = 0.
    clear i_variant.
    move l_variant-variant to i_variant-variant.
    move l_variant-report to i_variant-report.
    ELSE.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.
    endform. " zf_check_var_exist
    *& 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.
    clear l_fieldcat.
    l_fieldcat-col_pos = '1'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'V_box'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'Itab1'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-emphasize = 'C410'. " COLOR OF THIS COLUMN.
    l_fieldcat-seltext_l = 'check-box'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'box'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'box'. " SHORT TEXT FOR HEADER.
    l_fieldcat-CHECKBOX = 'X'.
    l_fieldcat-edit = 'X'.
    l_fieldcat-outputlen = 2.
    " TO DEFINE OUTPUT LENGTH OF THE COLUMN.
    append l_fieldcat to p_i_fieldcat.
    *V_LIGHTS(1) TYPE C. " FOR TRAFFIC LIGHTS.
    clear l_fieldcat.
    l_fieldcat-col_pos = '2'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'V_LIGHTS'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'Itab1'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-emphasize = 'C410'. " COLOR OF THIS COLUMN.
    l_fieldcat-seltext_l = 'LIGHT-BOX'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'L-BOX'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'L.B.'. " SHORT TEXT FOR HEADER.
    l_fieldcat-outputlen = 7. " TO DEFINE OUTPUT LENGTH OF THE COLUMN.
    append l_fieldcat to p_i_fieldcat.
    I_MARA-MATNR. MATERIAL NUMBER
    clear l_fieldcat.
    l_fieldcat-col_pos = '3'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'MATNR'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'itab1'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-key = 'X'. " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
    l_fieldcat-just = 'C'. " FOR JUSTIFICATION.
    l_fieldcat-hotspot = 'X'. " MARK THIS FIELD AS HOTSOPT TO CAUSE THE F2 EVENTS TO TRIGGER.
    l_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
    l_fieldcat-seltext_l = 'MATERIAL Number'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'MTL No.'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'M.N.'. " SHORT TEXT FOR HEADER.
    l_fieldcat-outputlen = 18. " SET THE OUTPUT LENGTH.
    l_fieldcat-ref_tabname = 'MARA'. " FOR F1 & F4 HELP AS REFERNCED TO THE DDIC TABLE.
    append l_fieldcat to p_i_fieldcat.
    itab1-V_ICON.
    clear l_fieldcat.
    l_fieldcat-col_pos = '4'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'V_ICON'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'ITAB1'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-seltext_m = 'Icon'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-icon = 'X'. " AS ICON.
    append l_fieldcat to p_i_fieldcat.
    MAKT-MAKTX
    clear l_fieldcat.
    l_fieldcat-col_pos = '5'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'MAKTX'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'itab1'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-key = 'X'. " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
    l_fieldcat-just = 'C'. " FOR JUSTIFICATION.
    l_fieldcat-hotspot = 'X'. " MARK THIS FIELD AS HOTSOPT TO CAUSE THE F2 EVENTS TO TRIGGER.
    l_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
    l_fieldcat-seltext_l = 'MATERIAL DESCRIPTION'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'MTL DESC.'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'M.D.'. " SHORT TEXT FOR HEADER.
    l_fieldcat-outputlen = 40. " SET THE OUTPUT LENGTH.
    l_fieldcat-ref_tabname = 'MAKT'. " FOR F1 & F4 HELP AS REFERNCED TO THE DDIC TABLE.
    append l_fieldcat to p_i_fieldcat.
    itab11-TEXT.
    clear l_fieldcat.
    l_fieldcat-col_pos = '6'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'TEXT'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'ITAB1'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-seltext_m = 'Basic Text'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-EDIT = 'X'. " AS SYMBOL.
    l_fieldcat-seltext_l = 'BASIC TEXT'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'B.TEXT.'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'B.T.'. " SHORT TEXT FOR HEADER.
    l_fieldcat-outputlen = 40.
    append l_fieldcat to p_i_fieldcat.
    endform. " zf_build_fieldcat
    *& Form SELECT_TABLE
    text
    --> p1 text
    <-- p2 text
    form SELECT_TABLE .
    Select matnr into itab1-matnr from mara where matnr in s_matnr.
    append itab1.
    endselect.
    loop at itab1.
    select single maktx into itab1-maktx from makt where matnr = itab1-matnr.
    modify itab1.
    endloop.
    *SELECT MARAMATNR MAKTMAKTX INTO CORRESPONDING FIELDS OF TABLE itab1 FROM MARA INNER JOIN MAKT ON MARAMATNR = MAKTMATNR
    *WHERE MARA~MATNR IN S_MATNR.
    IF SY-SUBRC <> 0.
    MESSAGE E001.
    endif.
    sort itab1 by matnr.
    endform. " SELECT_TABLE
    *& Form modify_MARA
    text
    --> p1 text
    <-- p2 text
    form modify_MARA .
    loop at itab1.
    S_NAME = itab1-MATNR.
    REFRESH IT_LINES.
    CLEAR IT_LINES.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    id = 'GRUN'
    language = 'E'
    name = S_NAME
    object = 'MATERIAL'
    ARCHIVE_HANDLE = 0
    LOCAL_CAT = ' '
    IMPORTING
    HEADER =
    tables
    lines = IT_LINES
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    if iTAB1-MATNR < '10'.
    iTAB1-v_lights = '3'.
    modify iTAB1 transporting v_lights.
    ENDIF.
    if iTAB1-MATNR > '50'.
    iTAB1-v_lights = '2'.
    modify iTAB1 transporting v_lights.
    ENDIF.
    *if ITAB1-MATNR = '000000000000000001'.
    itab1-v_LIGHTS = '1'.
    modify itab1 transporting v_LIGHTS.
    endif.
    *READ TABLE IT_LINES into wa.
    *here the longtext maybe of more than 1 line, so we concatenate a temporary field by looping at the it_lines
    *and then getting the whole long text into that variable.
    *endloop.
    loop at it_lines.
    concatenate wa1 it_lines-tdline into wa1.
    endloop.
    itab1-text = wa1.
    modify itab1.
    clear wa1.
    *no longtext, so red color
    IF ITab1-text = ''.
    itab1-v_lights = '1'.
    modify itab1 transporting v_LIGHTS.
    *for longtext with starting word important, green color
    elseIF ITab1-text(9) = 'IMPORTANT' or itab1-text(9) = 'important'.
    itab1-v_lights = '3'.
    modify itab1 transporting v_LIGHTS.
    *for any other longtext , yellow color.
    else. itab1-v_lights = '2'.
    modify itab1 transporting v_LIGHTS.
    ENDIF.
    endloop.
    LOOP AT itab1.
    if itab1-matnr < '000000000000000036'.
    itab1-v_icon = '@1V@'.
    modify itab1 transporting v_icon.
    endif.
    IF ITAB1-MATNR = '000000000000000001'.
    itab1-v_icon = '@4V@'.
    modify itab1 transporting v_icon.
    endif.
    if itab1-matnr > '000000000000000050'.
    itab1-v_icon = '@7V@'.
    modify itab1 transporting v_icon.
    endif.
    endloop.
    endform. " modify_MARA
    *& Form sel_validations
    text
    --> p1 text
    <-- p2 text
    form sel_validations .
    select matnr into corresponding fields of itab1 from mara where matnr in s_matnr.
    exit.
    endselect.
    if sy-subrc <> 0.
    message e001.
    endif.
    endform. " sel_validations
    *& Form grid_title
    text
    --> p1 text
    <-- p2 text
    form grid_title .
    v_gridtitle = 'LIST OF MATERIALS WITH DESCRIPTIONS AND BASIC TEXT.'.
    endform. " grid_title
    *& Form display_alv_grid
    text
    --> p1 text
    <-- p2 text
    form display_alv_grid .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER = ' '
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = 'Z8SAPNA_ALV_REQ1'
    I_CALLBACK_PF_STATUS_SET = 'ZF_PF_STATUS '
    I_CALLBACK_USER_COMMAND = ' '
    I_CALLBACK_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    I_STRUCTURE_NAME = 'itab1'
    I_BACKGROUND_ID = ' '
    I_GRID_TITLE = v_gridtitle
    I_GRID_SETTINGS =
    IS_LAYOUT = i_layout
    IT_FIELDCAT = i_fieldcat
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = 'A'
    IS_VARIANT = i_variant
    IT_EVENTS = i_eventcat
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IT_ALV_GRAPHICS =
    IT_HYPERLINK =
    IT_ADD_FIELDCAT =
    IT_EXCEPT_QINFO =
    I_HTML_HEIGHT_TOP =
    I_HTML_HEIGHT_END =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    t_outtab = itab1
    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. " display_alv_grid
    *& Form layout_itab1
    text
    --> p1 text
    <-- p2 text
    form layout_itab1 .
    i_layout-zebra = 'X'.
    i_layout-totals_text = 'Total'(a00).
    i_layout-subtotals_text = 'SubTotal'(a01).
    i_layout-lights_fieldname = 'V_LIGHTS'.
    i_layout-lights_tabname = 'itab1'.
    i_layout-box_fieldname = 'V_BOX'.
    i_layout-box_tabname = 'itab1'.
    i_layout-edit = 'x'.
    endform. " layout_itab1
    *& Form default_variant
    text
    --> p1 text
    <-- p2 text
    form default_variant .
    i_variant-report = v_progname.
    PROVIDES THE DEFAULT VARIANT FOR THE LIST SPECIFIED IN THE STRUCTURE CS_VARIANT
    call function 'REUSE_ALV_VARIANT_DEFAULT_GET'
    exporting
    i_save = 'A' " 'A' , 'X', 'U', ' '
    changing
    cs_variant = i_variant
    exceptions
    wrong_input = 1
    not_found = 2
    program_error = 3
    others = 4.
    if sy-subrc = 0.
    p_var = i_variant-variant.
    ELSE.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    endform. " ZF_DEFAULT_VARIANT
    *& Form 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'.
    endform. " TOP-OF-PAGE
    *& 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.
    l_listheader-typ = 'H'.
    l_listheader-info = text-001.
    append l_listheader to p_i_listheader.
    endform. " zf_build_listheader
    *& ZF_PF_STATUS
    form zf_pf_status using p_extab type slis_t_extab.
    set pf-status 'MENU1'.
    endform. " PF_STATUS
    *& ZF_USER_COMMAND
    form ZF_user_command using p_ucomm type sy-ucomm
    p_selfield type slis_selfield.
    case p_ucomm.
    WHEN 'IC1'.
    WHEN '&DISP'.
    LOOP AT ITAB1 WHERE V_BOX = 'X'.
    ITAB2-MATNR = ITAB1-MATNR.
    ITAB2-MAKTX = ITAB1-MAKTX.
    ITAB2-TEXT_1 = ITAB1-TEXT.
    APPEND ITAB2.
    ENDLOOP.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = 'z8sapna_alv_req1'
    I_CALLBACK_PF_STATUS_SET = 'ZF_PF_STATUS'
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME = 'itab2'
    IS_LAYOUT =
    IT_FIELDCAT = i_fc_display
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS = i_eventcat
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 1
    I_SCREEN_START_LINE = 1
    I_SCREEN_END_COLUMN = 150
    I_SCREEN_END_LINE = 150
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    t_outtab = itab2
    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.
    when '&UPDAT'.
    LOOP AT ITAB1 WHERE V_BOX = 'X'.
    when others.
    if p_selfield-fieldname = 'MATNR' .
    message i034 with p_selfield-value.
    endif.
    endloop.
    endcase.
    endform. " ZF_USER_COMMAND
    *& Form zf_build_eventcat
    text
    -->P_I_EVENTCAT text
    form zf_build_eventcat using p_i_eventcat TYPE slis_t_event.
    data: l_event type slis_alv_event.
    GET ALL THE EVENTS.
    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.
    clear l_event.
    read table p_i_eventcat with key name = slis_ev_top_of_page into l_event.
    if sy-subrc = 0.
    move 'ZF_TOP_OF_PAGE' to l_event-form.
    append l_event to p_i_eventcat.
    endif.
    clear l_event.
    read table p_i_eventcat with key name = slis_ev_user_command into l_event.
    if sy-subrc = 0.
    move 'ZF_USER_COMMAND' to l_event-form.
    append l_event to p_i_eventcat.
    endif.
    clear l_event.
    read table p_i_eventcat with key name = slis_ev_pf_status_set into l_event.
    if sy-subrc = 0.
    move 'ZF_PF_STATUS'(002) to l_event-form.
    append l_event to p_i_eventcat.
    endif.
    endform. " zf_build_eventcat
    *& Form i_fC_DISPLAY
    *& Form DISPLAY
    text
    -->P_I_FC_DISPLAY text
    form DISPLAY using p_i_fc_display TYPE slis_t_fieldcat_alv.
    data: l_fieldcat type slis_fieldcat_alv.
    I_MARA-MATNR. MATERIAL NUMBER
    clear l_fieldcat.
    l_fieldcat-col_pos = '1'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'MATNR'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'itab2'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-key = 'X'. " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
    l_fieldcat-just = 'C'. " FOR JUSTIFICATION.
    l_fieldcat-hotspot = 'X'. " MARK THIS FIELD AS HOTSOPT TO CAUSE THE F2 EVENTS TO TRIGGER.
    l_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
    l_fieldcat-seltext_l = 'MATERIAL Number'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'MTL No.'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'M.N.'. " SHORT TEXT FOR HEADER.
    l_fieldcat-outputlen = 18. " SET THE OUTPUT LENGTH.
    l_fieldcat-ref_tabname = 'MARA'. " FOR F1 & F4 HELP AS REFERNCED TO THE DDIC TABLE.
    append l_fieldcat to p_i_FC_DISPLAY.
    MAKT-MAKTX
    clear l_fieldcat.
    l_fieldcat-col_pos = '2'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'MAKTX'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'itab2'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-key = 'X'. " SO THAT THIS FIELD IS NOT SCROLLABLE AND HIDDABLE.
    l_fieldcat-just = 'C'. " FOR JUSTIFICATION.
    l_fieldcat-hotspot = 'X'. " MARK THIS FIELD AS HOTSOPT TO CAUSE THE F2 EVENTS TO TRIGGER.
    l_fieldcat-lzero = 'X'. " OUTPUT WITH LEADING ZEROS.
    l_fieldcat-seltext_l = 'MATERIAL DESCRIPTION'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'MTL DESC.'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'M.D.'. " SHORT TEXT FOR HEADER.
    l_fieldcat-outputlen = 40. " SET THE OUTPUT LENGTH.
    l_fieldcat-ref_tabname = 'MAKT'. " FOR F1 & F4 HELP AS REFERNCED TO THE DDIC TABLE.
    append l_fieldcat to p_i_FC_DISPLAY.
    itab11-TEXT.
    clear l_fieldcat.
    l_fieldcat-col_pos = '3'. " POSITION OF THE COLUMN.
    l_fieldcat-fieldname = 'TEXT_1'. " FIELD FOR WHICH CATALOG ID FILLED.
    l_fieldcat-tabname = 'ITAB2'. " INTERNAL TABLE TO WHICH THE FIELD BELONGS TO.
    l_fieldcat-seltext_m = 'Basic Text'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-EDIT = 'X'. " AS SYMBOL.
    l_fieldcat-seltext_l = 'BASIC TEXT'. " LONG TEXT FOR HEADER.
    l_fieldcat-seltext_m = 'B.TEXT.'. " MEDIUM TEXT FOR HEADER.
    l_fieldcat-seltext_s = 'B.T.'. " SHORT TEXT FOR HEADER.
    l_fieldcat-outputlen = 40.
    append l_fieldcat to p_i_FC_DISPLAY.
    endform. " DISPLAY
    Reward points if u find useful..
    Regards,
    Nagaraj

  • Audio status icon dimmed &#151; what does this signify?

    A friend and I are trying to establish an audio chat connection. He's on an eMac, I'm on a flat-panel iMac, both running OS X Tiger. We both have a broadband connection. Connection speed tests done today show mine as 2.55Mbps down/203 kbps up and his as 952kbps down/122kbps up. I'm connected to my ADSL modem by Airport, he has a direct ethernet connection between ADSL modem and eMac. Neither of us has the OS X firewall activated.
    No matter which of us tries to establish an audio connection, the result is the same: the audio window shows 'Waiting for reply…' and never gets to the 'Connecting…' stage. While making our attempts we both noticed that the other's audio status icon in the buddy list was dimmed. Can anyone explain what this signifies and if this is the cause of our problem? If not, does anyone have any other ideas?
    I've uploaded a screenshot here.

    I was a good boy, only stayed connected for the bare minimum time . I show Test 02 as busy, but all three display in my buddy list with multi-chat status icons.
    I've emailed my friend and asked him to add these test 'users' to his list and see if he can connect to them. I've also managed an audio chat with one of the real test people since my last post, so, as you say, my setup appears to be functioning correctly. Tuesday will determine if my friend and I will have to resort to the old-fashioned telephone. I'll follow up here with an update.
    Thanks, Ralph, for your invaluable contributions to this part of Apple Discussions.

  • Unusual Status Icon

    Hi,
    This morning I have noticed an unusual status icon on the top of the screen to the left of the battery life status. It is a padlock with a circular arrow going clockwise around the lock. I am curious as to what it is.
    My phone is a 3GS running IOS5 and there is nothing in the 3 user manual about this and I couldn't find anythin on the net.
    Thanks for your help.

    This is your portrait orientation lock.  If its displayed on your status bar you have enabled it to lock the orientation.  To disable it double tap the home button and swipe to the right and you will see a grey square icon with a circular arrow inside. Tap to unlock it.

  • Display an icon with pushbutton

    Hi all,
    i am using a simple pushbutton on the application bar , now i also want to display an icon on it.
    how can i achieve this?

    Hi,
    set the pf-status and then create the object.
    SET PF-STATUS 'ABC'.
    When you enter the GUI screen go to the application bar.
    later in the double click the text which you wrote in the application bar item you have an option
    Icon name
    check the icon you need through F4 help and select the necessary icon you want to display.
    regards
    sarves

  • Status icons on tabstrip controls

    Hello
    I have a problem displaying the status icon on a tabstrip control.
    I've created an infotype. On the tabstrip control, I've added texteditors and status icons.The status icon is there as an indication to state whether there is information populated in the texteditor.
    The texteditors all have information populated in them. Whenever I run the infotype on PA30, the status icon does not appear. It only appears when I click on the texteditor button which is not what i want it to do.
    On PA30,I would like the ICON to appear when there is information in the texteditor and not when I click on the texteditor button.
    Please advice me on how to fix this problem.
    Thanks
    Adhil Ramruthan

    REPORT  ZICON_CONTROL.
    tables: icon.
    controls: tc type tableview using screen 100.
    data: begin of it_data occurs 0,
           icon(4),
           value(02),
          end of it_data.
    "Based on condion you populate the ICON data here
    "if the case is editable and then you have to do the same in PBO
    it_data-icon = '@0A@'."ICON_RED_LIGHT.
    it_data-value = '00'.
    append it_data.
    it_data-icon = '@08@'. "ICON_GREEN_LIGHT.
    it_data-value = '01'.
    append it_data.
    call screen 100.
    *&      Module  transfer_data  OUTPUT
    *       text
    module transfer_data output.
    read table it_data index tc-current_line.
    endmodule.                 " transfer_data  OUTPUT
    Flow logic.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    loop at it_data with control tc.
      module transfer_data.
    endloop.
    PROCESS AFTER INPUT.
    loop.
    endloop.
    MODULE USER_COMMAND_0100.

  • IPhone HSDPA Status Icon?

    Hello there, does anyone know if it's possible to get the iPhone 3G (and above) to display a status icon so that I know when the iPhone is in a HSDPA coverage area? Like most HSDPA phones have "3.5G / H"
    Thanks.

    That is not a feature built into the iPhone.

  • PowerPivot in Excel 2013 KPI Status Icons

    The KPI status icons for KPIs in PowerPivot only display the default read, yellow, and green circles when displayed in a PivotTable regardless of which icon set is selected when the KPI is created. If the KPI status is displayed in a Power View report then
    the icons display as expected. Is this a limitation in PivotTables or is something wrong?

    Hi,
    I haven't seen the behavior within PowerPivot 2012.
    Please Note: Since the following web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    http://sharepointmike.wordpress.com/2012/07/28/powerpivot-kpis-part-3-of-the-powerpivot-2012-series/
    The screenshot shows except the circle shape, the shapes of status icons could be triangle and diamond.
    The behavior may be changed in Excel 2013.
    Best regards,
    Rex Zhang
    TechNet Community Support
    A new Office has arrived, try it now.
    A beautiful Start. It begins here. Windows 8 and Windows RT.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • No "message status icon"  ?s

    All of a sudden, my messages are not reflecting replies and forwards.
    Is there a way to fix or diagnose why the "status icon" is not working.
    Thank you for any suggestions.
    FWIW:
    System:
    Apple Mail: 3.5
    OS X: 10.5.6

    westongallagher wrote:
    Norm,
    Forgive me for this, but are you sure that its not displaying or displaying the correct infomation. >
    The column is there and there are the forward and reply check marks for earlier messages.
    If that isn't the case I would move the com.apple.mail.plist to the desktop or trash. It can be found in Macintosh HD -> Users -> YOUR USER -> Library -> Preferences. You will have to put in your account information again. All you Mail should be OK because it should 1 if its and imap/mobile me account be on the server and 2 if its pop/On My Mac it will be in the ~/Library/Mail folder. And either or both will return the Mail once its running again.
    I think I'll live with it since it is now back working and it is only 24-48 hours where it is incorrect. Too many accounts to re-enter, etc.
    Report back if you have questions or if that doesn't work.
    Thanks for the suggestions.

  • How can I display an icon, instead of text string, as a validation prompt?

    My validate method inside my custom validator is like this:
    public void validate(FacesContext context, UIComponent component, Object value) {
      Pattern datePattern = Pattern.compile("(\\d{2})/(\\d{2})/(\\d{4})");
      Matcher dateMatcher = datePattern.matcher((String)value);
      if(!dateMatcher.find()){
        ((UIInput)component).setValid(false);
        FacesMessage message = new FacesMessage();
        String msg = "[" + value + "] invalid date";
        message.setDetail(msg);
        context.addMessage(component.getClientId(context), message);
        FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_FATAL, "xx", "msg");
        throw new ValidatorException(facesMsg);
    }My JSP has this:
    <h:inputText id="test" value="#{projecthandler.test}">
    <f:validator validatorId="DateValidator" />
    </h:inputText>
    <h:message id="testErrorMessage" for="test"/>The <h:message> tag will kick in if the user has invalid data in the <h:inputText> field and clicks submit.
    When the page is regenerated, the user will see a text string reflecting what the issue is.
    However, instead of this, I would like to display an icon consisting of a red circle with an exclamation point.
    The user is supposed to click on the icon if they want more information. By clicking on the icon,
    the user will see a message box, with a description of the error.
    This is our standard for applications. I'm trying to put together a demo showing how an existing application
    would work in JSF, so I won't be able to talk others into using JSF, unless I can get the validation to display an
    icon instead of text.
    Edited by: Kazan on Mar 18, 2009 9:31 AM
    Edited by: Kazan on Mar 18, 2009 9:33 AM
    Edited by: Kazan on Mar 18, 2009 9:36 AM

    OK, I noticed a bug in my validate method. This is updated to fix the bug, and to include the recomendation about background-image:
      public void validate(FacesContext context, UIComponent component, Object value) {
        System.out.println("DateValidator.test.1");
        Pattern datePattern = Pattern.compile("(\\d{2})/(\\d{2})/(\\d{4})");
        Matcher dateMatcher = datePattern.matcher((String)value);
        System.out.println("DateValidator.test.1");
        if(!dateMatcher.find()){
          ((UIInput)component).setValid(false);
          FacesMessage message = new FacesMessage();
          String msg = "<span style='background-image: url(/error.gif)'/>";
          message.setDetail(msg);
          message.setSeverity(FacesMessage.SEVERITY_FATAL);
          context.addMessage(component.getClientId(context), message);
          throw new ValidatorException(message);
      }When I run this, the litteral string of "<span style='background-image: url(/error.gif)'/>" is printed as the message. It does not interpret this as a span tag with an image url.
    Can someone tell me what's going on?

Maybe you are looking for

  • During credit memo processing system is picking inventory account

    Hi Experts,      When we do credit memo, wrong posting are coming i.e. vendor a/c is debit and inventory account is credited why inventory account is coming instead of gr/ir account. Stock is available. Please find the attachment of credit memo entri

  • 8600 GT with a HDTV

    I have a MSI 8600 GT (passive cooled model) and tried to hook it up to a 37 inch hdtv. The tv supports 720p resolution. I used a video out to composite cable that came with my card and a standard composite cable to hook up to the tv. With the tv on c

  • What DataType should I use?

    I'm wondering what is the best DATATYPE to use to a few fields.  This is all stock data; I have one DATETIME field and several VARCHAR(MAX) fields; this is fine.  I'm just wondering about a few other fields. I have something called Weight; it looks l

  • Setting a big download to "nice" prioprity.

    One feature I am missing is the ability to start a big download as nice. I mean with low priority, so that it is only downloaded when the internet connection is not otherwise used. It would allow me to start big downloads for hours without slowing do

  • Database shutdowns in Maximum Protection mode

    Hi, I am using oracle dataguard 11g(11.2.0.1.0) on OEL5. My dataguard is working fine in MAXIMUM PERFORMANCE mode. But when i try to put my database mode in MAXIMUM PROTECTION MODE my database gets shutdown.What could be the possible reason for this?