Header text in table control

Hi all,
Can i have two lines in the header text of a table control.
for example:.
       valid         (1st line)
   date    time      (2nd line)
(column1)(column2) 
Please send ur suggestions,
Rajesh.

hi rajesh,
it is not possible.
just look on ALV.
sometimes it may have that option.
rgds
anver

Similar Messages

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

  • Wraping text in table control

    Dear All,
    is there way to wrap the text in Table control.
    regards

    Basically, no. Can you elaborate a little more on your need.
    Regards

  • Table Column Header Text - Refresh Table

    Hi. A question about programmatically changing the Header Text property of a Table Component.
    I've added code, in the backing bean Setter for the Table component, to change the header text as required.
    The problem is that when the page is rendered, the header changes are not displayed initially. Only after a PPR is performed (on a different component) does the table render with my property changes displayed.
    Am I doing the header text manipulation in the wrong place? Is there a way to refresh the table programmatically prior to it rendering initially (e.g. after the RENDER_RESPONSE phase?)?
    Cheers.

    Hi Bala,
    After following your invaluable advice I now have the table displaying more or less as a I need. The labels are set correctly (from the Attribute Hint that I set in the AttrDefImpl), and the Rendered property for each column is now derived from Expression Language pointing to the same AttributeHints...
    However, I'm still struggling with the DisplayIndex for the table columns. I'm attempting to set the DisplayIndex column property using EL that gets a value from the VO binding FieldOrder control attribute (which contains a numeric value). However, this does not resolve properly and in the column Property Inspector the DisplayIndex doesn't seem to display correctly itself...
    I'm wondering if this is because the FieldOrder control attribute is a String while the DisplayIndex takes an Integer. Is there a way to perform some conversion on this in the EL itself? Or maybe that is not the problem.
    Thanks again for all your assistance!

  • Long text in table control

    Hi SDN, Rich Please respond ..! <b>ITS VERY URGENT</b>
    i need a longtext in one of the table contol of my customised screen. the purpose of the screen is to create RFQ's where in user can enter LT ( just like the transaction IW32 - > Operations Tab - > LT Column. actually the LT in that table control is a button, pressing on which will take the user to an editor like SAP Script editor )
    <b>how do i save this into my customised tables so taht i display the LT in the display screen for RFQ's</b>
    This same LT created in RFQ Creation screen should be displayed to the users in another customised screens of RFQ Display / Change where the same functionality is needed.
    Please help me in achieving this, i have been struggling from past few days, and this is very urgent.
    i have been tryin the same with the fm's edit_text and read_text, but am not clear on these fm's related to HEADER in the importing parameters of the fm.
    is this wrong? or is there any other way to achieve my requirement?
    Please HELP
    Pratyusha

    Hi,
    Check this code..To display the text in a text editor control..
    First you have to create a custom control in your screen painter and name it as CONTAINER1..
      Then apply this code..
    TYPES: BEGIN OF type_text,
             line(70),
           END OF type_text.
    DATA: t_texttable1 TYPE STANDARD TABLE OF type_text.
    DATA: custom_container TYPE REF TO cl_gui_custom_container,
          editor TYPE REF TO cl_gui_textedit,
          repid LIKE sy-repid.
    repid = sy-repid.
    CALL SCREEN '0100'.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      PERFORM delete_container.
    *- Container franchise codes
      IF editor IS INITIAL.
        repid = sy-repid.
        CREATE OBJECT custom_container
           EXPORTING
              container_name = 'CONTAINER1'
           EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            others                      = 6.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CREATE OBJECT editor
             EXPORTING
                parent = custom_container
              wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
               wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_position = '38'
                wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
    *- Eliminate toolbar
        PERFORM toolbar.
      ENDIF.
      PERFORM load_data.
    Load TextEdit control with texts
      CALL METHOD editor->set_text_as_r3table
        EXPORTING table = t_texttable1.
      IF sy-subrc > 0.
      Display an error message
        EXIT.
      ENDIF.
      CALL METHOD cl_gui_cfw=>flush.
    ENDMODULE.                 " STATUS_0100  OUTPUT
          FORM delete_container                                         *
    FORM delete_container.
      IF NOT editor IS INITIAL.
        CALL METHOD editor->delete_text.
        CALL METHOD cl_gui_cfw=>flush
              EXCEPTIONS
                OTHERS = 1.
        IF sy-subrc > 0.
    Errormessage: Error in flush
        ENDIF.
      ENDIF.
    ENDFORM.                    " delete_container
          FORM toolbar                                                  *
    FORM toolbar.
      DATA: lv_toolbar_mode TYPE i VALUE 0.
      CALL METHOD editor->set_toolbar_mode
        EXPORTING
          toolbar_mode = lv_toolbar_mode.
      CALL METHOD cl_gui_cfw=>flush.
      IF sy-subrc > 0.
    Errormessage: Error in flush
      ENDIF.
    ENDFORM.                    " toolbar
    *&      Form  LOAD_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM load_data.
      DATA: gwa_line TYPE type_text.
    gwa_line-line = 'HELLO HOW ARE YOU!!!!!'.
    APPEND gwa_line TO t_texttable1.
    ENDFORM.                    " LOAD_DATA
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      DATA: T_SAVE_TEXT TYPE STANDARD TABLE OF TLINE.
      DATA: S_SAVE_tEXT TYPE TLINE.
      DATA: S_TEXT TYPE TYPE_TEXT.
    Load TextEdit control with texts
      CALL METHOD editor->get_text_as_r3table
        IMPORTING table = t_texttable1.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this helps...
    Thanks,
    Naren

  • Long text in table control lines

    If i put long text  buttons on the  table control coulum, when the line  is deleted  from the table, the text for tha line  are permenantly deleted before the screen is saved in the user command. how do i correct the problem ?
    regards
    Rendani

    Use the FM for text delete when u press save button and not at table control delete command.
    physically delete the line from table control and put it in internal table which can be used for deletion purpose at time of actual deletion...

  • How to split header text in table view to 2 lines?

    Hello,
    I have a table view that has many fields. There are fields with long header text.
    Is it possible to split the text and have it on 2 lines?
    Foe exsamle: instead of 'ORDER NUMBER'  --->  ORDER
                                                                                 NUMBER
    Thanks,
    Sara

    Hello Sara,
    You can do that using line feed.
    Implement the following code.
    data: lv_constant type string value 'CRM ORDER'.
    data: lv_constant1 type string.
    data: lv_constant1 type string.
    split lv_constant at ' ' into lv_constant1 lv_constant2.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    lv_linefeed = CL_ABAP_CHAR_UTILITIES=>CR_LF.
    clear lv_constant.
    concatenate lv_constant1 lv_linefeed lv_constant2 into lv_constant.
    I hope this works.
    Thanks
    Vishal

  • I need two header line in table control

    Hi all,
    I am using table control. The requirement is to have 2 headers in the table control. for example., if their is field name ' Vendor Comments', I need to display 'Vendor' in one line and 'Comments' in next line. Is it possible to have such 2 headers for 1 field?
    If have answer please reply me.
    Thanks in advance,
    Kaarthick

    You cannot do this in table control in dynpro environment. Maybe you can check the ALV to get more flexibility about header titles.

  • Setting field header width in table control

    I have created  a table control by using the wizard and i am populating my internal table data in to this.
    Here i have small issue.
    There are two fields called recoverable, identifiable with char (1).
    These two field headers are displayed as R, I on the table control.
    Is there any way that i can adjust the field width to accomodate the header.
    points will be awarded immediately.
    Thanks

    In SE51 (Screen Painter), select/click-on the field (not the column header).
    Press F2 (to get the Properties window) and set the Visible Length to a larger number.  Save and activate the screen.

  • Outbound Delivery - Header (Text field - Table Name)

    Hi All,
    In outbound delivery header - Texts tab i notice that we can maintain some texts. May i know which table i should refer to read the text entered.
    I can read the text type key from the table TTXTD, but i need to read the actual text entered by the user.
    Hope my question is clear, await your inputs.
    Regards,
    Vivek

    HI,
    SAP has already provided a various functions for read the text element. So you no need to get the value from table directly!
    There is some example
    CALL FUNCTION 'READ_TEXT'
           EXPORTING
              CLIENT           = SY-MANDT
              ID               = T_TEXT_ID
              LANGUAGE     = 'E'
              NAME          = T_UNIQUE_ID
              OBJECT          = T_TXTOBJ
         IMPORTING
              HEADER          = HTEXT
         TABLES
              LINES          = T_READ_LINE
         EXCEPTIONS
              ID               = 1
              LANGUAGE                    = 2
              NAME                            = 3
              NOT_FOUND                      = 4
              OBJECT                         = 5
              REFERENCE_CHECK     = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
    Let me explains as below parameters.
    T_TEXT_ID - Text id: example - '08000123', also is the document no.
    T_UNIQUE_ID - Text unique ID: example - 'ZD01'
    T_TXTOBJ - Text Object: example - VBBK
    That information can find it on relevant of document. In your case, you can fount it on the below path:
    VF01n/VF02n > GoTo -> Header -> Text -> detail (is the push small button, then it will go to the next screen) -> Goto -> Header.
    Return Value tales - THEXT and Table Line - T_Read_line
    You must declare this variable before,
    DATA: BEGIN OF HTEXT OCCURS 50.
            INCLUDE STRUCTURE THEAD.
    DATA  END OF HTEXT.
    DATA: BEGIN OF T_READ_LINE OCCURS 50.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF T_READ_LINE.
    READ TABLE T_READ_LINE INDEX 1. "read the line value
    I hope this can help, so remembers reward the points

  • Variable column header in table control

    Hi all, I need a variable column header text in table control. I am doing the following but is not working,
    I have deleted the header field that the wizard created me thorugh a internal table, and put a I/O field instead.
    I have assigned a variable in the name of this field.
    In the PBO I am writing the following:
      LOOP AT   i_details
           WITH CONTROL tc_detail
           CURSOR tc_detail-current_line.
        MODULE m_modify.
      ENDLOOP.
    MODULE m_modify OUTPUT.
      IF tc_detail-current_line EQ '1'.
        var1(header column text) = 'text1'.
        var2(header column text) = 'text2'.
      ENDIF.
    ENDMODULE.
    But with this is not working, the rare thing is that the first time that the screen is shown, this value is not appearing. After press Enter or some action, the value appears.
    I am not doing anything in PAI. The only code that is in PAI is:
    Loop at i_details.
    endloop.
    Nothing more.

    Hi,
    First just drag and drop all the fields that are to be a part of the table control. Then drag the label on the column header. Give name and text to the label.
    Regards,
    Nikhil

  • 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

  • Change column header text dynamically

    Hi,
    I have requirement to change the column header text dynamically in sap gui programming. but couldn't see straight forward way to achieve this.
    i tried following link but no success:
    [Re: Dynamic header text in table control - Dialog programming;
    Please share your suggestions if it can be acheived.
    Thanks,
    Rahul
    Edited by: Rahul Yadav on Oct 25, 2010 7:29 PM

    >
    anmol112 wrote:
    > Hi,
    >   So you can try 1 thing,
    > * Dont use default Column Headings
    > * Create I/O and choose ouput only and fix them in place of Column headings.
    > * pass the values to these I/O accordingly.
    >
    >
    > Thanks,
    > Anmol.
    How is this different from the previous post?
    Rob

  • How to create title (heading) in the tabel control

    hi experts,
    i want to create title (heading) in the table control for this what sud i do plz help me....

    In the table control attributes, select With title.
    A dialog box appears, reminding you to create a title element.
    Enter a text field or an input/output element in the title row.
    Enter an element name, and the title in the Text field.

  • Interactive table control in Adobe forms

    Dear gurus,
      I am trying to create an interactive table control with header. The table control will have 10 rows, and I want the users to be able to enter values into the table.
    I created a new node with cardinality 0...n; and added attributes under it. The I dragged that onto my design view and made duplicate entries of the rows to get 10 rows under the header.
    Now the issues I am having are
    1) The table is not visible in preview Pdf; I tried to save and activate the form, but still appears to be invisible
    2) For some strange reason the table control in adobe forms is not as flexible as the one in webdynpro, where it is easier to bind the fields and send / recieve data from the interface.
    ~thanks and appreciate any comments.

    when your cardinality is 0..n you won't see it in preview mode.. you need to launch it from your dynpro & you will see it.
    Also, if you know you're going to have 10 rows all the time, why not make the cardinality 1...n?
    Nevertheless, I personallly wouldn't create the table in this method.
    I would create the table in Web dynpro, add a column called "SeqNo" or whatever and pre-populate that field with 1 - 10. When you drag/drop your table from your Data View, just rt-click that column and hide it so your users won't see that field.
    You'll have 10 rows displayed to the user each time and you won't worry about having to bind anything since it'll be done automagically.

Maybe you are looking for

  • Possible to upgrade x131e screen to HD+?

    I knwo from experience that ThinkPads are generally easy to work on, I've got a T510, a W530 and a little x131e on the way... I've read on a few forums and seen pictures proving that people had upgraded their E-series and other ThinkPads that came wi

  • My imac takes 20 min to boot

    since I've installed lion and ios5 my imac takes 20-30 mins to boot! help!

  • MRP and return orders

    I need MRP takes in account the return orders created in sales. They must be considered as receipts. How can I do it?

  • The white color become blue in Bridge CS5

    the same photo I open in Photoshop  and Bridge but inside Bridge it become so blue tone~! is it the  ICC profile or any color preview setting not correct? Pls.  advice., where the manual set up?? thx

  • Administrative Interfaces for Adapter

    Hi experts, Can we manage the life cycle of an Adapter, i mean are there administrative interfaces for Adapter-Framework-compliant adapter? Plz help. Regards, Sushama