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

Similar Messages

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

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

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

  • 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

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

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

  • 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

  • Add lines to table control TCTRL_U_ERF_AUFTRAG

    As I have not found any topic concerning this issue yet, I have created this thread:
    Let us imagine, we enter data in VA01. The table control TCTRL_U_ERF_AUFTRAG (rather: a tableview) is situated in dynpro 4900 of SAPMV45A.
    At first we type in five items and press enter. The PAI starts and we begin to loop at the lines of this table control. The data is transfered to workareas such as VBAP and RV45A and finally stored in itabs such as XVBAP and XVBEP. Works fine.
    Now we're approaching my question:
    The PAI is processing item 2, e.g., and within a userexit - let's say move_field_to_vbap - I happen to notice due to some checks that a new line in between the second and third item must be filled with an additional item.
    Unfortunatly, we simply loop at the table control, not at a corresponding itab. The item - let's name it 2.5 - need the same standard processing, checks and userexits we all are used to in SAPMV45A.
    Does anybody have a clue how this issue colud be solved? Any help would be highly appreciated.
    Kind regards,
    Dennis

    HI,
    According to my understanding : an extra line item(may be a free item based on the given criteira) may be inserted in the internal table.
    Now we have conditions before hand where the extra line items are created.
    So let us loop the table control and read the internal table with the condition(where an extra line item is inserted).
    This would solve your proplem.
    Regards,
    Bhaskar.

  • Issue with selecting a line on table control

    Hello Experts,
    We have a table control and using w/ SelColumn for selecting the highlighted line on a table control. It's working fine sometimes but not working in other cases. It's really wierd.
    On this screen, under the Table Control, we have provided Bottons do some functionality.
    When the users select a row and click on this push button, it has to call another pop-up screen.
    We have the code like this:
    PROCESS BEFORE OUTPUT.
      MODULE INIT_0600.
      LOOP AT T_qacomp_prt INTO qacomp_prt WITH CONTROL TC_qacomp_prt.
        module fill_part_number.
        MODULE Gray_Parts.
        FIELD T_qacomp_prt-MARK.
        module highlight_lines.
        MODULE LINES_0600.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE CANCEL_600 AT EXIT-COMMAND.
      LOOP AT T_qacomp_prt.
        FIELD T_qacomp_prt-MARK.
        MODULE READ_TABLE_CONTROL_600.
      ENDLOOP.
      MODULE USER_COMMAND_0600.
    In User-Command the code is like this:
    MODULE USER_COMMAND_0600 INPUT.
      when 'ADD'.
       if t_qacomp_prt-mark = 'X'.
        get cursor line lin.
      call screen 0615 starting at 30 15.
    else.
       message i999(zxx) with 'Please select a line'.
    endif.
    For eg, When there are 5 lines on the table control, If I select the 2nd line and click on "ADD", it is calling the pop-up correctly.
    However, If I select the 4th line and click on "ADD" button, it is giving the message "Please select the line".
    PS: PBO, PAI code already exists, I only added the "USER-COMMAND" code.
    Can you please let me know what went wrong? I greatly appreciate your help.
    Thanks.

    Hi,
    Provide a Check box for that table control. Declare that Check box field as Type c in Main program. Go to screen PAI module write code for deleting that lines by clicking one button using sy-ucomm. Delete it where is_chk = 'X'..like try

  • Edit only single line of table control

    Hi All,
    I have one scenario. Suppose i have created one table control. I have two row initially which is in display mode but I want to add one more blank row which should be only editable.
    Thanks,
    Anjaneya.

    DATA: wa_col TYPE cxtab_column.
    In PBO
    LOOP AT tctrl_ti-cols INTO wa_col.
          wa_col-screen-input = 0.
          MODIFY tctrl_ti-cols FROM wa_col.
        ENDLOOP.
    this is to make the entire column display mode.
    For  row wise display mode option,
    in the table control loop module, write the code to make the screen input as zero based on the condition
      loop at  it with control tctrl_it
                               cursor tctrl_it-top_line.
        module toggle_display.
      endloop.

  • How to select all the lines of table control

    Hi all,
             In table control, I have more than 100 records. My requirement is I have to select all the records when I press check box in the table control. Please guide me in this regard.
    Searched in sdn before  posting.
    Thanks,
    regards,
    Murali Krishna. T

    PROBLEM SOLVED

  • How to insert a new line in table control created in screen painter

    hai,
    i am stuck up in the place where i need to insert a row of data in the table in screen developed in screen painter..cud some one help me out...

    You can try the following statement:
    MODIFY <DBtable> from table <itab>.
    Of course, you would need to append the user-entered data (from the screen) into the internal table first.
    Hope this helps.
    Sudha

  • WSo2 BDC to delete line item in table control

    Hi all,
    My requirement is to delete material from wso2 table control.
    The only way to delete a line item in this table control is to select the line in table control and delete it.
    The recording doesnt captures any selection of row.
    Any input on how to caputre particular row ??
    Please dont send me links to work with table control in bdc
    Regards
    Bhanu

    DaveL  wrote:
      I am not aware of any way to make the BDC delete the row, other than by running in 'A'-all mode and letting the user step through each screen and delete the rows that should be deleted.
    Well , if the user has to run it in "A" all screen mode why a BDC is required
    DaveL  wrote:
    Deleting them from the table control would obviously have no effect upon the database table though, would it....it would just hide a row from view in this particular table control
    Really ? Well it will delete it from database too i dont know what makes you think that it wont be deleted from database.
    Anways i have figured out how to capture row selection in BDC .
    Thanks for your reply it proves nothing i guess

Maybe you are looking for

  • Satellite A200 can't see wifi

    Hello, I meet strange problem, till now my wifi has working good, but today, i don't know why, my laptop can't see any wireless networks, like the antenna was turn off. Of course it is on, i see orange light that signalize that. I try to reinstall dr

  • Hibernate.cfg.xml configuration

    Hi   I have written hibernate.cfg.xml ,for connecting to the data base i am using data sources concept.   I have one property in hibernate.cfg.xml   <property name="connection.datasource">.......</property>   Can any tell how to give the datasource n

  • Why can't I access my att toolbar w/version 4.0?

    I made the mistake of downloading version 4.0, and, first, I don't like it, and my att toolbar has disappeared. Is this version made to be incompatible with add ons or what? It is most inconvenient as that toolbar has the ability to take me to my e-m

  • Passing user parameter into your sql query

    I've created two user parameters...'Order_date_from' and 'Order_date_to' I've written a simple query to list the total order amount, order number, party name and ordered date Select sum ((unit_selling_price)*(ordered_quantity)), count(line_number), o

  • OCA 6.0.5.35.0

    Hello, who will send me the OCA6.0.5.35.0 Version or give me the information (link) where i can get this OCA version. Udo