Table Interface MODIFY_CLASS

How can I check in the TABLE API whether the query returned any data or not?

Hello Deepu!
You can call the method GET_CELL_INFO (see http://help.sap.com/saphelp_nw04/helpdata/en/96/42393c3eb3036be10000000a11402f/content.htm for details) with row/col 1/1. If this returns no value, there is no data.
(Okay, some theoretical exception, e.g. if you defined the query that way that empty cells are possible in the first column, than have to do the check with another column...).
Yours,
   Tobias

Similar Messages

  • 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

  • ZPRINTING/Z_PRINT_HELP_SERVICE with Table Interface

    Hi,
    I use the ZPRINTING help service and the Z_PRINT_HELP_SERVICE help service class as a printing solution.
    I have modified the table interface to change the look of the table.
    I want this table interface change to be reflected in the print solution.
    I added this to the URL "&MODIFY_CLASS=ZCL_TABLE_ENHANCE".  ZCL_TABLE_ENCHANCE is the name of my table interface class.
    The entire url is:
    http://SERVER:PORT/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=ZPRINTING&DATA_PROVIDER=DP<b>&MODIFY_CLASS=ZCL_TABLE_ENHANCE</b>&P_STYLESHEET=/sap/bw/Mime/BEx/StyleSheets/BWReports_smallfont_print.css&P_PREVIEW_MODE=&P_HEADER_HEIGHT=1.00&P_HEADER_INDENT_LEFT=0.50&P_HEADER_INDENT_RIGHT=0.50&P_FOOTER_HEIGHT=0.8&P_FOOTER_INDENT_LEFT=0.50&P_FOOTER_INDENT_RIGHT=0.50&P_DATA_AREA_PADDING_TOP=0.00&P_DATA_AREA_INDENT_LEFT=0.50&P_DATA_AREA_INDENT_RIGHT=0.50&P_DATA_AREA_COLUMNS=4&P_PAGE_WIDTH=25.40&P_PAGE_HEIGHT=19.05
    However, when I run the printing solution, my table interface changes aren't reflected.
    Any help is appreciated.
    Thanks.

    Audrey,
    usually, you don't attach "modify_class" to the URL CMD, rather it needs to be attached to the object tag of the "item".
    Once it is attached to the object tag, you just need to attach "help_serivce" class & the "item" to the URL CMD.
    I've included a few lines of sample code here. Hope it helps.
    <object>
    <param name="HELP_SERVICE" value="ZPRINTING"/>
    <param name="MODIFY_CLASS" VALUE = "ZCL_TABLE_ENHANCE">
             ITEM:            TABLE_1
    </object>
    <A href="JavaScript:window.open(SAP_BW_URL_Get() + '&CMD=PROCESS_HELP_WINDOW&help_service=ZPRINTING&item=TABLE_1');" >

  • Hiding a row based on the the drill down via table interfaces

    I have a requirement to hide a particular row (key field) of a table if a characterisitic (0PLANT) is included in the table.
    I have managed to hide the key field via the table interface but need to know how I would see if the characteristic is drilled down (IE included in the table).
    Initially I used CAPTION_CELL to establish whether 0PLANT was in the report but when I then removed 0PLANT from the report, CAPTION_CELL is not reprocessed and thus the report is incorrect.
    What is the best way to establish what characteristics are included in any report.
    Any help would be appreciated.
    Cheers
    Shep.

    Hi Neal,
    why not using the service method get_state_infos.
    In e_thx_axis_info you should find all relevant information
    http://help.sap.com/saphelp_nw04/helpdata/en/32/ab3a3c24b4a00ae10000000a11402f/frameset.htm
    Heike

  • End of table in table interface

    Hi ,
    I have a scenario, where I want to add some rows to HTML table.  I can do this by table inerface, but how do I know that I have reached end of the table .
    Regards
    MB

    Hello,
    unfortunately this is not possible via table interface, you can only change (or hide) the value of existing cells.
    Can you give us a example what you want to add, maybe we can find a solution.
    Regards Marcus

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

  • Table Interface / Web: value from free characteristic

    Hi,
    i am using 2 queries. In the first query i got the free characteristic "calendar year month". Now i created a link with table interface to jump to the second query. With this link i would like to filter query 2 with calendar year month from query 1. How can i get the value from the calendar year month? With drill down there is no problem to get the value in method CHARACTERISTIC_CELL. But with free characteristics this is not so easy.
    Any ideas?
    Regards,
    M. Erbil

    Hi Erbil,
            Please find below the usage of GET_STATE_INFOS,
    DATA  l_sx_axis_data TYPE rsrds_t_axis_data.
               CALL METHOD me->GET_STATE_INFOS
               IMPORTING
               E_T_SLICER = l_sx_axis_data.
    You can get the 0CALMONTH from the above resultset.
    Cheers,
    Kartheek

  • Table Interface "destroys" Excel download

    Hello all,
    i made a webtemplate with 3 dataproviders. To download all into one excel sheet i implemented the How-To-Paper:" Web printing with Excel". It works fine.
    Now i attached a table interface class to the webtemplate which adjust some cells regarding color,....
    If i now download the template to excel for example: a percentage value like 48.59% 8web) is shown in excel 0.48 %; a normal value like 600 (which is normally 599.57 but rounded in webtemplate) is in excel 600 it should be 599.57).
    If i detach the table interface class it works fine again.
    Can anybody help ?
    Thanks
    Marc

    HI,
    I am having the same problem.
    Any solutions for this?
    Thanks,
    Andreas

  • "own checkboxes" in Web with Table Interface?????????u00DF

    Hi to all experts,
    i have the following scenario:
    I am using a query in web. Well in the lines there is a characteristic (for example sales org) and in the columns a keyfigure with an exception and a top10 condition. I think exception and condition are not important for my problem but the table is. Now i want to see in front off all lines a checkbox.  That means i have - for example - now 10 sales organizations in my query and in front of all sales orgs there should be a checkbox. I think that should be realized with table interface. Now the user should be able to mark two ore more checkboxes to jump with the Report Report Interface by using a link to another Web report? Is that possible? Sounds hard i think or isnt it?
    Regards,
    M. Erbil

    Hi Memo,
    try the following. Create a template with a web item table. Than by using se24 create your own class for table interface. Change method DATA_CELL.
    method DATA_CELL.
    *CALL METHOD SUPER->DATA_CELL
    EXPORTING
       I_X                   =
       I_Y                   =
       I_VALUE               =
       I_DISPLAY_VALUE       =
       I_NUMERICAL_SCALE     =
       I_NUMERICAL_PRECISION =
       I_CURRENCY            =
       I_UNIT                =
       I_ALERTLEVEL          =
       I_IS_SUM              =
    CHANGING
       C_CELL_ID             =
       C_CELL_CONTENT        =
       C_CELL_STYLE          =
       C_CELL_TD_EXTEND      =
      data: l_cell_content type string.
      if i_x = 2 and i_is_sum <> 'X'.
        concatenate l_cell_content '<INPUT type=checkbox value=ON name='
        '' filter '' '>' into
        l_cell_content.
        c_cell_content = l_cell_content.
      endif.
    endmethod.
    You can hold the value from characteristic in method CHARACTERISTIC_CELL:
    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 =
    data: l_filter type string.
    Store characteristic value of current row
    if i_x = 1 and i_is_sum <> 'X'.
    l_filter = i_chavl.
    endif.
    endmethod.
    Please note that "i_chavl" holds the key value from characteristic.
    Now back to method DATA_CELL and insert something like this:
    filter = l_filter. "l_filter is set in method characteristic cell
    so it look like this:
    method DATA_CELL.
    *CALL METHOD SUPER->DATA_CELL
    EXPORTING
       I_X                   =
       I_Y                   =
       I_VALUE               =
       I_DISPLAY_VALUE       =
       I_NUMERICAL_SCALE     =
       I_NUMERICAL_PRECISION =
       I_CURRENCY            =
       I_UNIT                =
       I_ALERTLEVEL          =
       I_IS_SUM              =
    CHANGING
       C_CELL_ID             =
       C_CELL_CONTENT        =
       C_CELL_STYLE          =
       C_CELL_TD_EXTEND      =
      data: l_cell_content type string,
            filter type string.
      if i_x = 2 and i_is_sum <> 'X'.
    filter = l_filter.
        concatenate l_cell_content '<INPUT type=checkbox value=ON name='
        '' filter '' '>' into
        l_cell_content.
        c_cell_content = l_cell_content.
      endif.
    endmethod.
    Hope it works
    Regards,
    Adem

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

  • Table Interface in BI7

    Hello All,
    Can anyone tell me what has replaced the table interface in BI7?
    The table interface was used in reporting to alter layouts in the report or to bring fields together i.e. text longer than 60 chars.
    Thanks
    Bryn

    Hi,
    Table Interface:
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/06a83a4bd5a27ae10000000a11402f/frameset.htm
    It is only for BW 3.5.The table interface is no longer available in BI NW2004s.The table interface solution is not applicable to the java stack in version 7 (you can use the ABAP stack though).As far as I know, the system no longer supports the use of the table interface.
    Pls Check this links;
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58fd9183-0e01-0010-f183-fdc9019f77ab
    http://help.sap.com/saphelp_nw04s/helpdata/en/68/b42342ec0edd2ce10000000a1550b0/frameset.htm
    Regards
    CSM Reddy

  • Table  Interface : Merge cells in the same column

    I want to use the Table Interface to accomplish this...
    I need to merge cells that are to the top/bottom of eachother. So, the 2 cells have the same InfoObject. They are 2 different values and i want them to appear in the same cell... for example..
    A regular table returns:
    STATUS
    ¯¯¯¯¯¯¯¯¯
    OPEN
    CLOSED
    I want it to be displayed like:
    STATUS
    ¯¯¯¯¯¯¯¯¯
    OPEN
    CLOSED
    The vertical lines on the right should be lined up but i cant get it to format. Anyway, how can this be accomplished?
    Thanks.

    We have data object which is a very long text.  Much longer than the 60 char limit.  So, we're thinking of breaking the text up into 60 char chunks.  And then put each chuck beneath one another.  But we need the texts to look like they're all in the same cell.
    I first thought of manipulating the borders using CSS styles.  But I couln't figure out how to tell if I've reached the last line of the text.  (I was trying to use I_Y to navigate through the column.)
    Second thought, merge the cells.  This would be more efficient.
    Thanks.

  • Table Interface - Urgent

    Hi all,
    I would like to use the table interface to hide a lot of consecutive rows (more than 100) in a web query.
    Therefore I've redefined both DATA_CELL and
    CHARACTERISTIC_CELL method with coding
    move '<!-- -->' to c_cell_content for the referring rows.
    The effect is, that the cell content is hide but all rows are shown furthermore with a minimal heigth.
    Could anybody help me?!
    Bye
    Hagen

    Dear Hagen,
    why don´t use the "show rows" paramter of table item in WAD this will not create (not hide) the rows more than 100 or make a condition top 100 into the query this is better for performance than just hide them.
    If you want to do it by Table Interface you have to change the methode structure_cell as well.
    Regards
    Marcus

  • Get the filter value in the Modify Table interface

    Dear Colleages,
    I use a Table Interface in order to get aditional values in a web template from a table, but I need the filter value used in the query.
    I can get it with "get parameter" sentence:
    GET PARAMETER ID '/BI0/OCALMONTH' FIELD MES1
    But I cannot when I have a filter instead of a variable, it doesn't work using a variable without "manual entry" option.
    ¿How can I get this filter value?
    Regards,
    Jose

    Hi Jose,
    Use method get_state_infos (http://help.sap.com/saphelp_nw04/helpdata/en/32/ab3a3c24b4a00ae10000000a11402f/frameset.htm)
    The dynamic filters are in e_t_slicer.
    If this a a static filter or a variable, you can find them in e_t_txt_symbols.
    Heike

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

Maybe you are looking for

  • How to get web app root?

    IF im in a servlet/jsp how do I get the web app root? for example, if my web app's url in the browser is http://www.server.com/webapp/Servlet then "webapp" is the root... how do I get that in code? I don't want request URI or anything like that... ju

  • IPhone 3GS/IOS 6.1.6/Yosemite 10.10/iTunes 12.0.1.26 will not update or install apps

    I have an iPhone 3GS/IOS 6.1.6/iMac Yosemite 10.10/iTunes 12.0.1.26. I have always synced it with my 27 inch iMac with no problems. I recently attempted to install the apps "The Economist Expresso" and "Disconnect." I do NOT have (and have never had

  • How to turn off Open Directory in OS X Server 10.8.2

    I am configuring a MacPro with ML Server 10.8.2 for internal-only use.  I have DNS working on it (with the annoyance that it goes out of its way to break wildcard host names, and it doesn't know how to properly create the zone files to allow a second

  • Camera Raw changes resolution to lower value (CS4, CS5)

    When I open a tiff file that is 300 dpi in Camera Raw, process it some, then open it in Photoshop and save it, the resolution has changed from 300 to 240. Anyone know why this is and how to prevent it?

  • Managing photos in iPhoto library vs. albums

    I just realized that my method of importing photos from my iphone to iPhoto does not work the way I thought. I've been dragging photos into an album ("Temp to Review") from there I move them into specific folders and "delete" the ones I don't want to