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.

Similar Messages

  • FCC -- Need two header lines

    Hi All,
    In my file receiver communication channel, I need to have 2 header line.
    In first header line hardcoded "UTF-8" needs to be written and second line will have actual column names.
    If its just one header with actual column names, I am able to achieve. But not sure how to add one more line on Top with "UTF-8".
    Please advice.
    Thanks
    Shivi

    Hi Shivanjali,
    We also face same requirement and we done this as below:
    create a target structure as below and map the hard coded value
    and in FCC we used below:
    Regards
    GB

  • Not able to view more than two line in table control

    Hi all,
    I am not able to see more than two lines in table control. Although my table control height is 21...
    Please see attached pic and suggest me what to do.

    hi,
    You have to set the LINES property of the table control In the PBO of your screen, to the number of entries in the internal table.
    data: lv_line type i.
    DESCRIBE TABLE  gt_table LINES lv_line.
    table_control-lines = lv_line + 1.
    or else
    You can do two thing in table control properties check horizontal and vertical scroll options plus in PBO you can based on number of lines in internal table assign it to TC_ABC-LINES if no lines are there then add by default 20..10.. any number of lines as you want.

  • What is needed for sorting on two fields in a table control

    Hi Everybody
    I am going to certification in a couple of days. I need some help and was hopeing that you  guys could help.
    What is needed for sorting on two fields in a table control?
         One sorted table and two processing blocks
         Two standard tables and one processing blocks
         Two standard tables and two processing
    Which one is corret??
    //Script

    Hi Kimallan
    I am not sure what is meant by a "processing block". However, it seems the question wants the original table order to be preserved. If so; as far as I understood the problem we need:
    itab_proxy[] = itab_main[] .
    "two standard tables"
    SORT itab_proxy BY field1 field2 .
    If we have a sorted table, then it is always sorted by its keys. So, the question seems to become obsolete for that option.
    Hope I've understood correct...
    Regards
    *--Serdar
    [email protected]

  • Two header line in ALV display

    Hi ,
    I want two header lines in ALV report using reuse_alv_grid_display .
    Like
    Factory-Sales
    Qty   Value
    10     1000
    How to do that please help

    Hi,
       I am giving the example code for 3 header line display. This may help you.
    First declare Form, 
    FORM TOP-OF-PAGE .
    FREE TTOP .
    FREE HTOP .
    CLEAR TTOP .
    HTOP-TYP = 'H' .
    HTOP-INFO = 'LLYODS STEEL INDUSTRIES LIMITED, WARDHA' .
    APPEND HTOP TO TTOP .
    CLEAR HTOP .
    HTOP-TYP = 'S' .
    HTOP-INFO = MAT .
    APPEND HTOP TO TTOP .
    CLEAR HTOP .
    HTOP-TYP = 'S' .
    HTOP-INFO = PONO .
    APPEND HTOP TO TTOP .
    CLEAR HTOP .
    HTOP-TYP = 'S' .
    HTOP-INFO = item .
    APPEND HTOP TO TTOP .
    CLEAR HTOP .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        IT_LIST_COMMENTARY       = TTOP
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
      I_ALV_FORM               =
    ENDFORM.
    After that declare this form in your Grid or List like below.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = SY-REPID
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
       I_CALLBACK_TOP_OF_PAGE            = 'TOP-OF-PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
       IT_FIELDCAT                       = BTAB
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
       I_SAVE                            = 'X'
      IS_VARIANT                        =
      IT_EVENTS                         =
      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
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = ITAB
    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.
    Regards,
    Himanshu

  • No of lines in table control

    Hi,
    I want to set the no of lines in table control as equl to no of rows in the base table.Actually i designed the table control with reference to a table.
    and i am able to display the no of rows of base table in the table control also.
    But the table control is also showing the blank lines,after displaying the complete set of rows of base table.
    I would like to have the no of rows in table control is equal to no of rows of the table.(I.E there should not be any blank lines at the end  of control table).
    If any body has any idea regarding this,Let me know something.
    with Rgds,
    Anil Kumar.

    Hi,
    The statement DESCRIBE TALBE <itabname> LINES <tabctr>-lines is required to adjust/link it with the data available in your program. Creating a table control with reference to a transparent table will only specify the columns and their types. To constantly adjust the table control with your program data, you need to issue statements to inform the screen interpreter about changes carried out by abap interpreter at runtime.
    Please correct me if I am talking out of context and you need to use the control in some other way.
    Regards

  • How to read a current line in table control in dialoug program ?

    How to read a current line in table control in dialoug program ?
    this code required to provide F4 help.

    Hi,
    You can use the variable <tablecontrol>-Currentline as Ebus says but there is a problem with this.Suppose there are 10 records in the table control with only 5 records visible then when u press a page down and press F4 the first record in page 2,  <tablecontrol>-Currentline will have value of 1 instead of 6.So you will need to write a small logic for that.
    index = ( <tablecontrol>-topline - <tablecontrol>-currentline ) + 1.
    read internal table itab at index.
    Hope this helps.
    Regards,
    Vivek

  • How to view lines in table control after pressing vertical scroll bar

    Hi Experts, 
    I created table control in MPP, While design my layout I design table control with 12 lines(Fixed),  But I am moving my internal table values to table control. my internal table have more then 12 lines. My problem is I cant view my 13, 14th line in table control.  Could you help me in solve this issue?

    Please make sure that you have used the following code in the PBO
    DESCRIBE TABLE it_tab LINES tab_ctrl-lines.

  • How to determine fixed line of table control using BDC program ?

    Dear All,
    I create program using BDC that contains table control.
    Unfortunately the table control line of BDC program will depend on the resolution of our PC setting.
    Sometime I have 2 lines, sometime 3 lines (in different PC).
    How to determine fixed line of table control?
    So it will never be confusing me whether I have 2 or 3 lines.
    Thnx - Regards,
    (Taufik K.)

    Hi Taufik,
    Check the table CTU_PARAMS and field DEFSIZE for setting fixed line of a table control.
    CALL TRANSACTION 'VA01' USING it_bdcdata
    OPTIONS FROM OPT
    MESSAGES INTO it_mesg.
    opt of type ctu_params.
    WA_CTU_PARAMS-DISMODE = 'N'. "no screen mode
    WA_CTU_PARAMS-UPDMODE = 'S'. "synchronus update
    WA_CTU_PARAMS-NOBINPT = 'X'.
    WA_CTU_PARAMS-NOBIEND = 'X'.
    WA_CTU_PARAMS-DEFSIZE = 'X'. "Default size
    Default size will play good role in terms of resoultion. in one system in table control you can see 10rows, but in others system it will show 20 records. it depends on resoultion. but when you set the default size then it will take same (default screen size) in all the systems when you run BDC.
    Reward if helps.
    Regards,
    Senthil
    Message was edited by: senthil kumar

  • 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

  • Issue with number of lines in Table control for an web transaction in ITS

    Hi,
    We have acustom web transaction ZC03 where we have used table controls. Recently a kernal patch has been installed and after that the number of lines appearing in table control has got changed. Earlier table control was coming with 5 lines and presently its coming with 3 lines. Can you please help me to fix the issue.
    The  code used in HTML template for table controi is given below:
    `SAP_DynproLayerBegin(005,013,067,006)`
      `SAP_TableControl("TC_TIME1")`
        `SAP_DynproLayerEnd()`
    I have tried other alternatives like  `SAP_DynproTableControl("TC_TIME1")`, `D_TableControl("TC_TIME1') but did n't get any fruitful result also.
    Thanks and Regards,
    Ranadev

    What where the precise Kernel updates? What where you on and what did you upgrade too?
    Did you apply any BASIS Support Pack corrections during the Kernel upgrade?
    If you applied a new BASIS support pack - check the following WIKI:
    [How to check the publishing Date of an Internet Service|http://wiki.sdn.sap.com/wiki/x/OYG8BQ ]
    if you need to republish - use the following WIKI:
    [How to activate, publish and test ITS services in the integrated ITS?|http://wiki.sdn.sap.com/wiki/x/kmE ]
    Regards,
    Oisin

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

  • Determine Lines in Table Control During BDC

    Hello
    I am trying to determine the number of lines shown on a screen for a table control during a BDC session.  I know the number of lines shown in the table can be different as users can have different screen size, fonts, etc.  My goal is to know how many lines are on the screen in the table so then I know how far I have to page down before I can select the appropriate line I want and then proceed with the BDC.  Any help is greatly appreciated.  Thanks.

    Eric
    If you use CALL TRANSACTION to run your BDC you can resolve your problem passing the parameters OPTIONS FROM <your structure> with these informations:
    <your structure>-DISMODE = 'N'. "BackGround
    <your structure>-UPDMODE = 'S'. "Synchronous
    <your structure>-DEFSIZE = 'X'. "This field indicate that screen will be in standard size. So the lines you have in transaction SHDB will be always the same.
    *The <structure> will be like CTU_PARAMS.
    CALL TRANSACTION <tcode> OPTION FROM <your structure>.
    Have some ways to count the lines during the execution of BDC, but I need to find in my programs.

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

  • Add Line in Table control

    Hi,
       I have a proble in table control where my table control have 3 lines and when i enter three records i can see the records in table control scrren and when i want to add a 4 th line  i need to press a BUTTON.when i press the button a new line inserted but i need to scroll to see the fourth record,but my req ments is to see the 4th record in the 3 rd line of the table control and 3 rd will be seen in the 2 nd line of the table control. Is there any good soultions to achieve this.
    Thanks,
    Deesanth

    Hi Deesanth,
    In the PBO of the screen just add code:-
    tab_ctrl-lines = tab_ctrl-lines + 10. "tab_ctrl is name of table control
    This will insert 10 extra line in the table control.
    You can see these empty line when you scroll the vertical scroll bar of the table control.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

Maybe you are looking for

  • Software update 10.4 or 4.3.5 for iPod Touch! HELP!

    Hey Everyone! I downloaded the latest software from Apple for my iPod Touch and since then, I am unable to sync my iPod and to it...I keep getting an error message saying "i Tunes has stopped working. A problem has caused iTunes to close. Windows is

  • SOAP --XI ---RFC or Java Client  Proxy

    Hello Gurus, Need your adivce for a scenario in XI Scenario ---  To implement XI with SAP SCEM(Supply Chain Event Management). Client is sending data from Web Portal (JSP Page) and wants to integrate with R/3. (Request from client and Response from R

  • Error in mail proxy on OSB Server

    Hi, I am facing following issue in my production, but no idea. please help me to resolve. ####<Apr 8, 2013 11:26:19 AM SGT> <Error> <WliSbTransports> <PRODSVR> <OSBMGNDSVR1> <pool-16-thread-1> <<anonymous>> <> <0000Jq0Z35q5qY15zvw0yW1HHx7h000001> <13

  • .class as an .exe?

    How can I make my .class file into an .exe so it can be run on any computer with Java installed? It's only a single file if that makes things any easier...

  • Creating Videos with built in camera

    Is this possible to day? Can i create videos with the built in cam on the mac books? Ifso what programs are there and are they free?