Data Grid in BSP Application

Can somebody direct me with an example of displaying data in the form of a grid, and allowing users to update that grid, then saving those changes in a table?

A great place to start is by looking at the SAP Sample Application SBSPEXT_TABLE. 
The BSP Extension you want is <htmlb:tableView>, probably the most powerful extension elment there is.  You might search on documentation and weblogs that cover the table view as well as Table View Iterators.  Here are couple of Weblogs that I found right off the bat.
/people/brian.mckellar/blog/2003/10/30/bsp-programming-bsp-element-expressions-bees
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
/people/ulli.hoffmann2/blog/2004/10/28/personalize-my-bsp-tableview

Similar Messages

  • Passing data from one bsp application to another

    Hi,
    I have few queries that most of you would have done in ur projects:
    1. I want to pass data from one bsp application to another:
    eg based upon selected row of table view which populates material no and descriprion to another application which open the entire material master data.
    Now, i have both the pages in diff bsp applications in place but unable to pass the selected material code to the second bsp application.
    Had it been two different pages of same application I was able to achieve it with set parameter()
    2. To stop the application from reprcessing the data:
    eg: Suppose I have a bsp page where user fill details of a customer and on submitinng the details a customer is created in background and the entire page is disabled by my code. Even now if the user press refresh (F5) button then another customer gets created in the background. So basically i want to avoid the reprocess of the onSubmit event
    Few lines of sample code would be very helpful.
    Best Regards,
    Saurabh Tripathi

    Hi,
    When I am writing the following code in appl1/page1:
            export abc from transactionID
            to data buffer lv_page_data.
            CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>SET_SERVER_COOKIE
              EXPORTING
                NAME                  = 'TRANSACTIONID'
                APPLICATION_NAME      = RUNTIME->application_name
                APPLICATION_NAMESPACE = RUNTIME->application_namespace
                USERNAME              = ls_name
                SESSION_ID            = runtime->session_id
                DATA_VALUE            = lv_page_data
                DATA_NAME             = 'lv_page_data'
    and following code in appl2/page2:
      CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>GET_SERVER_COOKIE
        EXPORTING
          NAME                  = 'TRANSACTIONID'
          APPLICATION_NAME      = RUNTIME->application_name
          APPLICATION_NAMESPACE = RUNTIME->application_namespace
          USERNAME              = ls_name
          SESSION_ID            = runtime->session_id
          DATA_NAME             = 'lv_page_data'
        CHANGING
          DATA_VALUE            = lv_page_data
       IF lv_page_data IS NOT INITIAL.
         IMPORT abc to transactionid
           FROM data buffer lv_page_data.
       ENDIF.
    still the code doesn't work. Please explain and guide
    Best Regards,
    Saurabh Tripathi

  • Data Grid in Web Application

    Is there Any possiability of implementing Data Grid in Web Application .
    Can Any One Give Some information on this.

    yes there is, almost anything is possible in a web application so probably a data grid too.
    Might be nice idea to first give information about what you udnerstand under a datagrid before asking information on it.

  • Data grid for jsp applications

    Someone knows where i can get a good data grid (free or cost ) for JSP applications

    I just stumbled across this thread as we are developing a stateless BSP application and plan to use model binding in it.
    For our application the part of the models state that changes is displayed in the view in form fields, so our idea is to reload the model from the db in the doInitattributes-Method and let the model binding do the rest of the work filling in the values that changed in the view. It seems to work so far - so i guess persisting the state of the object to the db is only necessary when something changed that is not part of the view, right?
    My second question is on Brians recommendation to use MVC only at exactly one level. Is using Sub-Controllers a problem when they have got their own model? I guess the extra work Brian mentions is all about telling the subcontrollers which model to load, right?
    It would be good to know if there are any serious pitfalls when using a hierarchy of controllers instead of a controller with a collection of views.
    Martin

  • How to handle data between 2 bsp applications

    Hello Experts,
    i´ve got 2 BSP applications, users enter in application 1, do serveral actions there, and then jump into application no 2.
    But, they need some data from application one for getting startet in application 2.
    Whats the best bay to pass the data?
    I don´t want to write them into a db table, also i don´t want to pass it via url (?field1=value).
    Are there other possibilities?

    Please search this forum, you will find many threads on the same...
    Raja

  • Data Grid on JSP Application...

    Someone knows where i can get a good data grid (free) for JSP applications.
    tanks
    Daniel S.

    yes there is, almost anything is possible in a web application so probably a data grid too.
    Might be nice idea to first give information about what you udnerstand under a datagrid before asking information on it.

  • Download internal table from BSP application to C:\ drive of the user

    Hi,
    How do we download a internal table data from a BSP application to the C:\ drive of the user. Have tried GUI Download, but it doesn't work. Also don't want a pop up to appear while this is happening. The code has to there in 'OnInputProcessing' event.
    Regards,
    Jaison

    Hi Raja,
    I went through few of the blogs and wrote the below code for downloading data. My requirement is that in the InputProcessing event i need to write a subset of data to the users C:\ drive. But even after doing the below change i'm unable to get the requirement done. Can you please tell me as to what i'm missing. I'm new to BSP development and help would be highly appreciated.
    if not it_messages1[] is initial.
      clear wa_messages1.
      loop at it_messages1 into wa_messages1.
       clear temp_string.
       concatenate wa_messages1-PROJECT wa_messages1-FILENAME.......
       into temp_string separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
       concatenate main_string temp_string into main_string separated by
       CL_ABAP_CHAR_UTILITIES=>CR_LF.
      endloop.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
      EXPORTING
        TEXT                 = main_string
        MIMETYPE        = 'APPLICATION/MSEXCEL;charset=utf-16le'
      ENCODING       =
    IMPORTING
       BUFFER         =  xmain_string.
    EXCEPTIONS
      FAILED         = 1
      OTHERS         = 2
    CALL METHOD cl_bsp_utility=>download
    EXPORTING
        object_s = xmain_string
        content_type = 'APPLICATION/MSEXCEL;charset=utf-16le'
        content_disposition = 'attachment;filename=test.xls'
        response = mresponse
        navigation = navigation.
    Edited by: Jaison Yohannan on Jun 3, 2009 2:16 PM

  • How to click on linkbuttons in the rows of a data grid

    I'm trying to write automation test cases for a flex application using Flex Selenium.
    The flex selenium API provides only 2 click events: click(String objectId) and click(String objectId, String optionalButtonLabel)
    There are no click events for rows or columns for a data grid.
    The application has a  DataGrid with 2 linkbuttons in a column for each row (besides other columns).
    The linkbuttons have an id. But clicking it only clicks the one in the first row.
    Now, I have to perform these tasks:
    - Click on the link buttons in any row
    -  Click on any row
    -  Click on column  header to sort
    How can I accomplish these?

    Hi Suman,
    thanks for your prompt reply.
    I am trying it but it doesn't work. I started to run the query for a while but it is still running and there is no result for it. I still see the variable popup I filled after the first running of the query.
    Any other idea?
    Kind regards,
    Ali

  • How to create BSP application

    I have created abap report. I want to convert it to BSP application. Could you please provide some guidelines or sample sites to create BSP or to convert abap report to BSP applicaton
    thanks

    To start with check this:
    http://help.sap.com/saphelp_nw04/helpdata/en/7a/b86041397211d5992200508b6b8b11/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/16/ac1e3a0088e042e10000000a11402f/frameset.htm
    And here the complete section:
    http://help.sap.com/saphelp_nw70/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
    Also refer to these threads :
    Creating (view, add, delete, modify) bsp application
    How to disable column in tableview
    after creating your BSP application into SE80 transaction you can refer to this useful thread:
    Re: How to update the tableview
    Here is showing how to read data in a BSP application from a DB table and how to updating lines from BSP application
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fbe7b8e-0a01-0010-b69b-b7e717378f22
    Full Demos:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d46b9b90-0201-0010-ef92-9964c1bc98e1
    IC Web client
    Reward Points..

  • User switch scenario involving BSP application

    Hi
       I am new to BSP application design. We have requirement from a BSP  application wherein different sales force personnel need to see different segments of same data on the BSP application - owing to security requirements. We are thinking of using a default user and then user switch to specific  SAP reference user ( based on maybe their windows logon credentials within the BSP application - each reference will have a security that has authorization to see a particular segment of data for a group of sales force people.
    Is this approach ok ( of switching user from default to specific reference user and having a reference user as the representative user for each sales force group ) ?  Any thoughts/suggestions on experiences that can be shared here to architect this scenario would be highly appreciated.

    Hi,
    you can do this. Therefore you have to setup an use the nodes via sicf. User switch involves also
    a new registration with authorization. You can lok at bsp application SYSTEM for that.
    On the otherhand: build role via Profile generator: TXN PFCG and do authorization checks as you do
    it in SAPGui Dynpro Programmining. Why not. We have build big applications with many user roles
    using this approach.
    The first ones makes only sense, when you have a public area using a public user. Therefore you enter the public account in thze right sicf nodes.
    Best regards,
    Stefan

  • How to pass date parameter from one page to other in BSP application

    Hello gurus,
    In my BSP application i have taken an input field and made its type "date" and its value also of type date and have set showhelp .
    Now once a particular date is given as an input i want to pass its value to next page. And in next page i have to fire a query based on the date entered in previous page...
    Now my prb is that my date value is not getting passed to the next page.
    I have used
    navigation->set_parameter( name = 'BEGDA' value = BEGDA ).
    to pass date parameter.....still parameter is not getting passed.
    plz help me with this.....
    thankx.....

    Hi Eddy,
    By truncation i mean the entire date becomes 10 char including the ' . ' eg(06.12.2006).
    so with begda being 8chars it takes my date as 06.12.200
    as a result my query is not getting executed.
    now i have tried to use a FM  'CONVERT_DATE_TO_INTERN_FORMAT'.
    in my 1st page but still in 2nd page its giving me following error.
    <b>The data that was read could not be written to the specified target field during a SELECT access. Either the conversion is not supported for the type of the target field, or the target field is too short to accept the value, or the data is not in the appropriateformat for the target field.
    </b>
    Regards
    Swati

  • Data entered by ITS application partly not available at BSP application

    Environment:
    We have an old ITS application to enter absences and presences to SAP HR.
    And we have a new BSP application to delete absences and presences.
    Both applications are available for the employee in an employee self service, that has an navigation developed with BSP.
    Problem:
    All data entered with the ITS application, could not be deleted in the BSP application, if the user does not log off. Or until he deletes one dataset, that he did not entered after the current login. If he deleted one old dataset, all new datasets can also be deleted.
    The ITS application stores the data with the function HR_MAINTAIN_MASTERDATA.
    The BSP application deletes the data also with the HR_MAINTAIN_MASTERDATA function.
    But its strange, that I can read the newly entered data with select from the Database or the function HR_READ_INFOTYPE. But when the users selects this dataset, the BSP class currently read, the HR_MAINTAIN_MASTERDATA cant delete, because of the message "no data in timeperiod". Even the function 'BAPI_ABSENCE_GETDETAIL' reads the data.
    Seems to be some kind of buffer problem. Reading the data is possible, but trying to modify/delete does not work.
    Also this did not help:
    *using more commit works.
    *Try to initialize buffers with the functions "HR_INITIALIZE_BUFFER", 'HR_PSBUFFER_INITIALIZE', "HRPAD00_FREE_PLOG_TAB" or "HR_PSA_CLEAR_BUFFER"
    Trying to delete the absences with the function 'BAPI_ABSENCE_DELETE' instead of the HR_MAINTAIN_MASTERDATA function (without DESTINATION and with DESTINATION 'NONE').
    Does anybody has an idea, why my BSP application works fine with all datasets, entered before the current login, but can not delete datasets I newly entered (but I can read them, I only cant delete them!). And what is more strange: after I delete on old dataset, then I can delete also the new datasets!

    Is your provisioning profile for Development or Ad-Hoc distribution?
    Also, it would help if you posted a screenshot of you target settings as well as your Info.plist file.

  • Date Range valid check on BSP Application

    Hallo,
    i want to  display brochures with its validity date in BSP application.Can anybody help me. i was rejected because i posted my code here ,i cant post it again.
    regards

    hi,
    In which block  you want to keep the validation . In Layout of in Onevent processing block. ??
    <script for="sd" event=onchange type="text/javascript">
    var data = this.value;
    var date = data.split(".");
    if (data != ' ')
    var day = date[0];
    var month = date[1];
    var year = date[2];
    if ((day<1 || day >31) || (month<1 || month>12) ||(year.length != 4))
    alert("Please enter a valid  Date ( mm.dd.yyyy )");
    endif.
    hw come ur post  got reject ?
    Please specify whr u want to embed validation .

  • How to add data to custom dropdown in E-REC BSP Application:HRRCF_REQ_MNT

    We have added a custom dropdown field in E-recruitment. The BSP application is: HRRCF_REQ_MNT. Now i need to assign values to that dropdown through HRRCF_REQ_MNT. Any suggestion where that dropdown will be defined because i dont see it in the layout for that particular bsp page. I only see the standard dropdown fields.
    Any suggestion will be appreciated.
    Thanks

    Hello,
    you can do it much easier than modifiing.
    You can add a dropdown by customer include into the e-recruiting infotypes.
    If you want to have the dropdown in the basic data, create a customer include in infotype hrp5125.
    If you want it below job data then create it in infotype hrp5126.
    If you assign values to the domain of your customer field or add a searchhelp into the customer include structure, the drop down will be automatically be filled.

  • Transport data from Javascript file to BSP application

    Hi,
            How can we transport data from Javascript file that is stored in MIME repository to the BSP application that uses this Javascript?
    To elaborate :
    I  have a  BSP application which calls few functions from a Javascript file that is stored in the MIME repository. Now, i need to pass one of the values that is obtained dynamically in the Javascript function to the BSP application inorder to store it in DB.. How can I do this?
    Thanks,
    Vasuki

    Hi,
    you must only identify in which variable the javascript function stores the values. So you can enrich
    your bsp application with such a function. Then you must transfer the value to a hidden input field.
    This field content can be requested via  request->get_form_field( 'name_of_the_field' ).
    On the other side, check out, if ther is a getter function in this library.
    Use firwefox with firbug plugin an set breakpoint in the javascript function to get an overview about the dom modcel.
    Best regards, Stefan

Maybe you are looking for

  • S.M.A.R.T. Status - Failing

    Hello, I recently found that my iSight camera wasn't being detected. In the System Profiler, it's identified as a Vendor-Specific Device. After some digging on the web, I found a suggestion to repair my disc permissions. I went to Disk Utility to go

  • How to correct the birth date in Apple account? How to change the numerals to English for UAE location?

    I purchased iPhone 5S and opened new Apple account with preffered language English and location UAE. I was directed to enter my birth date with only Arabic language option. There was no way to change the language or skip the step. I had to enter an a

  • Deleting my current account

    Hi, I would like to know how do you delete your current skype account? As in totally out of sight. I have try out the following FAQ list that taught how to delete the account. As I went through the process of editing and changing the details.  I came

  • PS CS4 64 causes BSOD on Win7 64

    I am having a problem with 64 bit CS4 on Windows 7 Home Premium 64 bit - when I open a bunch of RAW files in ACR from Bridge (but ACR opens in PS not Bridge), at the time after doing all the adjustments I hit Open to move from ACR to PS, whole comput

  • Problem to connect database from Developer 6i

    I have downloaded Developer 6i from oracle.com before that, I have already downloaded 9i database default_home directory is c:\orant. while i was installing develper 6i it was installed with forms_home, c:\orant\forms. I was using the forms builder t