How do i hide a column in table interface class

Hi,
I need to hide a column in Abap table interface class. When i tried to hide from web item properties it didn't work so i am thinking to hide first column in the table interface class
Thanks,
mala

In the WebApplication Designer start Tools -> View Definition -> Based on a Query. Choose your query, change layout to your requirements and save the view. Now just use the view in your webtemplate.
Pls assign points if answer is useful
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/37289">vitaliy</a>

Similar Messages

  • How to hide Actions Column in Table

    Hi All,
    I have a simple requirement: I am showing a table (items)
    - the "Actions" column (Column with Buttons to Edit and Delete a particualr row) must not be show -> no changes to the table are allowed (I need to hide/ disable this column)
    How can I hide this column od the table?
    I have found out that the field is called thtmlb_oca and that htere is a getter method get-thtmlb_oca. However, the method does not contain coding and I do not know how to HIDE this field/ column...
    Please help me here..
    Thanks, Johannes

    Hi Johannes,
    To remove the column completely,
    you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
    TYPES: BEGIN OF line,
    *  thtmlb_oca  type  crm_thtmlb_one_click_action.
      INCLUDE TYPE xxxx.
      TYPES:  END OF line.
    Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
          <fs_actions>-active  = abap_false.
        ENDLOOP.
    Regards,
    Masood Imrani S.

  • RE: Hide a column in web report using table interface class

    Hi,
    I want to hide first column in web template using table interface class. Following is the code i used in CAPTION_CELL and CHARACTERISTIC_CELL. Is this correct?
    method CAPTION_CELL.
    *First column
    if i_x = 1.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    endmethod.
    method CHARACTERISTIC_CELL
    First column
    if i_x = 1.
    save start-time column
    move I_CHAVL_EXT to L_STARTTIME.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    endmethod.
    When i execute the web template it is still displaying the first column. Do i have to code in any other method?
    Thank you,
    Mala Venkatesh

    Hi , the implementation should look like...
    method CAPTION_CELL .
    *CALL METHOD SUPER->CAPTION_CELL
    EXPORTING
    I_X =
    I_Y =
    I_IS_EMPTY =
    I_IOBJNM_ROW =
    I_ATTRINM_ROW =
    I_TEXT_ROW =
    I_IOBJNM_COLUMN =
    I_ATTRINM_COLUMN =
    I_TEXT_COLUMN =
    I_IS_REPETITION =
    I_COLSPAN =
    I_ROWSPAN =
    CHANGING
    C_CELL_ID =
    C_CELL_CONTENT =
    C_CELL_STYLE =
    C_CELL_TD_EXTEND =
    First column
    if i_x = 1.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    Second column
    if i_x = 2.
    close comment tag
    concatenate '--> '
    C_CELL_CONTENT
    into C_CELL_CONTENT.
    endif.
    endmethod.
    method CHARACTERISTIC_CELL .
    *CALL METHOD SUPER->CHARACTERISTIC_CELL
    EXPORTING
    I_X =
    I_Y =
    I_IOBJNM =
    I_AXIS =
    I_CHAVL_EXT =
    I_CHAVL =
    I_NODE_IOBJNM =
    I_TEXT =
    I_HRY_ACTIVE =
    I_DRILLSTATE =
    I_DISPLAY_LEVEL =
    I_USE_TEXT =
    I_IS_SUM =
    I_IS_REPETITION =
    I_FIRST_CELL = RS_C_FALSE
    I_LAST_CELL = RS_C_FALSE
    I_CELLSPAN =
    I_CELLSPAN_ORT =
    CHANGING
    C_CELL_ID =
    C_CELL_CONTENT =
    C_CELL_STYLE =
    C_CELL_TD_EXTEND =
    First column
    if i_x = 1.
    save document-item number
    move I_CHAVL_EXT to l_docitem.
    add comment tag
    move '<!-- ' to C_CELL_CONTENT.
    endif.
    Second column
    if i_x = 2.
    close comment tag
    concatenate '--> '
    C_CELL_CONTENT
    l_docitem
    into C_CELL_CONTENT
    separated by space.
    endif.
    endmethod.
    Activate the methods/class and add this in the Web Template!
    for example:
    <param name="MODIFY_CLASS" value="ZHCOLAPP">
    ZHCOLAPP is the table interface class in this case.
    Best,
    Michael

  • Default Table Interface Class - 0TPL_BAP_MASTER

    Hi there
    We are trying to determine which table interface class is used on the default 0TPL_BAP_MASTER web template.
    We have created our own web template, but one of the pieces of functionality delivered with the standard template is the sort (ascending/descending) functionality which is included as arrows on the table column headings. We would very much like to use this on our custom template, and believe it to be implemented in the table interface class, but are not sure what that class is.
    Anybody know the name of the class?
    Cheers,
    Andrew

    Hi Deepu,
         How are you?
    I got a error about 0TPL_BAP_MASTER, when we are exicuting webtemplates in my portal. Can you please tell me what may be the error and how to overcome with this error.
    Thanks,
    Surendra.

  • How can I hide a field a table from SE16

    Hi all,
    I have an urgent requirement, can anyone help me? How can I hide or mask any field of a table from SE16. Also how can I restrict the user not to put a restriction on a particular field of a table so that this field should not be accessed for SQVI/SQ01.
    Awaiting for reply.
    Useful answers will be rewarded immediately with full points.
    Tnx.

    You could hide the column, by using the standard functinoality of the ALV output, you would need to hide the column, and save a default layout.  This way the next time you come into this display, the column will not be there.
    Regards,
    Rich Heilman

  • Hide columns in table interface

    I've used SAP's 'How to ... Hide a column in your Web Query with the Table Interface".  The problem is that if I do any OLAP function my headings reappear.  It doesn't look like the 'structure_cell' method is being called.  Is there a way to force this method to be call?  Or is there a flag to reset in the table class that tells the class that this is the first time running the report.  It seems that the initinal run is different than if you use any OLAP function.

    Make sure the STATELESS navigation state of the template is not set. There is no properties which needs to be set in the class for this.
    Thanks.

  • How to identify the hidden columns in table by using af:panelCollection

    Hi,
    We are using af:panelCollection tag for a table to show personalization features. i.e. to hide or disaply colums in the table.
    We also have a print button to print data in the table. the issue is when we hide any column in teble using the personalization feature given by af:panelCollection , we can see the hidden columns also on the page to be printed.which should not happen.
    For printing table we cant use showPrintablePageBehavior coz it prints data on current page only where as we also have Print all data button which should print all data on table which is not visible on scrren due to pagination.
    Using ADF 11.1.1.5.0 and JSF 2.0 . Please help how to capture whci colums are made hidden.
    The code used for printing data is
    <div class="print_data">Print Current Data</div>
    <ahref="printCurrentData.jsp" target="_blank" class="left">
    <img src="print.png" alt="abc"
    width="24" height="22" border="0"/></a>
    <div class="print_data">Print All Data</div>
    <ahref="printAllData.jsp" target="_blank" class="left">
    <img src="print.png" alt="abc"/></a>
    Edited by: 924834 on Aug 27, 2012 4:27 AM
    Edited by: 924834 on Aug 27, 2012 4:28 AM

    There are some things which don't add up here.
    You are using jdev 11.1.1.5.0 which only comes with jsf 1.2, but you are using jsf 2.0?
    Then you are using jsp instead of jsf which are the normal way to go for jsf.
    Can you please clarify on this?
    How is the printCurrentData.jsp setup? Do you have a table on it based on the same iterator as on the visible page with the hidden column?
    Timo

  • How can i hide a column using personalization?

    Hi,
    Please help me how can i hide a one column in oracle forms using personalization?
    Thanks

    Hi,
    When you login to My Oracle Support website, enter "458786.1" or "468657.1" in the search box, and you should get the documents.
    Or, use the direct links below to access those documents.
    How To Do Forms Personalization (Doc ID 468657.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=468657.1
    RCVRCERC: When Using Personalization to Remove a Column Receive Error FRM-41017: Cannot set UPDATE ALLOWED (Doc ID 458786.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=458786.1
    Regards,
    Hussein

  • How to do flipping of columns of table

    Hi all,
    i have created a script which should display the columns of table in seperate line ie, say there are three columns c1,c2 and c3. then the output should come as
    c1
    c2
    c3
    but in my case it is coming as
    c1 c2 c3
    how to solve this problem . i think flipping of tables will be helpful. can anybody write the syntax for me.
    kindly help me out .
    thanks

    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:766825833740

  • Hide repeating column in table

    I have a table wrapped in a subform which allows the user to add/delete multiple rows, I want to use a button to hide a column in the table once the use has finished adding/deleting rows.
    I have tried:-
    xfa.resolveNodes("Tables.Table1.Row[*].deleteBtn").presence="hidden";
    Any help would be appreciated

    Hi Johannes,
    To remove the column completely,
    you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
    TYPES: BEGIN OF line,
    *  thtmlb_oca  type  crm_thtmlb_one_click_action.
      INCLUDE TYPE xxxx.
      TYPES:  END OF line.
    Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
          <fs_actions>-active  = abap_false.
        ENDLOOP.
    Regards,
    Masood Imrani S.

  • How can i update all column of table without know it's structure

    hi to all
    i want to make update to all columns of table with record type of this table
    ex- consider the emp table and contain any number of columns
    and you make record is row type of this table (emp) as emp_rec
    and fech in it any record by select * from emp
    and i want to update another record this the return record from data base as
    update emp by using the emp_rec
    i want to know how this will be acheive

    It is all written in the docs:
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#i20479
    Although updating all columns for a table is VERY, VERY BAD practice.
    Gints Plivna
    http://www.gplivna.eu

  • Hide Move Columns on tables 11.1.1.5.0

    Hi! I'm using obiee 11.1.1.5.0 and I got it hide order columns with css style. (add code in a dashboard page)
    Now I would like to approach hide move columns....
    You can see in my image that arrows are gone in my table...but still move columns...I need to remove it!
    Anybody knows about it??
    Thanks!
    http://imageshack.us/photo/my-images/850/moveau.jpg/

    In version 11.1.1.5.0 I don't have this option...but I have a good solution:
    we have to add a text in a dashboard page like this:
    <style type="text/css">
    .PT_SI{ 
    display:none;
    .PT_HGHT{ 
    display:none;
    </style>
    mark HTML
    We coudn't sort any column coudn't move any column :)

  • 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

  • How to add a new columns in table contorl in standard screen.

    Hi All,
    I am working on a enhancement for transaction VA01. I have to add few column for tab Additional Data B. In this tab  column are displayed in table control. Now i have to add two more column in table control. Could you please help me to find out the exit and the way to populate the new columns.
    Thanks
    Piyush Mathur

    Hi Piyush,
              That table control might have been created using an internal table i.e declared in the exit. Add two more fields which you want to that internal table. And come to the layout and create table control once again using that internal table.
    Reward if helpful.
    Regards,
    Ramana

  • How to control "hide/show" in a table on row level

    I was trying to implement controlling/rendering of "hide/show" in a table on row level, but no luck. Is is possible to render the "hide/show" in a table based on the row attribute? If the row attribute is "true", then render the "hide/show" at that row; If the row attribute is "false", then not render the "hide/show" for that row. Is this feasible? Thanks.

    I think this should be possible, what u need to do is as follows:
    1) Add a decode statement to your VO query to get 0/1 based on your condition like
    decode('',true,0,1) render_flag
    2) In VO attrinute mappings caste this attribute as boolean instead of number.
    3) Attach this attribute to render flag of hide/show via SPEL.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • AGO function is not returning value in OBIEE 11g

    I have 2 tables FIN_MASTER AND FIN_TRANS.  FIN_MASTER  is having the following fields org_code, type_code, vr_no, vr_Date, pay_to .FIN_TRANS is having the columns org_code, type_code, vr_no, acct_code. debit, credit. PK of FIN_MASTER is org_code, typ

  • File Upload and download from a central repositiory.

    Hi experts,   I  have written the following code in webdynpro for abap...But it is giving error as "Access Via Null Object Not possible" This code runs perfectly fine in abap. I dont know what is the problem in webdynpro . Code :    data: ifile1 type

  • PPV calculation

    With regards to PPV calculation, what type of report is available in SAP? & also at standard u2013 should be able to run a report that ties back to PPV?

  • Il puntatore del mio macbook pro non funziona correttamente, fa dei movimenti a scatto da solo come posso risolvere il problema?

    Il puntatore del mio macbook pro non funziona correttamente, fa dei movimenti a scatto da solo come posso risolvere il problema?

  • Dmake -j

    Hello, I'v got a little problem with dmake. I'd like to use it with 4 jobs. So I used : "dmake -j 4 all" During the compilation I got the warning : dmake: defaulting to parallel mode. See the man page dmake(1) for more information on setting up the .