Help with drop create and update table

Sir/Madam,
I have joined 5 tables and selected some columns ,then I need to update some columns in that. After updating I need to create a report with the new column values.
To do this my method is to create temp table with the select statement then update the temp table , use this temp table for the report and then drop the temp table.
Is there anyother way to do this ??
Can I create a cursor and update the cursor column ??
Does dynamic sql always be created as procedure ??

Hi,
you need to understand how eventing works in BSP and MVC architecture. Pls refer to the below link for a basic understanding of how BSP works - View, Controller and Model class concepts.
http://www.sapdev.co.uk/webapps/bsp/washome.htm
For your requirement -
1. you need a view on which you will create a drop down list UI element and a table view element
2. you will need to create a contoller class - this will be used to handle the event that will be triggered   when user selects an entry from drop down list
3. you will need a model class in which you will write the business logic to retrieve employees of selected department.
Pls search this forum or blogs for - data binding with BSPs, Table View. Pls read these concepts and try to develop your requirement. You can come back to this forum if you face any issues during development.
hope this helps.

Similar Messages

  • Need help with saving data and keeping table history for one BP

    Hi all
    I need help with this one ,
    Scenario:
    When adding a new vendor on the system the vendor is suppose to have a tax clearance certificate and it has an expiry date, so after the certificate has expired a new one is submitted by the vendor.
    So i need to know how to have SBO fullfil this requirement ?
    Hope it's clear .
    Thanks
    Bongani

    Hi
    I don't have a problem with the query that I know I've got to write , the problem is saving the tax clearance certificate and along side it , its the expiry date.
    I'm using South African localization.
    Thanks

  • Creating and updating table in JSP Through ADD and SAVE button

    how do I create a table in JSP which has certain number of columns and rows. I have a button called "ADD", which when clicked should add the data I entered. How do I update and save the same?, if there are buttons called "SAVE" and "DELETE".

    Do u want to add it to the database or just in the JSP Cache???
    I think if you want to add to DB, take the subject offline.
    My Mail id is [email protected]

  • Help with Ipod, restoring, and updating Itunes!

    I was trying to buy a game when it told me I had to update my Iphone software to 3.1.2. So I plugged my Ipod in, and tried to update it. It then told me I needed to update Itunes to 9.0.3 before I could update my Ipod. So I started to update Itunes when an error came up.
    So I thought that maybe I didn't really need to update Itunes, so I went into the Itunes store and bought the update for my Ipod. It started to download, and then it froze. My ipod had the screen with the apple on it.
    So I didn't know what to do and I looked at tech support and it said to restart your computer. So I unplugged the Ipod and restarted the computer. When the computer came back on I pugged the ipod back in and the screen said to connect to Itunes.
    So I connected it to Itunes and all my information was gone! It said it detected my Ipod was in recovery mode and to restore the ipod. So I try to restore it and then it says error (1603) and won't let me restore my ipod.
    I tried looking up the error and I couldn't find anything. I have no idea what I did and I'm worried I may have lost everything.
    So now I can't even get my Ipod to turn on and it's my dads and he is not very happy. And I don't think he has backed it up in a while. So help would be VERY APPRECIATED!!!!!!

    hi i have a similar problem as well, my ipod touch showed the connect to itunes icon, i did it and still showed it. i think this is after i tried installing the latest software up date. this is the second ipod this has happened to of mine. i am so frustrated and i would really appriciate help from an apple techicians or anyone else. i saved up a long time for this ipod. pls email [email protected] or txt +254724446340!
    anik

  • Please help with backing up and updating on Lacie external HD

    hello,
    This is my first time to use an external HD. I am mainly using it to back up photos, music, bookmarks, fonts, address book and movies. Once I get everything on the external hd, how does one go about updating periodically? Do I have to manually update every category? There isn't a way that you can tell the computer to update the files is there? I have heard from some people that you can schedule updates. The Lacie website or user guide has no info on updating!
    Sorry to be asking such dumb questions, but I really don't understand how the update process works. Thanks!

    Cathy:
    Nice going. Backing up is the best thing you can do for your data. I suggest that you make a bootable clone of your entire HDD rather than backing up individual files. In that way you will have a current backup, as well as an emergency boot drive and you can boot from the external drive and run diagnosics and repairs on your internal HDD.
    First you need to format your HDD. It it is larger than you internal HDD, I suggest that you partition it so that the first partition is approximately the size of your internal HDD, and the other partition you can use for whatever. Dr. Smoke's FAQ Backup and Recovery has excellent tips on backup. He uses Retrospect, which I have found difficult to use. As suggested by the previous poster, SuperDuper and Carbon Copy Cloner are the cloning utilities of choice. There are differences, but the main difference which impacts you immediately is that to be able to make regular updates of your clone you will need to register SuperDuper ($28), while Carbon Copy Cloner is donation ware.
    Here are step by step directions for formatting and partitioning your extnernal HDD:
    Formatting, Partitioning Erasing an External HDD
    • Connect external HDD to computer
    • Turn on external HDD
    • Start up computer and log in
    • Go to Applications > Utilities > Disk Utility and launch DU.
    • Select your HDD (manufacturer ID) in left side bar.
    • Select Partition tab in main panel.
    • Select number of partitions in pull-down menu above Volume diagram.
    For more partitions than one, after you have selected the number of partitions adjust the size of the partition by selecting the top partition and typing in the size; then move down if more adjustments need to be made.
    (See Dr. Smoke’s FAQ Backup and Recovery for tips on partitioning external HDD)
    • Type in name in Name field (HD Backup, or whatever you want to call it)
    • Select Volume Format as Mac OS Extended (Journaled)
    • Click Partition button at bottom of panel.
    • Select Erase tab
    • Select the sub-volume (indented) under Manufacturer ID
    • Check to be sure your Volume Name and Volume Format are correct.
    • Click Erase button
    • Repeat above procedure to erase each partition
    • Quit Disk Utility.
    Once you have formatted your HDD, now you are ready to clone your internal HDD to it.
    Creating a Clone using Carbon Copy Cloner
    • Connect external HDD to computer
    • Download and launch Carbon Copy Cloner
    • Select a Source. This will normally be the Disk which you want to backup
    • If you wish to backup/clone only your Users Folder or other folder click on the checkbox. If you want to copy the entire HDD, check Macintosh HD.
    • Select a Target. This will normally be your external HDD, (or, if you so decide, you can backup/clone to a Disk Image on the external HDD.)
    • Cloning Options: for the first time you should backup everything. For updating your backup you should select Incremental backup of selected items.
    • If you want your clone to be an exact copy of the original you should check the box to Delete items not on the original.
    • Click Clone
    Clone Old HDD to new HDD using SuperDuper
    • Format external HDD (see directions above)
    • Connect external HDD to computer
    • Download and launch SuperDuper
    • In the Copy field select your internal HDD
    • To is your newly formatted external HDD
    • Using backup all files
    • Click Options button
    • Check Repair Disk Permissions on Source
    • During copy Erase Destination HDD then copy from Source
    • On successful completion Quit SuperDuper
    Please do post back with further questions/comments.
    cornelius

  • Drop, create and insert data into few intermediate tables

    Hi All,
    I need to schedule a process to drop, create and insert data into few intermediate tables on a weekly basis. Here is what i need to do in the stored procedure, which can be scheduled weekly.
    DROP TABLE TABLE_NAME1;
    DROP TABLE TABLE_NAME2;
    DROP TABLE TABLE_NAME3;
    CREATE TABLE TABLE_NAME1
    CREATE TABLE TABLE_NAME2
    CREATE TABLE TABLE_NAME3
    INSERT INTO TABLE_NAME1 SELECT ....;
    INSERT INTO TABLE_NAME2 SELECT ....;
    INSERT INTO TABLE_NAME3 SELECT ....;
    Any suggestions, examples or code on how to accomplish this task would be very helpful. Any question pls let me know.
    Thanks in advance.

    I am using the intermediate tables in an extract process. The idea was that the table would be created prior to calling the extract procedure and once the data written to the intermediate table had been processed the table would be dropped. This would be repeated each time the extract process is run. From a DBA's point or view, would it be better to just leave the table on the database and truncate it after each run or is removing it entirely best?

  • Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Looking to create editable PDF forms with drop downs and text boxes for use on a Mac computer and iPad. Which product do I need to purchase? Do not need anything fancy

    Basically you would need Acrobat. However, it is now also possible to create basic form fields using just the free Reader. In fact, I've been working on a tool that allows you to do it, so if you're interested in it please contact me privately.

  • I have a feeling this has been up here a lot.  I updated ios 6 to my phone with no problems but I also back my phone up.  I decided to help the wife out and update hers and something went wrong data lost.  All contacts, photos, etc without backup, help.

    I have a feeling this has been up here a lot.  I updated ios 6 to my phone (4S) with no problems but I also back my phone up.  I decided to help the wife out and update hers and something went wrong data lost.  All contacts, photos, etc without backup, help.

    if you have no back up in icloud or itunes the best you can do is sync with your computer and get back  what you can from there

  • How to use a single page for create and update mode.

    Hi,
    I need to develop a single page to be used for both create and update modes.
    I am going to use a variable MODE
    and i will set this in the emp summary page.
    Based on the button clicked by the user i have to render the JSF page.
    For tis if the user selects a perticular and cliks on update thn i will pass the empno to the next.
    so there in the next i will appy a ViewCreiteria on my View Obj to fetch only that row so that only that emp will be displayed ion update mode.
    This is working fione for me.
    So now the issue is
    when the user clicks on CreatEmp button.
    i need to enable my VO for insert operations.
    for this i wrote the code like this in the beforePhase event
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding valBinding = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bContext = (BindingContext) valBinding.getValue(ctx);
    DCDataControl dcControl = bContext.findDataControl("DataControl");
    Application app = ctx.getApplication();
    ApplicationModule am = (ApplicationModule) dcControl.getDataProvider();
    System.out.println("After Appmodule initiation");
    // get the VO reference and initiate the query
    System.out.println("Before Page VO initiation");
    PrismDmPageSectionViewImpl vo = (ViewImpl)am.findViewObject("View");
    //ViewRowImpl row = (ViewRowImpl) vo.createRow();
    /* TO CREATE AN EMPTY ROW*/
    Row row=vo.createRow();
    System.out.println("New Row is created");
    //vo.createKey(row);
    vo.insertRow(row);
    vo.setCurrentRow(row);
    By doing this a new empty page is rendered.
    But when i fill up the values and click on ok.. i am getting the error like this..
    JBO-27023: Failed to validate all rows in a transaction.
    JBO-27027: Missing mandatory attributes for a row with key null of type View3
    JBO-27014: Attribute Id in View3 is required
    JBO-27014: Attribute PageeId in View3 is required
    Please point me out where i am missing.
    Thanks

    Hi,
    In my opinion you are over complicating things.
    This is what I do for using the sme page as both create and update without all this code.
    1) Create a browse page containing a an adf table with a select one component bound to your view object.
    2) Create an additional edit page containing only an edit form containing fields of your view object that your users must enter in order to add or edit rows.
    3) Link the pages in the JSF diagram with an "edit" navigation case from browse to edit page and a "return" navigation case from edit to browse (make sure that redirect option is NOT set on both cases)
    4) Remove the submit button from the edit page and add two application module bindings for the commit and rollback operations as command buttons in the form footer facet. Make sure that both buttons has an action of return and that their disabled property is set to false. You will probably change their labels to ok and cancel respectively.
    5) Drop a create action for your view object from the data control palette inside your page as a command button and set the action property to edit also.
    3) Set the action property of the view button to edit
    This should basically work without any code from your part. -- at least it does so for me -- if you like to make it a bit more funcy you may add am action listener inside your buttons and set a requeScope variable for example #{requestScope.editing} to true or false depending on the button clicked. Then add a title to your page with a value like #{requestScope.editing == true ? 'Editing record' : 'Adding a new record'}..
    Hope that helps.
    Thanassis

  • TCA API's to create and update employee vendors

    Hi All,
    We are doing an upgrade from 11.5.9 to R12 and I am looking for the Trading Community Architecture API's to create and update employee vendors for the HR Interface.
    We also need to change to use the Cash Management API's to create and Update Bank Accounts.
    Please help.
    Thanks in advance
    Regards,
    Sonia

    Hi Srini,
    Can you help me with the API's under Financials Receivables suite -> Trading Community in the Intergration Repository responsibilty? I am looking for the API's to create and update employee vendors
    Thanks so much
    --Sonia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Compare table A and table B and update table B ,,,,table B has 300k rows

    Hi,
    I m trying to write a code, I have tables A and table B.
    I need to compare table A and table B , and update table B with one column.
    using joins b/w A&B tables, I selected one record from table A in cursor.
    After Begin I m trying to open cursor and in FOR LOOP
    Im trying to update table B WHERE CURRENT OF Cursor.
    this is erroring out.
    could you let me know on this.
    there is another way like selecting required columns from both table.but i was told to do as above.
    Thanks

    > this is erroring out.
    You haven't posted nearly enough for anyone to help you.  You didn't even tell us what error you are getting.
    So about the only thing we can do is post a generic MERGE statement which you'll have to modify for your use.
    merge into tableB b
    using (select some_key, some_column from tableA where etc.) u
    on (u.some_key = b.some_key)
    when matched then update
    set b.some_column = u.some_column;

  • Problem in creating and updating of  material by the use of bapi and bdc

    Hello All,
    I am using bapi (BAPI_MATERIAL_SAVEDATA ) and than bdc to create and update classification data of material.
    I am facing a problem.
    1) firstly I am creating material by the use of bapi and than after creation i want to update classification data for taht perticular material .
    2) To update classification data i am using bdc . while at the time of updating material through bdc system showing me error that material is currently locked by user (my login name ).
    Please suggest what to do.
    Tkank you
    With Regards
    Shantanu Modi

    When u update/create data it takes sometime to commit. So after using BAPI
    give 10 minutes wait in ur program before updating classification data.
    you can write like
    wait up to 20 seconds.
    and update the classification.

  • Creating and updating cross-references in a book

    Hello everybody,
    I created a book of several files. Now I would like to create and update cross-references from one chapter to another. What do I have to do? (I use Framemaker 8).
    Thank you for your help.
    Bye
    Vreni

    For creating cross-references between chapters, open the chapter documents and insert cross-references as is done for any normal document using menu command "Special->Cross-Reference".
    For updating all cross-references throughout the book, you can use the menu command "Edit->Update Book".
    Regards,
    Tarun Garg
    Adobe Certified Expert, FrameMaker
    http://blogs.adobe.com/techcomm/framemaker/

  • DEBMAS IDOC for CREATE and UPDATE

    How do i use DEBMAS IDOC dynamically for create and update customer information.
    I have a file as source which would have combination of information for new and change customer information. and there is a field in the file with t code xd01(create) and xd02(update).
    Please advise.
    -Vasu

    Hi,
    The field MSGFN is the one which decide the operation.
    Please pass the values accordingly to indicate the Create/Update.
    In inbound IDOC case ,process code will check MSGFN and do the action.
    Regards,
    Akshay.

  • Help with dynamic sql across multiple tables

    I have more than one similar table that stores data from different dynamically generated relations:
    Following are the scripts to create and populate tables
    CREATE TABLE RELATION_1(
        SRC            NUMBER(38, 0)               NOT NULL,
        TRG            NUMBER(38, 0)               NOT NULL,
        VALUE          NUMBER(38, 0)               NOT NULL
    CREATE TABLE RELATION_2(
        SRC            NUMBER(38, 0)               NOT NULL,
        TRG            NUMBER(38, 0)               NOT NULL,
        VALUE          NUMBER(38, 0)               NOT NULL
    CREATE TABLE RELATION_3(
        SRC            NUMBER(38, 0)               NOT NULL,
        TRG            NUMBER(38, 0)               NOT NULL,
        VALUE          NUMBER(38, 0)               NOT NULL
    insert into RELATION_1 values(1, 1, 13);
    insert into RELATION_1 values(1, 2, 4);
    insert into RELATION_1 values(1, 3, 6);
    insert into RELATION_1 values(2, 1, 3);
    insert into RELATION_1 values(2, 3, 7);
    insert into RELATION_1 values(3, 1, 5);
    insert into RELATION_2 values(1, 2, 1);
    insert into RELATION_2 values(4, 1, 1);
    insert into RELATION_2 values(5, 1, 1);
    insert into RELATION_3 values(1, 1, 11);
    insert into RELATION_3 values(2, 1, 4);
    insert into RELATION_3 values(3, 1, 5);
    insert into RELATION_3 values(1, 2, 6);
    insert into RELATION_3 values(2, 2, 3);
    insert into RELATION_3 values(3, 2, 5);
    insert into RELATION_3 values(1, 3, 2);
    insert into RELATION_3 values(2, 3, 3);
    insert into RELATION_3 values(3, 3, 5);Now, I want to write a SQL that for a set of SRCs (lets say for 1,2,3) give me the top n (let's say top 10) TRGs and the SUM of all the VALUE across all the tables except for RELATION_2, i.e. RELATION_1 and RELATION 3, order by this SUM and exclude those TRGs that have entry for SRC-TRG combination in RELATION_2 table.
    Thanks
    Edited by: Vasif Shaikh on Sep 21, 2010 2:34 PM

    I didn't completely understand your requirement, but couldn't you UNION all the tables together? Then you could do your Top-n and sorting etc as if you were working with one table.

Maybe you are looking for

  • How do I place a 2nd iPod on my iTunes account so that....

    ...neither iPod loses its particular apps, games, music, etc when it synchs? Yes, I know this is supposed to be simple, simple, simple. But it wasn't, wasn't, wasn't EVER with the 2nd iPod's predecessor. Brief history: I have an iPod. Yay. All very f

  • Can i change the progress in a game if i have it in another ios device?

    Time ago, i started playing clash of clans in my iphone and the progress was saved. Now i started it from the begining from my ipad but i didn't sincronized it in game center so now that i'm better on the ipad it always askes me if i want to restore

  • Avoid printing child items of Sales BOM in AR Invoice

    Hi All, I have a requirement to edit the print layout of AR Invoice to see only the parent item of the Sales BOM in SAP 2005. In SAP 2007, there is an option to Hide BOM Components in Print Out but how do I avoid printing child items in SAP 2005. Ple

  • Windows ultra vnc connecting to iMac

    I am trying to do remote screen sharing from my Windows XP laptop to my iMac. I have screen sharing set up on my iMac. I try and connect to it with Ultra VNC, it prompts me for the password I set up on my iMac and then for an instant shows up on my s

  • Stored procedure fails when called through jdbc

    Stored procedure returns incorrect results Hi! I am really puzzled about this and would really appreciate some help. We are migrating an servlet/jsp-application from websphere application server 3.5.3 to Oracle Application Server 10g. The backend is