Pushbutton Icon in Table Control

Hi Guys,
I have a table control that contains a push button in each row.  How can I place and remove an icon for a specific row?
Thanks.

Try something like this
* In your dynpro, after PBO
LOOP AT t_output WITH CONTROL itab_ctrl
                              CURSOR  itab_ctrl-current_line.
    MODULE screen.
  ENDLOOP.
MODULE screen OUTPUT.
  base = itab_ctrl-current_line.
loop at screen.
icon_name = 'ICON_RED_LIGHT'. "This is an example: use your icon
CALL FUNCTION 'ICON_CREATE'
      EXPORTING
        name                  = icon_name
        add_stdinf            = ' '
      IMPORTING
        RESULT                = t_output-icon "This is the field you use as pushbutton
      EXCEPTIONS
        icon_not_found        = 1
        outputfield_too_short = 2
        OTHERS                = 3.
modify screen.
endloop.
ENDMODULE.
Edited by: Simone Milesi on May 4, 2010 2:40 PM

Similar Messages

  • Dynamic pushbotton-icon in table control

    Hello,
    in my table control i have a pushbutton.
    i want to display it with a dynamic icon
    is this possible ?
    thanks very much for your answers
    Helmut

    Hi Anubhab,
         Thanks. With your help i could able to solve the problem. Let me put this in some
    more detail.
    When we are pulling the field from a table to table control we need to make sure the fields should have a data elements. After pulling all the fields to a table control ,we need to drag out  and delete the current table control column headings and then drop in the (new) I/O fields into their place.  I then set the text on these new fields within the PBO.  If we try to drop the (new) I/O fields on top of the existing ones with out deleting it won't work.
    Thanks & Regards.
    Srikanth

  • Using Insert and Delete icons in table control wizard.

    Can anyone tell me how to perform a new row insertion or deletion in a table created using the table control wizard.
    I see there is a form fcode_insert_row and fcode_delete_row, but dont know how to call them and what parameters to pass and all.
    Since iam new to SAP-ABAP, some code samples will be a great help.
    Thanks to all in advance.

    Hi Lavanya ,
    You have to add the icons personally in the table control.. . Put fcode for addition button as INSE and delete as DELE ..coding will be already thr in the wizard no need to anything just add icons in the table control by selecting from f4 help on icons option of screen.
    Thanks,
    Vishnu .

  • Hand mouse icon in Table Controle

    Hi Guys,
    Is it possible to change the mouse icon into a hand in a table controle when it pass over a field?
    This field must call other transaction filling the Parameter ID with your content.
    Att.

    Hi
    I don't think, you should use an ALV grid setting a cell available for hotspot
    Max

  • Status icons in table controls

    Hi,
       i've included status icons inside my table control with an aim to show appropriate status depending on a value of a column (wa_tab-posted).
    all i want is that if a line in the table control has the value of wa_tab-posted as 'Y'. the status icon should be RED and Green if not posted ( wa_tab-posted = 'N'.)
    so far i have only been able to get a common status icon color based on the last line of the table control.
    ie: if the last line of my table control has the value of wa_tab-posted as 'N' then all the status icons show GREEN,,, even the ones where wa_tab-posted is 'Y'.
    how do i set unique status icons for each individual lines.
    Please advice.
    Thanks,
    David
    Edited by: david joseph on Aug 20, 2008 8:20 AM

    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.

  • 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

  • Redlight in Table Control

    Hi Friends,
    I want to display diffrent lights ( reg light icon or green or other) in table control column depends on some condition.
    Can you please help me on this. Thanks in Advance.
    Thanks & Regards,
    Murali Krishna K

    . Create program in SE38 type module pool and Activated
    2. Go to SE51 give the program name and screen number then Layout Editor in drags table control with wizard.
    3. Start the Wizard give the table control name (TBCL)>click the continue>give the Internal table name >Continueàselect the filed(MATNR) or Fields>continue>continue>check the Scroll check box>continue>continue-->click the completed --> Save --> Activated.
    4.Add the Status Icon into Table Control(drag the Icon into table contol ) and Change the Code for Status Icons Below
    DATA:  STA_ICON10     TYPE ICONS-TEXT,
                  ICON_NAME(20)  TYPE C,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0102.
    Code:
    MODULE STATUS_ICONS OUTPUT.
    SELECT SINGLE *
    FROM MARA
    WHERE MATNR = TB_TABLE-MATNR.
    IF SY-SUBRC <> 0.
    ICON_NAME = 'ICON_LED_RED'.
    ELSE.
    ICON_NAME = 'ICON_LED_GREEN'.
    ENDIF.
    CALL FUNCTION 'ICON_CREATE'
    EXPORTING
    NAME = ICON_NAME
    INFO = 'STATUS'
    ADD_STDINF = 'X'
    IMPORTING
    RESULT = STA_ICON10
    EXCEPTIONS
    ICON_NOT_FOUND = 1
    OUTPUTFIELD_TOO_SHORT = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.   ENDIF.
    ENDMODULE.                 " STATUS_ICONS  OUTPUT
    Message was edited by:
            Durga Vinta

  • Add change Icon in the Table Control tool bar.

    Hi Abapers,
    I need to add "change" icon in the table control. I added it but when I click on it is not working.
    My requirement is that when I run my custom report, all the fields should be shown is in display mode. Then when I click on the "change" icon, all fields should be enabled for change.
    I have already referred to the standard progs BCALV_* but it does not have the "change" icon.
    plz give me any reference prg or sample code.
    Thanks
    Nani.

    Hi Nani,
    Track the function code of change icon in user command. if it is clicked then put a flag eq X.
    check that flag in PBO, if it is eq X then screen-input = 1 or vice versa.
    try this code:
    in PBO:
    LOOP AT SCREEN
    IF WS_EDIT = 'X'
    SCREEN-INPUT = 1
    ELSE
    SCREEN-INPUT = 0
    ENDIF
    MODIFY SCREEN
    ENDLOOP
    Hope it will work fine
    Regards
    Krishnendu

  • Table Control Icon appearing  in Personal Data in ESS in Portal

    Hello All,
    We are on SAP Enterprise Portal 6.0 SPS09 with version details as
    J2EE Engine 6.40 PatchLevel 87289.311
    Portal 6.0.9.0.0
    After installation of Portal system we installed Business Package for
    Employee Self-Service 4.6C - 4.7 on our Portal system and installed ITS
    6.20 patch 22 over Portal inorder for connecting Portal with Backend R/3 system.Ours is a development serverand Portal application and ITS are installed
    on the same server.
    When we access ESS on Portal ,and navigate to Personal Information /Personal Data / , there a small table control icon appears which we donot want to appear and which does not appear on R/3 side.Simultaneously for this transaction in R3 a selection row appears which doesnot appear in Portal.This problem is given even when we run ESS transactions through ITS on webgui.Wt might be the cause of this error ,do we need to make any settings ( Table specific) in ITS or R/3  or somewhere else. Kindly plz suggest.Plz revert at earliest.My email Id is [email protected] .
    Regards,
    Saumya

    Hi Somya,
    Did you solved this problem. If you solved this issue then please let me know because iam also getting the same problem. you can send me an email at [email protected]
    Thanks,
    Abdul Hadi.

  • Selection-screen pushbutton & Table Control

    Hi Everyone
    In my program i have a pushbutton in my selection-screen; this button call a screen with a table control, the problem is when i run my report and return to the first screen, the data in the TC is cleared.
    It's possible to save the information of my TC if i run my report and return to the first screen??
    Thanks & Regards
        David

    Hi,
    Write the logic for putting data from an internal table into table control in the PBO of the called screen & not in the PAI of the calling screen. Also, when you exit that screen, retrieve data into the internal table.
    For e.g. if Screen 9002 contains table control then
    PBO of Screen 9002:
    loop at it_itab into x_itab with control table_control_name.
    module put_data.
    endloop.
    PAI of screen 9002:
    loop at it_itab into x_itab.
    module get_data.
    endloop.
    Reward points if the answer is helpful.
    Regards,
    Mukul

  • Is it possible to add icons to a field in the table control  ?

    Dear Gurus,
               Greetings..............
    Is it possible to add icons to the line item of  a field in the table control ?
    Thanks in advance
    Raj Kumar

    HI
    YES IT IS POSSIBLE.
    DO THE FOLLOWING
    1.DECLARE INCLUDE <ICON>.
    2.IN YOUR INTERNAL TABLE DECLARE FIELD ICON
    icon(4) TYPE c,
    3. POPULATE YOUR INTERNAL TABLE WITH APPROPRIATE ICONS BY SELECTING FROM INCLUDE SPECIFIED ABOVE.
    EG:
    wa2-icon = '@5C@'.
    4.PASS IT TO FIELDCAT
    wa_fieldcat-fieldname = 'ICON'.
        wa_fieldcat-icon = 'X'.            " Displayed as Icon
      wa_fieldcat-tabname = ' '.
      wa_fieldcat-seltext = 'Status'.
      wa_fieldcat-coltext = text-001.
      APPEND wa_fieldcat TO it_fieldcat.

  • Pushbutton in table control

    Hi all,
    I need to put a pushbutton in table control just like extension pushbutton which appear in selection screen without any text on the pushbutton just only symbol as extension.
    Points assured for every reply.
    Thanks in advance.
    Krishna Yerram.

    Hi,
    refer to the link below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    regards,
    madhu

  • 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

  • Status control icon  display in table control

    Hi,
    In the workarea the field of status control icon is showing Red/green/yellow that is ok but when i am modifying the internal table from this work area then text(Red or green something...) is coming insted of status Icon.
    So how to modify internal table from this workarea so that i can display icon in my table control's internal table ?Your input is highly appreciated..
    Thanx
    Prince  Raja

    DATA : c_green(4) TYPE c VALUE '@08@',
           c_red(4) TYPE c VALUE '@0A@'.
          IF flag = 'X'.
            READ TABLE it_output INTO is_output WITH KEY
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      BINARY SEARCH.
            IF sy-subrc = 0.
              is_output-c_icon  = c_green.
              is_output-leabg_n = is_final-leabg.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              MODIFY it_output FROM is_output
                               TRANSPORTING c_icon leabg_n message
                               WHERE bukrs = is_output-bukrs
                                 AND anln1 = is_output-anln1
                                 AND anln2 = is_output-anln2.
            ENDIF.
    Regards
    Gopi

  • How to remove the "table control" icon in ITS based ESS screen

    Hi All,
    I have upgraded my external ITS 620 to patch level 28. Earlier we were on patch 04.
    Since then I am seeing the table control in my ESS screens (ITS Based),
    In some thread i got to know that the table control is totally redefined / modified from patch 22 of ITS.
    Is it possible that we can remove / hide the table control from the screens.
    I dont want to let the users access the "Table Settings" screen at all....can u plz tell me how to do it
    regards,
    PK

    we could not remove the table control...it seems like we can not remove it as the table control also appears in the r3 screens also..

