BSP table view concatenation

Dear SAP Gurus,
I am working in SAP BSP. I have a table view, in that, I have concatenated date and time field.
I want to create a filter there.  Since it is concatenated, the filter is not working.
Please help and guide me how to resolve it.
Regards,
Abu.

I agree with Graham...you can implement iterator concept to tackle the requirement...
in TableView element there is a parameter name "Iterattor" which can hold instance of any iterator class...
you can use local or global class to write logic...
correct method can be "Column_Rendering" (can not remember exact name, please check in the interface avaialble in TableView element)
Thanks

Similar Messages

  • Passing internal table to a BSP Table view

    Hi All,
    I have a Function Module which returns an internal table
    with data from R/3.
    I would like to know is it possible to display it in a custom BSP Table view for Web IC.
    please help if anybody solved similar problem!.
    Thanks n Regards,
    sudeep v d.

    Hi,
    I am able to display a table view but here i am passing
    the table parameter in the .htm like this.,
    table           = "//Address/Table"
    where,
    'Address' is type ref to CL_CRM_IC_BUPAMOREADDRESS_CN01
    I created my  own implementation class (ZCL_CRM_IC_BUPAMOREADDRES_IMPL)
    and context class (ZCL_CRM_IC_BUPAMOREADDRES_CTXT)
    created!.
    here my question is .. is there anyway to pass an internal table to this view!.
    please help..
    Thanks n regards,
    sudeep v d.

  • Bsp table view - functionality . future direction

    hi bsp'er,
    does anybody knows whether it is planned to make  bsp-extensions available that cover a functionality compareable to the ALV in abap or do we have do this stuff on our own.
    i have seen a tableView in cprojects which actually has a bit more functionality than the one in standard bsp (r/3) environments, it's an plm bsp extension.????
    what does other people / companies do to provide end user with such functionality, or are they even satisfied with the "as it is" ?????
    kind regards
    oliver

    The following is a link to weblog on that provides the download portion of this solution (just one piece of what is being discussed) as a reusable BSP extension:
    /people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table
    Now this is intentionally not linked to the tableView or the iterator.  This has advantages and disdvantages. 
    I too have had to create some of this additional functionality via iterators.  However I find that this still requires a lot of custom development for each solution.  Ideally I would like to create some sort of wrapper element for the tableView that has all the UI elements and processing for doing the things described in it already.  Then using this enhanced table control would be as easy as working with the ABAP ALV Grid.  However I just haven't had the time to work on such a complex project.

  • BSP COMPILER & Table view  ITERATOR

    Hi Gurus,
       Can any  body give the follwing details
    1.What is BSP Compiler?
    2.What is Table view iterator?
    Thanks in Advance,
    Regards,
    Ravi.

    Hi,
    1.the compiler builds the internal code you put in your pages.
    practical reference:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11099890-0201-0010-d695-ac642d35c708">pdf by Karl Kessler</a>
    2.a bsp table view iterator can be checked here:
    <a href="/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator">Weblog by Brian McKellar</a>
    <a href="/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators by Thomas Jung</a>
    basically it's used for customizing diplay of tables
    grtz
    Koen
    Message was edited by: Koen Labie

  • Minimise Server Click in a Table view in  BSP

    Hello All
    I have a issue related to TableView in a BSP Application
    Our requirement is :
    User want to edit a coolumn value for  few records displayed in a Table View . as per My knowledge , when a row is selected in a table view , system go to server side and takes time . user did not liked that. He want to get it done faster that is selection of rows should be faster.
    How can we achiew row selection in a tableview without server clicks....we also want to find selected rows.
    can we achieve this and how ? Please let me know at the earliest.
    Thanks
    Rajiv

    don't implement the onRowSelection handler for the table view. Let the user choose the several lines and add a button called 'Choose' for e.g. Only when the button is clicked you start processing the selection.

  • How to SELECT ALL records of a TABLE VIEW in the BSP page

    Hi All,
    In the BSP portal, I am displaying some data(multple records) in the form of a table using the BSP TAG <htmlb:tableView>. I wrote the logic in the 'VIEW' of the BSP application which will be triggered by the controller. I have used the attribute selectionMode = "MULTISELECT" to have a Check Box to select a row.
    My requirement is to have a button/checkbox on the first column of the header of the table view. By clicking on this, it should select/desect all the records of the table. Could someone please help me how to do this? What attribute I should use in the tableview to get the button in the header row of the table and how to select all the records of the table.?
    Please provide your valuable inputs.
    Thanks & Regards,
    Paddu.

    Select all / Deselect all functionality when onRowSelection is there

  • Create a table view in my BSP Application!.

    Hi All,
    I am using CRM version 4.0 here i want to crate a new table view in my own BSP Application and want to display in the CRM_IC Application.
    The problem now i am facing is.. there is now provision to create the table view via the wizard. I tried to copy the BSP code, changed the code accordingly also i changed the inheritance for the context node class from
    CL_BSP_WD_CONTEXT_NODE to CL_BSP_WD_CONTEXT_NODE_TV.
    i also copied the iterator attribute.
    still the view is coming with an error saying that page have some problem.
    can anyone suggest any easy method to create the table view!.
    or else can you tell me what i have to do further!.
    Thanks n regards,
    sudeep v d.

    Hi,
    The problem is not only at the .htm page!. I think some changes are required at the context node level. for
    here is the BSP code I m using for displaying the table view..
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="CRM_BSP_IC" prefix="crmic" %>
    <crmic:tray2 id     = "MoreFields"
                 title  = "<%= otr(crm_ic_appl/BuPaAccount) %>"
                 height = "100%,603"
                 width  = "100%" >
      <crmic:trayBody2>
        <crmic:gridLayout cellSpacing    = "1"
                          columnSize     = "1"
                          rowSize        = "10"
                          height         = "100%"
                          width          = "100%"
                          widthPredefine = "TRUE">
        <crmic:gridLayoutCell columnIndex = "1" rowIndex    = "4" >
            <crmic:tableView design          = "STANDARD"
                             width           = "100%"
                             id              = "Address"
                             table           = "//Address/Table"
                             visibleFirstRow = "3"
                             visibleRowCount = "4"
                             selectionMode   = "LINEEDIT"
                             onRowSelection  = "select"
                             fillUpEmptyRows = "TRUE"
                             headerVisible   = "FALSE"
                                           >
              <crmic:tableViewCols>
                <crmic:tableViewColumn columnName = "STREET"
                                       title      = "<%= otr(CRM_IC_APPL/BuPaStreet_t) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "POSTL_COD1"
                                       title      = "<%= otr(CRM_IC_APPL/BUPAPOSTCODE_T) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "CITY"
                                       title      = "<%= otr(CRM_IC_APPL/BUPACITY_T) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "REGION"
                                       title      = "<%= otr(CRM_IC_APPL/REGION) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "REGIONNAME"
                                    title      = " "
                                       edit       = "FALSE" />
              </crmic:tableViewCols>
            </crmic:tableView>
        </crmic:gridLayoutCell>
       </crmic:gridLayout>
      </crmic:trayBody2>
    </crmic:tray2>
    In the above code i have given
    table    = "//Address/Table"
    here the 'Address' is defined as a page attribute type ref to the context node class ( CL_CRM_IC_BUPAMOREADDRESS_CN01 ).
    the same class is used in the CRM_IC application works fine!.
    also i entered the attribute entry for the 'Address' in the _CTXT class the view.
    still the same error 'page  cannot be displayed'.
    what could be the problem anyone plaese help!.
    Thanks n regards,
    sudeep v d.

  • Capture the rows selected in a multiselect table view (BSP)

    Hi,
    My requirement is:
    I have a table view in which I can select multiple rows.
    I will be selecting some rows, and pressing a button.
    Functionality of button is written in Javascript, to open a popup window.
    But how will I capture which all rows were selected ?
    Should I use a Java code or ABAP code ?
    And where should I put that code ?
    I tried calling the method cl_hrrcf_iterator=>get_tv_attr in the Javascript of the button. But it doesnt work. But if its in DO_HANDLE_DATA it works. Why is it like that ?
    Is it possible in BSP, to use the function htmlbevent.obj.getSelectedRows() ? If so, how should the code be ?
    Could you please tell me some of the possible solutions.
    Would definitely appreciate quick replies.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    You can have the ABAP code itself. I had also faced with then same issue. Use the below piece of code form your requirements.
    In *IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START*
    *  Data : M_ROW_REF type <Structure type>
    *m_row_ref ?= p_row_data_ref*
    In *IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START*
    * DATA : CHK TYPE FLAG
    *case p_column_key.*
       when ' <Column Name>'.*
         CHK = m_row_ref-><Column Name>.*
          p_replacement_bee = CL_HTMLB_CHECKBOX=>FACTORY(
                                id                = p_cell_id
                              checked         = CHK ).
    In *Do Request*
    Data : loc_table_event type ref to cl_htmlb_event_tableview
    call method cl_hrrcf_iterator=>get_tv_attr
        exporting
          p_tv_id               = '<Tabe View ID'
          p_component_id        = me->component_id
          po_request            = me->request
        importing
          po_tv_event           = loc_table_event.
    The above methods are used to get the values which are selected in the table view and operated further.
    Reward points if useful.
    Regards,
    Gokul.N

  • BSP: How to create check box in a column of a Table View

    Hi All,
    I have a table view in Web IC scenario. my requirement is to display check box in one of the column of the table view.. so that i can select multiple lines from the table and do some calculations!.
    Anybody have any hint/clue
    Thanks in advance,
    sudeep v d.

    Hi,
    This can be achieved by using a Table iterator.
    Please check the standard examples for this.
    Thanks,
    Rashmi.

  • To determine the number of rows selected in a table view (BSP)

    Hi,
    My requirement is:
    I would be selecting 1 row from a table view ( which is made multiselect for another requirement) , and press a button.
    The functionality of button is to open a popup window based on the row selected.
    I want to display an error message if more than 1 row is selected, and button is clicked.
    Message will say that "you cannot select more than 1 row".
    For this,  I need to know how I can get the number of selected rows in a table view.
    I tried using the below code.
    But I feel this will work only in DO_HANDLE_DATA method.
    The popup would open, even before control comes in this method.
      CALL METHOD cl_hrrcf_iterator=>get_tv_index
        EXPORTING
          p_id               = p_tableview_id
          pt_form_fields = table_form_fields
        IMPORTING
          pt_indices      = sel_row_index_tab.
    Could you please provide me with a solution.
    Quick replies will be highly appreciated.
    Thanks,
    Nisha Vengal.

    Hi ,
    Your TV :
    <htmlb:tableView id              = "tv1l"
                                   design          = "alternating"
                                   visibleRowCount = "10"
                                   fillUpEmptyRows = "true"
                               onRowSelection  = "MyEventRowSelection" <----This is the event you have to use
                                   selectionMode   = "MULTILINEEDIT"
                                  filter          = "SERVER"
                                   table           = "<%= some table %>" >
    in DO_REQUEST:
    DATA:  tv                  TYPE REF TO cl_htmlb_tableview,
           tv_event          TYPE REF TO cl_htmlb_event_tableview ,
           event             TYPE REF TO if_htmlb_data.
    event = cl_htmlb_manager=>get_event( request ).
    IF event IS NOT INITIAL AND event->event_name = htmlb_events=>tableview.
      tv_event ?= event.
      CASE event->event_server_name.
        WHEN 'MyEventRowSelection'.
    count = count + 1 .
    if count ne 1 .
    errmsg = 'Your message'.
    endif.
    ENDCASE.
    ENDIF.
    in View/Layout:
    <% if errmsg is not initial. %>
    <s cript t y p e   =   t e x t / j a v a s c r i p t >
    a l e r t ("<%= errmsg %>") .
    </ s c r i p t>
    <% clear errmsg. %>
    <% endif. %>
    errmsg is a class attribute of type string and count is also a class attribute of type c .
    Regards,
    Anubhav.
    Reward if useful
    Edited by: Anubhav Jain on Sep 19, 2008 3:08 PM

  • Addition of a custom column in a table view

    Hi all,
    I want to add a custom column in a table view. Kindly tell me if this is possible.
    Regards,
    Vivek Pandey

    Hi Vivek,
    This can definately be done....you will have to declare and iterator and in the GET_COLUMN_DEFINITIONS, declare the column name....
    Referr to blogs :
    <a href="/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator Basics</a>
    and
    <a href="/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators Iterator.</a>
    The second blog shows how to insert a icon, which is an extra column...
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • Add data to table view from input fields in a page

    Hi
            I am developing a BSP page which will be called from SRM shop transaction. After user enters the line item data, data will be passed back to shop transaction using OCI interface and the page attributes (URL).
       (1) How can I add data from input fields to table view on a page on a button click? I am able to add first line but I could not retain first line data when I try to add the second line.
          I am able to add multiple lines to table view if I use view and controller by adding to the line data to static attribute of the controller. I can’t use the controller and view because I can not set the attribute to Controller automatically.
       (2) Is there a way to pass an attribute (URL) to controller from SPRO? Like we pass an attribute to page automatically (Automatic page attribute).
       (3) How can I call a controller and view and pass the page attribute to the controller on a button click from a page with out controller?
    Thanks
    Sreenivas

    I'm trying to test the merge with the following data in a test.txt file:
    ZZZZZ114923000004
    1234Z400660000001
    ZZZZZ114923000010
    Getting an error:
    SQL> @C:\dataformats\sql\pc12seriesMerge.sql
    Directory created.
    SP2-0552: Bind variable "17" not declared.
    SQL>
    here it the pc12seriesMerge.sql file
    set serveroutput on
    create or replace directory user_dir as 'c:\dataformats\incoming\';
    DECLARE
    v_filename VARCHAR2(100); -- Data filename
    v_file_exists boolean;
    v_file_length number;
    v_block_size number;
    f utl_file.file_type;
    s varchar2(200);
    lineString varchar(200);
    v_account varchar(5);
    v_IDN varchar(6);
    v_quantity varchar(6);
    BEGIN
    v_filename := 'TEST.TXT';
    DBMS_OUTPUT.PUT_LINE(v_filename); --shows filename
    utl_file.fgetattr('USER_DIR', v_filename, v_file_exists, v_file_length ,v_block_size );
    IF v_file_exists THEN
    dbms_output.put_line('File Exists');
    create table ext_table (
    account varchar2(5),
    idn number(6),
    quantity varchar2(6)
    organization external (
    type oracle_loader
    default directory user_dir
    access parameters (
    records delimited by newline
    fields (
    account position(1:5) char(5),
    idn position(6:11) char(6),
    quantity position(12:17) char(6)
    location ('test.txt')
    reject limit unlimited;
    MERGE INTO id_req_stg t
    USING (
    SELECT account,
    idn,
    decode(quantity, '-', 0, to_number(quantity)) as quantity
    FROM ext_table
    ) v
    ON ( t.account = v.account AND t.idn = v.idn )
    WHEN MATCHED THEN
    UPDATE SET t.quantity = v.quantity
    DELETE WHERE t.quantity = 0
    WHEN NOT MATCHED THEN
    INSERT (account, idn, quantity)
    VALUES (v.account, v.idn, v.quantity);
    ELSE
    dbms_output.put_line('File Does Not Exist');
    END IF; -- file exists
    EXCEPTION
    WHEN UTL_FILE.ACCESS_DENIED THEN
    DBMS_OUTPUT.PUT_LINE('No Access!!!');
    WHEN UTL_FILE.INVALID_PATH THEN
    DBMS_OUTPUT.PUT_LINE('PATH DOES NOT EXIST');
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
    END;
    /

  • How to add a coloumn in a table view

    Hi all,
    In BSP SRMSUS, i need to add a column COUNTRY in the table view of PARTNER.
    i got to know that it can be done through iterator.
    But i have no idea on how to do that.
    Any help in this regards!!!
    Thanks and Regards
    Veda

    Hi Ravi,
    i got it. There is an SPRO setting where we control the fields to be displayed on the screen.
    i have added my required field which is present in the strcture in that spro setting.
    And i got it.
    Thanks
    Veda

  • To display Total sum of a column in a table view control ?

    Hi,
      I am unable to display the sum of a column in a table view control ( using HTMLB ). How should one display the sum of a column in a table view control ?
    Thanks in advance.
    Vara.

    Hi there, do a search in this forum for TableView Iterator. Then check out these weblogs:
    /people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    An Iterator is the way to go for you

  • How to hide fields in table view

    Hi,
    I'm populating the contents of an internal table in a table view. I want to know how to hide few fields in table view. I'm working on classical BSPs.. no MVC and I have not used iterator.
    Thank you
    Sreesanth.

    just to hide certain fields (columns) you dont need iterator. you could use columnDefinition attribute of htmlb:tableView tag.
    to do this declare two page attributes as below
    col_control_tab     TYPE     TABLEVIEWCONTROLTAB
    col_wa     TYPE     TABLEVIEWCONTROL
    now in the oninitialization event. fill col_control_tab with the required column details.
    suppose the itab has columns 1 to 10 and you want to display only column 1 and 8 then the coding would be.
    clear col_wa .
      move: '1' to col_wa-columnname , " field name of column1 in itab
      'This is the title of column1' to col_wa-title ,
      'LEFT' to col_wa-horizontalalignment  .
      append col_wa to col_control_tab .
    clear col_wa .
      move: '8' to col_wa-columnname , " field name of column8 in itab
      'This is the title of column8' to col_wa-title ,
      'LEFT' to col_wa-horizontalalignment  .
      append col_wa to col_control_tab .
    the finally
    <htmlb:tableView id                  = "tv1"
                           design              = "ALTERNATING"
                           selectionMode       = "MULTISELECT"
                           onRowSelection      = "MYROWSELECTION"
                           table               = "<%= flights %>"
                         columnDefinitions   = "<%= col_control_tab %>"
    Regards
    Raja

Maybe you are looking for

  • Mini-DVI port does not work in windows 7

    I am currently running boot camp 3.2 on windows 7 professional. When I attempt to use my display port it does not register in windows 7, however when i switch back to snow leopard it works perfectly fine. What can I do to fix this?

  • With the iPhone coming, what is the best way to get it only 7 months into my contract?

    I don't really want to pay full price, which will probably run about $600.  I was thinking about just adding an extra line, possibly, to my account and paying an extra $50/month, and switching the iPhone to my primary number.  If I do that, maybe I c

  • SKYPE PROFILE DIRECTORY

    Hi everyone,  NEWBIE HERE.  I have just been on skype idly fooling around to familiarise myself with settings and how to use it.   I suddendly get a friends request from lets call her jane doe, being a suspicious person i tell her that my camera need

  • Black feed

    So Photo Booth, ichat and other apps that use the built-in isight cam are giving me a black video feed. I looked at the troubleshooting tips, and the cam is detected. I tried using it on a different account with the same results - a black video feed.

  • GoldenGate for Dev/QA Database Refresh

    Hi, We have 600 GB Production database. We have to daily refresh one schema (600 GB) daily through export / import Data Pump (Oracle 10.2.0.5). Before when the data used to be around 400 - 500 GB, the refresh used to complete within 7 AM the other da