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

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

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

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

  • 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

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

  • Dynamic icon in the table control

    hi friends ,
    I  wanna to place a command with the icon changing when the status changed .Pls show me how .Thks .

    hI jACK
    I am trying to get it .
    as these text store in the table D021T and able to modify the table where the text can be modified to the ICON from PUSHBUTTON.
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    DATA RESULT(60).
    LOOP AT SCREEN.
    IF screen-name = 'BB'.
    CALL FUNCTION 'ICON_CREATE'
      EXPORTING
        name                        = 'ICON_GREEN_LIGHT'
      TEXT                        = ' '
      INFO                        = ' '
      ADD_STDINF                  = 'X'
    IMPORTING
       RESULT                      = RESULT
    EXCEPTIONS
      ICON_NOT_FOUND              = 1
      OUTPUTFIELD_TOO_SHORT       = 2
    UPDATE D021T SET DTXT = RESULT WHERE PROG = 'ZMTEST_99'.
    MODIFY SCREEN.
    endif.
    ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    still i am trying .
    I will come back to you.
    Regards
    Ramchander Rao.K

  • Date choosers and dynamic email creation with table

    I’m an experienced Director/Shockwave programmer but a
    relative novice at Flash/AS3. I’ve just been asked to provide
    a quote to convert part of an old project from Director to Flash
    (web delivery). The part to be converted is very similar to a
    reservation system but without the need for data lookup or storage;
    it requires the user to choose a date (using a date chooser
    component), collects some additional information, performs some
    calculations, then graphically displays 3 consecutive calendar
    months with a range of days highlighted. The user could then opt to
    email the results, behind the scenes my code wrote html to a string
    and attached the string to an email to recreate the results.
    The client was fussy about the data input, eg; requiring that
    users be able to input dates using either a date chooser or by
    typing the date, and that the unused method should update on focus
    change.
    So with all that said, I’ve found three date choosers.
    Does anyone know if one of these would be better suited to my needs
    than another? Also, the email requirement may go away, but does
    anyone have tricks in AS3 to do something similar to what I did
    with Lingo?
    AS3 Date Choosers:
    http://flashden.net/item/flash-calendar-strongdatestrong-chooser-as2-strongas3strong/4151
    http://www.flashden.net/item/as3-datechooser/10837
    http://flashden.net/item/flash-calendar-strongdatestrong-chooser-as2-strongas3strong/4151

    I’m an experienced Director/Shockwave programmer but a
    relative novice at Flash/AS3. I’ve just been asked to provide
    a quote to convert part of an old project from Director to Flash
    (web delivery). The part to be converted is very similar to a
    reservation system but without the need for data lookup or storage;
    it requires the user to choose a date (using a date chooser
    component), collects some additional information, performs some
    calculations, then graphically displays 3 consecutive calendar
    months with a range of days highlighted. The user could then opt to
    email the results, behind the scenes my code wrote html to a string
    and attached the string to an email to recreate the results.
    The client was fussy about the data input, eg; requiring that
    users be able to input dates using either a date chooser or by
    typing the date, and that the unused method should update on focus
    change.
    So with all that said, I’ve found three date choosers.
    Does anyone know if one of these would be better suited to my needs
    than another? Also, the email requirement may go away, but does
    anyone have tricks in AS3 to do something similar to what I did
    with Lingo?
    AS3 Date Choosers:
    http://flashden.net/item/flash-calendar-strongdatestrong-chooser-as2-strongas3strong/4151
    http://www.flashden.net/item/as3-datechooser/10837
    http://flashden.net/item/flash-calendar-strongdatestrong-chooser-as2-strongas3strong/4151

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

  • CONTROL_NOT_FOUND in Table control

    Hi All,
       I am extending Material master. While creation of table control on the subscreen through screen exit. I am able to test the table control being shown on the test button. But this subscreen is being assigned to the main screen of the SAP* Progrom. But that is returning with CONTROL_NOT_FOUND error.
        Please anybody can know me possible reasons for the table control giving such errors...
    Regards,
    Brijesh Patel

    Hi Patel,
    U just declare the table control for the screen at <b>global level</b> where all the <b>global data</b> is declared like this
    CONTROLS: TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.
    Hope this will help.
    Regards
    Sachin

  • Getting data from table control to the report program.

    Hi,
    I created a table control using report program and i am trying to enter data in the table control which i want to update in the DB table. How can i get the data entered in table control to the report program, so that i can update the DB table.
    Please help me finding out which variable will hold the data entered in table control(dynamically).

    hi,
    in your table control you give some name to that table control say it_cntrl.
    this only serves as the internal table to process the table control data.
    like u can write like this.
    loop at it_cntrl into wa_cntrl.   "wa_cntrl is work area of type it_cntrl table type
    .........        "do your functining
    end loop.
    any clarification get in touch
    thnks

  • Need to add 2 new columns to the existing table control of C223 transaction

    Hi ABAP Gurus,
    I have to do a screen enhancement for transaction C223.
    Below is the requirement:
    need to add 2 new columns to the existing table control of C223 transaction.
    there is no customer exits, screen exit or user exit present for this transaction C223, i have found one enhancement spot for this transaction.
    i dont have any idea how to do this in standard transaction C223, the table control in C223 saves the data to MKAL table and the table control uses the structure MKAL_EXPAND in the screen program.
    i have created an append structure for  the 2 fields to the standard table MKAL.
    Can anyone please suggest me how this can be done in standard screen C223, will the enhancement spot can be used to do this....
    please sugest...
    Thanks & Regards

    Hi Santosh,
    Thanks for the reply. I have looked into this Enhancement Spot CPFX_SCREEN_SET , inside this there is only one method INPUT_DISABLED having below parameters
    IM_MKAL     Importing     Type     MKAL                                                                                Production Version
    EX_MSGID     Exporting     Type     SY-MSGID                                                                                Messages, Message
    EX_MSGTY     Exporting     Type     SY-MSGTY                                                                                Messages, Message
    EX_MSGNO     Exporting     Type     SY-MSGNO                                                                                Messages, Message
    EX_MSGV1     Exporting     Type     SY-MSGV1                                                                                Messages, Message
    EX_MSGV2     Exporting     Type     SY-MSGV2                                                                                Messages, Message
    EX_MSGV3     Exporting     Type     SY-MSGV3                                                                                Messages, Message
    EX_MSGV4     Exporting     Type     SY-MSGV4                                                                                Messages, Message
    EX_INPUT_DISABLE     Exporting     Type     CHAR1                                                                                Display Only if X Was Set
    the BADI definition present here is a SAP internal so we cant implement the BADI , but we can created a enhancement spot implementation for this. as per my understanding on this the enhancement spot is only for making the table control fields display / change .  i dont think this can be used to add two new coloumns to C223 table control.
    I am not sure thats why seeking your help/valuable sugestion on this.
    Please provide your sugestion on this , so that i can come to conclusion on this issue.
    Thanks & Regards
    Siddhartha Mishra