Maybe you are looking for

  • Sub-contracting Proclem..?

    Hi all I have created the subcontract challan . While doing the reconcilation its showing  error as challan as already completed, But still I have not reconciled in system. Only I have done the 542 movement for material. so can anybody explain me wha

  • Unable to boot Portege S100 after encrypting the HDD with SafeBoot

    I am in the process of installing SafeBoot (McAfee Endpoint) full disk encryption on 100+ laptops, most of which are Toshiba. I'm using Device Encryption 5.1.5.0, Release 5300 (515-0015) and I've been able to successfully install it on a number of di

  • PO Quantity rounded off with BAPI

    Hi, We are using BAPI to create the POs coming from interface.  When the PO quantity input is given as 3.5 EA it is getting rounded off to 3.0 EA when the PO is created.  This is working fine for account assigned POs but not for Material PO s.  Could

  • Is this a Calendar bug?

    If I set a day to 30th April 2008 and add one day, I obtain 31st April, which is a day that does not exist. Is this a bug?: import java.util.Calendar; public class DateTest      public static void main(String[] args)           Calendar myDay = Calend

  • Oracle timestamp field insert row

    I created an oracle table with a timestamp data type field in it.  When I test the query template that inserts the row, I set the date field with a parameter value of "19-SEP-2007 10:02:00" and it works fine. When I set the Param value in my javascri