Hiding gap in a table control - Column is invisible

Hi All,
I'm hiding a column in a table control based on a condition. My requirement is I need to remove the gap occupied by the column that is invisible.
<b><REMOVED BY MODERATOR></b>
Thanks,
Bhaskar.
Message was edited by:
        Alvaro Tejada Galindo

Hi Bhaskar,
Based on the Condition, you can build the Field catalogue.
So that, u can restrict them at the catolog bulding level.
Regards,
Sujatha

Similar Messages

  • Change Table control Column Header text dynamically

    Hi,
    I have an requirement to change table control column header text dynamically.
    i.e. I have about 10 columns in table control, out that need to change 5 columns header text. These header texts are stored in an internal table.
    I had looked into the below link but could not get exactly how to do it.
    Dynamic headers in table control
    Could you please tell me how to do that.
    Thanks in Advance.

    Hi Saba,
    What you will need to do is this.....
    1. First replace the column Header Text box by I/O Fields and name them accordingly.
    Say for example we will consider the same example which i had explained in the link.
    there in the column header we want the header to change when some dates and entered into two fields which are out of table control say
    Start Date: 01.01.2010 to End Date: 06.01.2010
    Now we want the header to look like this,
    Column  No.    -        1               2             3                  4               5               6
    Header label   -    01/FRI       02/SAT     03/SUN       04/MON     05/TUE      06/WED
    Header name -    SPOTS1   SPOTS2    SPOTS3      SPOTS4     SPOTS5    SPOTS6
    then you go as per the instructions in the link......
    Let me know if you need further help,
    Hope this solves your problem....
    Regards,
    Abhijit G. Borkar

  • How to hide the table control column in module pool

    Dear Experts,
    Please help me on this
    I have 2 screens 9000 and 9001 . In screen 9000 I have 2 radio buttons if I select the 2nd radiobutton then the screen  9001 should display inthat some column has to be hide inthe table control. I have used this code but still it is not hiding please help me on that
    I used this code in PBO of 9001 screen
    LOOP AT SCREEN.
        IF wopr = 'X'.
          IF screen-group2 = 'ABC'.
            IF screen-name = 'ZMMT_EKKO-MATNR' or screen-name = 'ZMMT_EKKO-BANFN'.
            screen-active = ''.
              screen-invisible = '1'.
              screen-input = ''.
              MODIFY SCREEN.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Even I tried this code also in the same screen 9001
    loop at tbl_rfq-cols into cols.
    IF wopr = 'X'.
    IF screen-group2 = 'ABC'.
    IF cols-screen-name = 'ZMMT_EKKO-MATNR' or cols-screen-name = 'ZMMT_EKKO-BANFN'.
    cols-screen-input = '0'.
    cols-invisible = '1'.
    endif.
    MODIFY tbl_rfq-cols FROM cols INDEX sy-tabix.
    endif.
    endif.
    endloop.

    Hi Balaji,
    To hide a column in a table control on screen.
    In the PBO of the screen, inside
    loop with control <tab_ctrl_name>.
    module modify_tab.
    endloop.
    Say for a column, you take group1 as 'ABC'.
    In this module you can use the group for the input/output fields and the display/hide them as per your requirements.
    if <condition>.
    loop at screen.
      if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
       screen-invisible = 'X'. "hide a column
       screen-active = ' '.
      endif.
      modify screen.
    elseif <condition>.
    loop at screen.
      if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
       screen-invisible = ' '. "display a column
       screen-active = 'X'.
      endif.
      modify screen.
    endif.
    Similarly, you can use this code for other columns also.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Dynpro Table Control Column's Order

    Hi everyone,
    I am facing a strange issue in a Dynpro Table Control with the order of the columns.
    I had to add a new key filed in a standard view. When I am running the Table Maintenance Generator in SE11, the Dynpro Table Control is generated correctly and the new column appears at the right place with the other key fields. But when I display the view data with either in SE11 or using the Customizing link in SPRO, the new key field appears at the complete right end of the Dynpro in between two normal fields.
    I tried to delete the screen and to generate it again, I tried to use the same screen number and also a new screen number but the result is always the same. The column's order is not correctly displayed when executing the Dynpro.
    The only way the columns are correctly displayed it's if I created a new screen in a new Z program but this solution cannot be consider since we are talking about standard Dynpro / Table / Function Pool. Using a Z program would not permit to use the standard SPRO link no more.
    I know that sometimes the Table Maintenance Generator does not work properly but I never saw this kind of behavior before. Can someone help me?
    Thank you in advance for your answers,
    Sylvain

    hi,
    r u making through wizard?
    it is good practice.
    Otherwise first take I/O field, give name and than u can take text field for column heading.
    Reward if useful.

  • Change label of table control column - SAPMV45A Screen 4900

    Hello,
    SAPMV45A / 4900 is the table control in the Sales tab of transaction VA01/02/03 (Sales Order Creation/Change/Display). On this table control there is a field ( RV45A-ETDAT ) with standard label First Date . The date displayed on this column is the first date on the schedule line tab at item level - changing the label of data element ETDAT didn't work for this table control, it seems the label is not taken from ETDAT labels.
    Is there any ehancemement technique that I can use to change ths label?
    Regards,
    Joã

    Hi,
    if you go to SE80 and display screen 4900
    Goto .-> Secondary window -> element list
    if you click on the red option "Dict. Attrib"
    there in "Modified" option you will see that *RV45A-ETDAT has an 'F' value (Text Fixed modified).
    http://help.sap.com/saphelp_nwpi71/helpdata/en/d1/801c47454211d189710000e8322d00/content.htm
    Modified
    The system sets this attribute if it detects a difference between the ABAP Dictionary definition for the field and the way it is used on the screen. You set this attribute if you do not want to copy all field properties from the dictionary definition.
    Best regards.
    Edited by: Pablo Casamayor on Mar 22, 2011 3:55 PM

  • HIDING SOME COLUMS IN TABLE CONTROL

    Hi
    i have a module pool program i want to hide the some colums in table control dynamically

    typing error, use LOOP AT CTRL-COLS into COLS, then you can use COLS-INVISIBLE or COLS-SCREEN-<attribute of screen>.
    TYPE-POOL CXTAB .                                                                               
    TYPES:                                                                               
    BEGIN OF CXTAB_COLUMN,                                                             
             SCREEN      LIKE SCREEN,     "Attributes struktur SCREEN                         
             INDEX       TYPE I,         "Position of a column on the screen                  
             SELECTED(1) TYPE C,          "Indicator 'column selected'                        
             VISLENGTH   LIKE ICON-OLENG, "Visualised length of a column                      
             INVISIBLE(1) TYPE C,         "Indicator 'column invisible'                       
           END   OF CXTAB_COLUMN,                                                                               
    BEGIN OF CXTAB_CONTROL,                                                            
             FIXED_COLS    TYPE I, "Number of fixed columns                                   
             LINES         TYPE I, "Number of lines to display                                
             TOP_LINE      TYPE I, "Top line during next PBO                                  
             CURRENT_LINE  TYPE I, "Current line during LOOP/ENDLOOP                          
             LEFT_COL       TYPE I, "Fist scrollable column after fixed area                  
             LINE_SEL_MODE    TYPE I, "Line-selection  : none(0), single(1),                  
             COL_SEL_MODE     TYPE I, "Column-selection:        multiple(2)                   
             LINE_SELECTOR(1) TYPE C, "Indicator: 'With line-selection col'                   
             V_SCROLL(1) TYPE C,            "not used                                         
             H_GRID(1) TYPE C,        "Indicator: 'Horizontal  grid-lines'                    
             V_GRID(1) TYPE C,     "Indicator: 'Vertikal    grid-lines'                       
             COLS      TYPE STANDARD TABLE OF CXTAB_COLUMN                                    
                            WITH NON-UNIQUE DEFAULT KEY,                                      
             INVISIBLE(1) TYPE C,                                                             
           END   OF CXTAB_CONTROL,      
    Regards

  • Table control column grayed

    I have a tc where it is validating the column zmsd_invtype_TC-out_type from db.
    I want that column of tc to be grayed out initially and when pressed append or insert button, it should be ready for input. but rest of the columns should be enabled.
    thanks,
    Abhijeet.

    Hi  Abhijeet ,
    this  is  link with  screen  shot of table control  creation 
    <a href="http://">http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm</a>
    <b>Highlight individual table control field</b>
    The example below sets the EBELN field on the 3rd row of the table control to not be an input field. This is a fairly simple process which involves firstly calculating which row of the internal table is displayed at the top of the table control. From this you can work out which itab row is on the 3rd row and set its attributes using the LOOP AT SCREEN command.
    Based on the example table control the ABAP code for this will be as follows, resulting in a modified version of the PBO MODULE 'populate_screen'.
    MODULE populate_screen OUTPUT.
        DATA: ld_line TYPE i.
    *   Set which line of itab is at the top of the table control
        IF sy-stepl = 1.
          tc100-lines =
            tc100-top_line + sy-loopc - 1.
        ENDIF.
    *   move fields from work area to scrren fields
        MOVE-CORRESPONDING wa_ekko TO ztc_ekko.
        ld_line =  sy-stepl + tc100-top_line - 1.
    *   Changes individual field attributes of table control,
    *   Sets EBELN field on 3rd row of TC to not be an input field!
        LOOP AT SCREEN.
          IF ld_line EQ 3.
            IF screen-name EQ 'ZTC_EKKO-EBELN'.
              screen-input = 0.
              MODIFY SCREEN.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDMODULE.                 " populate_screen  OUTPUT
    reward  points if it is usefull .....
    Girish

  • Title at runtime for table control columns

    Hi gurus,
    I want to populate the title of the columns of the table control at runtime.
    I have horizontal scrolling on, so putting up input boxes as 'output only' and populating at runtime will be difficult.
    Can the texts for these labels be set at runtime?
    Any suggestions?
    Thanks and Regards
    Muhammad Ali Mahmood

    Hi Ranjit,
    Please elaborate. I have two column in itab and table control p1, p2.
    One thing i can do is set the title for p1 as 'title 1' and p2 as 'title 2' and at runtime hide the column i dont want.
    Otherwise, if at runtime I need one column i just set the title for that column as 'title 1' or 'title 2'.
    Know what I mean? Anyway to achieve this??
    Thanks

  • Table Control Column Lock/Fix

    Hi,
    I am displaying data inside a Table control in my MPP Program and I want to fix/Lock the First column and remaining columns should have Vertical and Horizontal Scrolling bars. Can any body help me.
    Regards,
    Srinivas

    hiiii
    When you design a table control on layout of screen go to the attributes of table control and give the value of how many column you want to fixed.it will fixed that columns.
    regards
    twinkal

  • How to Enable and Disable column in Table Control.

    Hi all,
    I want to make certain column of Table control as Enable or Disable on Button action.
    Enable means ready for input and Disable means not ready for input.
    Please send me sample code.
    Thanks in advance.

    Hi Vipin,
        You have to loop through the table columns to set the properties in the PBO of your screen.
    Here is the sample solution.
    delcare a workarea for the columns in the table control in your top include.
    Table Control .
    CONTROLS: TAB1 TYPE TABLEVIEW USING SCREEN '0100'.
    DATA: WA_COLS LIKE LINE OF TAB1-COLS.
    in your screen
    PROCESS BEFORE OUTPUT.
      MODULE INTIALISE_100.
    *&      Module  0100_INTIALISE  OUTPUT
    MODULE INTIALISE_100 OUTPUT.
        LOOP AT TAB1-COLS INTO WA_COLS.
          WA_COLS-SCREEN-INPUT = 1.
          MODIFY TAB1-COLS FROM WA_COLS TRANSPORTING SCREEN-INPUT.
        ENDLOOP.
    ENDMODULE.                 " 0100_INTIALISE  OUTPUT
    modify the screen-input property as required for the table control columns.
    Please provide points if helpfull.....
    Thanks,
    Karthik
    Message was edited by: Karthik
            Karthikeyan K

  • Error while trying to change the Column description in Table Control

    Hi,
    I have created a table control using the wizard in Module Pool.
    When i try to change the column description of the table control or adjust any other element which is already available on the screen and not in table control. It gives me an error
    Unable to transfer data. End Program?
    Any help would be appreciated.
    Thanks
    Sarves S V K

    Hi.,
    Check these  [Table Control Change Column Description|Add new columns in table control in custom screen program;
    and  [Add Columns in Table Control|Re: Table control columns]
    else  delete and create Table control Again..!!
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • How to define Column Header text table control

    Hi All,
    I have to create a function in which user will pass Field Name, Field Description.
    I have to show that field description in Table Control Columns as Text for columns.
    Like if a user pass Material , PLant etc, then first column header text will be Material and so on and in rows it will show the data.
    One more thing, is it possible to define the technical attributes like length based on field passed through function.
    Please help me to find out the solution.
    Thanks
    Piyush Mathur

    Hi Piyush,
    here are the some components of the screen . you can change tehm at run time in your code.
    components: name,input,output,required,length,active,invisible,intensified,group1,group2...etc.
    at ruin time you modify these attributes..
    your requirement is to change the name attribute.
    regards,
    sateesh

  • Adding a column in infotype(table control)

    i want to add a column in table control of infotype 0591. i need to add age for every nominee.
    i cant edit standard sap mp prog. so i thouhgt of copying it into zprogram, and now i have to assign it to that standard infotype so that this infotype will trigger my zmp program.
    any suggestions on this?

    Hi
    You cannot modify or copy the standard SAP generated program. Say if you wanted to add new field you could have done by doing the view deifnition for that infotype in tbale T582C or T582V. But since you want to add a new table control column i think you may have to create new infotype in PM01, else the std. functionality may be affected. You can check SAP help for creation of new infotypes.
    ~ Ranganath
    PS : Reward points for all useful answer !

  • How to make  a particular field in table control invisible?

    i have a field in my table control but im not able to make it invisible
    im using the following code
    PBO
    LOOP AT itab_ctrl INTO wa2_ctrl WITH CONTROL ztabctrl
        CURSOR Ztabctrl-current_line.
        MODULE modify_scrn_100.
      ENDLOOP.
    module modify_scrn_100.
    LOOP AT SCREEN.
       IF SCREEN-NAME = 'WA_CTRL-ZITEM'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
       ENDIF.
         ENDLOOP.
    endmodule
    ...here WA_CTRL-ZITEM is my table control field name
    ...even if i make invisible = 1 or 0 the field is not getting invisible

    Hi,
    Check the Demo Program <b>RSDEMO02</b>.here you can have option to make the column invisible.
    also check these..
    How to Hide a entire column in a Table Control?
    Hiding table control columns along with header
    Hiding of Table control
    Regards
    Vijay

  • How to implement Tool TIP in Table Control

    Hello Everyone,
    Can you please tell me how to implement a tooltip messages in table control columns.
    The Tooltip contains a simple message like "Doublde click on column.
    Thanks in advance.
    Edited by: Suruchi Razdan on Jun 6, 2011 7:57 AM

    Hello,
    In table Control->first Header Row has chance to maintain the Tooltip option.
    In table control columns maintain Double click options in attributes .
    Regards,
    Praveen

Maybe you are looking for

  • Get subset of date from a view

    I need to get 100 rows each time from a view which has about 2000 rows, i.e. get row 101 to 200 at one time, then 201 to 300 next time, and so on, we had a SQL statements doing this, but when the number getting larger (smaller number worked)I got a O

  • Hiding tabBar in tabNavigator

    Hi All, Does anyone know how to hide the tab bar up top on a flex tabnavigator component?  I don't want to see the tab bar at all and I don't need to click on it (I have an automated iterator through the tabs). Thanks for any input! Regards, Joseph

  • ZCM / Windows 7 / GPT drives

    Hi there, We are installing Windows 7 in UEFI mode on machines with 3TB drives. We had to convert the hard drive to GPT. Does ZCM agent run on disks with GUID Partition Table (GPT) drives. The Zenworks agent installs and the device is registered, but

  • Mighty mouse won't open dashboard

    For the last year or so, my mighty mouse no longer opens dashboard or any other program as it did when I first got my iMac.  It scrolls just fine, and the left and right buttons function perfectly.  I have gone into settings several times to try to c

  • OKB9....assignment...

    Hi Experts, In OKB9 We assign any costelement default to COPA , How the value flow to copa and where we assign value field to that costelement and on base the cost will segregate between different characteristics. In my case client assign Variance co