Maybe you are looking for

  • Download starts but then stops...

    So I've read other forums and searched this website for one, but I still can't find the answer. Whenever I try to download the file it will start but then after some time get stuck on a percentage(different every time) and then stop all together. I'v

  • Wifi Payment System for Hotels

    I have a hotel that wants to do paid wifi with their NAC system. I'm not sure yet what version NAC or wireless controllers they have, but does anyone have any general direction on how to go about this or can anyone point me to some Cisco documentatio

  • *HELP* Adobe Flash Player Has Stopped Working

    Problem signature:   Problem Event Name:    APPCRASH   Application Name:    install_flashplayer11x32_mssd_aih(1).exe   Application Version:    3.3.3.0   Application Timestamp:    5010882b   Fault Module Name:    setueout.dll   Fault Module Version:  

  • MacBook and Intel Core 2 Duo?

    Hey there everyone, It is great that Apple is announcing the Intel Core 2 Duo, but when would it be available in the MacBook or MacBook Pro? I am starting school in January and would like some time to use my new MB or MB Pro, but don't want to make a

  • Query with SPASCRIPT parameters

    Hi Champs, I am creating a SAP SCRIPT which will be clone of MR_PRINT and will be driven by TCode MR90. Hence I cannot make changed in the driver program. In my requirement I need one more field to be represented in my SAP Script that is VTEXT(paymen