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

Similar Messages

  • Dynamic field labels in table control

    Hi experts,
        My requirement is to display dynamic field labels in table control can we do this. I am much aware
    that we can do it in alv_grid. Please let me know.
    Thanks in advance.
    Sri

    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 .

  • Dynamic header text in table control - Dialog programming

    Hi All,
    I have a table control on one of my dialog screens.  I need to dynamically change the column header texts on this control in my PBO.  Does anyone know how to do this?  I have found all kinds of ways to modify the other characteristics of the fields at run time in the PBO (active, input/output, invisible, etc.) - but not to change the header text!  Any help is appreciated.
    thanks,
    Matt

    Hi Hymavathi,
    I appreciate your help!  This didn't solve the issue, however,...I have used the method you'd mentioned before (many times) for setting it inside the loop at screen:
    %_<screenname>_%_APP_%-TEXT = <text something>.
    - but only in ABAP reports.  It doesn't seem to recogize it (the table control column header text) within a dialog program.  I keep getting a compile error. (saying that the %_<screenname>_%_APP_%-TEXT doesn't exist.
    I tried the suggestion that you stated below (from lateesh) - yet it only let me place i/o field in title text area (not the column header text).  Am still searching...

  • Dynamic Column Heading in Table Control

    Hi
    I have a table Control which needs dynamic heading for the first column. So i dragged a label and placed it on the Column 1 header. I gave the corresponding declaration and assignment in TOP include for that screen field. I also tried assigning values in the PBO of the screen also. I even tried replacing the Label with an I/O field. It is not allowing.
    Nothing is working. Any suggestions.

    Instead of the text field for your column heading, put an input/output field there, and specify the field for output only. Then assign the field with the header that you want on your PBO.

  • Dynamic Tool TIP in Table Control

    Dear Friends,
    Thanks in Advance.
    How to implement Dynamic Tool TIP in the Table Control for Particularly One Columnn.
    i.e rows in that Column.
    Note : Column contains Currency Type Data
    For that column, i am calculating the Quantity Multiplied with the Exchange Rate.
    That Calculation should be visible in the Tool TIP.
    Regards:
    Sridhar.J

    Hi
    Take Text Element Radio button there  and give any number and activate.
    If the Visible lenght of the Table Control Field is less than actual length of the Content, it automatically displays the Tool Tip.
    I just did it.
    Hope this serves your purpose.
    Get it fram Sam
    "  Hey Sreedhar, Let us know how can we do it , it will be helpful.
    Cheers
    Ram
    Edited by: Ramchander Krishnamraju on Jan 2, 2010 4:06 AM

  • Dynamic coloumn creation in TABLE CONTROL

    Hi all,
    i am using table control in the user interface.
    here, how to create columns dynamically in table control?
    thanks in advance.
    Vinod.S

    Hi Vinond,
    Have you got the solution for this. If so please share with me.
    I too have the same requirement.
    Regards
    Prasath

  • Dynamic Column Header On Table Control

    Dear Friend
       How I can set Dynamic Column Header Text On Table Control
    Regards
    Supperkorn

    Just set it to a global variable name, and then set the value of that global variable as needed, e.g. in your TOP include define "g_my_header(20) type c" and then use g_my_header in the "Table column header" definition in the Dynpro... and in your PBO code put a value in g_my_header.
    Jonathan

  • 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

  • Dynamically assign fields to table control

    Hi All,
    I have some requirements with me... I have a report which has an output table. The output table will be filled based on some conditions.
    ex... 1) select name, id, date
          2) select name, id, time  (just an ex)
    My output table contains name, id, date, time.
    So, I would like to dynamically display the fields on to the table control to either display 1) or 2).
    Is it doable thru Visual Composer?
    Please suggest.....
    Regards,
    Manjunatha.T.S

    When you use a JDBC system, the fields may change at runtime.
    So, generally, any fields that come out of the stored procedure at runtime will be displayed in the table.
    Lior

  • 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.

  • Dynamic Hide column in table control

    I want to hide colum of table control in program, and then it can invisible,but others is visible.
    how should i do?

    Hello All,
    I am trying to implement the above solution. I am facing some issues.
    I have used a table maintenance generator. So Depending on the Fields I have choosed, screen is automatically generated with table control : TCTRL_FSH_SOFN_V.
    Now, I have to declare a work area to store the values of the above type.
    How do i do it??
    The highlighted portion gives an syntax error as the table control is not defined.
    data: wa_FSH_SOFN_V_cols type LINE OF TCTRL_FSH_SOFN_V-COLS.
    loop at TCTRL_FSH_SOFN_V-COLS to wa_FSH_SOFN_V_cols."into .
       if sytabix = 4.
         wa_FSH_SOFN_V_cols-INVISIBLE = 1.
         MODify TCTRL_FSH_SOFN_V-COLS from wa_FSH_SOFN_V_cols.
        endif.
        endloop.

  • Adding dynamic columns in Table Control

    Hi All,
    Can we add dynamic columns in a table control? The requirement is something like this. When the user clicks a button it should add a column to the table. Also is it possible for the same column to refer to different fields of the Internal Table of the Database table. Example. The first row in the table control must refer to MARA-MATNR and the second row must refer to MAKT-MAKTX.
    Regards,
    Sudhindra

    Hello Sudhindra,
    If you know all the columns that the table control will ever contain, then I suppose it is possible to add and delete the columns dynamically.
    What cannot be dynamic, is the determination of which coulmn would be displayed in the table control.
    To elaborate, In SE51, you have to define the table control with all the possible columns. In the program, during the PBO, you can choose to hide some of these columns. When the user performs certain action (PAI), you can determine which opf the hidden columns would be displayed in the table control after the next PBO.
    Coming to your second requirement, I don't think it is directly possible in case of table conrols. You will have to do some manipulation to achieve it. But even if you can I think you should not. Because, It is not elegant from a good-UI design perspective. ANd during the course of the necessary manipulations, we might have to forgo some of the features like Automatic Field Validation, Automatic Input Help etc. You can use ALV for the same.
    Please be judicious in deciding which approach to consider and if you run into some more problems, please do get back with some more details like how many columns you have, how many different row-types do you want, what are the features for the fields that you wish to provide (eg. F4 help) an so on...
    Regards,
    Anand Mandalika.

  • 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

Maybe you are looking for

  • How to get path or parent folder

    Hello I'm overriding method extendedPreAddRelationship on class S_Relationship. My purpose is to check whether the document is being put in the correct path or not. I can get folder name and document name using following code: AttributeValue av; av =

  • ICON Frustration

    I just installed Adobe Creative Suite 3 and since then my icons have been all screwed up in finder and sometimes on the desktop. To give you an idea, a .psd file will have the stickies icon or an html file will have the itunes icon. What the heck is

  • Connect ipod to ac adapter

    i just updated my ipod with color screen, and i can't connect or turn it on. it just turns on for a moment displaying an ac adapter plugging into a wall. is there anyway around this, as i cannot find my ac adapter and dont feel like dropping 20 bucks

  • OS 10.6.8 - 10.7.2 and Logic Pro 8 - Logic Pro 9

    Hi all.  Which of above upgrades should I perform first?  My guess is the OS...  My hardware is iMac 7,1, Intel Core 2 Duo.  Can the upgrades be done at home, without the help of Genius Bar?  Thank you for posting any thoughts.

  • Publication Help - PLEASE

    I have 19 reports that get sent to approx 186 different email addresses, each report can go to multiple emails and each email address can receive multiple reports. End result is approximately 7400 monthly instances and 12000 weekly instances. Most of