I want a user to only be able to update/delete the rows they inserted

hi guys,
I have a table 2 users are inserting into. They can also update/delete the rows in the table. However, I do not want them to be able to update/delete the others users row. I only want them to have update/delete at the row level.
how can this be achieved?
thanks

Another idea if you really have just two (or a fixed set of N) users.
Does your table have a generic primary key (PK)?
You could use two (N) sequences having two (N) distinct sets of numbers as e.g user a is using sequences less than 1000000000, the other one values larger or equal to 1000000000.
create sequence <user_a>.pk_seq start with 0;
create sequence <user_b>.pk_seq start with 1000000000;An insert trigger uses <user_a>.pk_seq or <user_b>.pk_seq for generating the PK depending upon the current user for new records.
An update trigger allows updates only, if the PK of the record to be updated is in the range of sequences belonging to the current user.

Similar Messages

  • I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this?

    I created a form with Single Choice fields, 4 days with times listed. But, I want the user to only be able to choose one time, and the time chosen to be unavailable for other users. How do I do this? I have 4 blocks of Single Choice fields in order for the summary page to give me each day in the final report. But, I need the user to be able to make a selection of any day and time and that apointment to no longer be available to future users when they log in. Plus, when the user clicks on the time, they are unable to change their mind and choose another time. Here's the link if you want to see what I'm talking about: 2015-2016 Workload Apportionment Review

    I'm afraid not.    It's not rocket science but you need to do some coding. 
    You'll need to find a script (php) and save it to your local site folder.  Then reference the script in your form's action attribute like so.
         <form action="path/form-to-email-script.php" >
    The input fields in your HTML form need to exactly match the script variables. 
    I'm  assuming you're hosted on a Linux server which uses PHP code.  Linux servers are also case sensitive, so upper case names are not the same as lower case names.  It's usually best to use all lower case names in your form and script to avoid confusion.
    Related Links:
    Formm@ailer PHP from DB Masters
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    If this is all a bit beyond your skill set, look at:
    Wufoo.com (on-line form service)
    http://wufoo.com/
    Nancy O.

  • Well im not able to updated all the events I had in the imovie, HELP

    Well im not able to updated all the events I had in the imovie, HELP

    I have started preparing a small Database application
    using JDBC with Swing.
    I want to dispaly all the Table names which are
    present in the Access Data Source. When i used the
    Standard query for this "Select * from Tab" as in
    SQL, an eror saying that "not able to resolve symbol
    'Tab' ".
    Can anybody please help me out to display the table
    names?That query
    Select * from tabwould work only for Oracle, as far as I know. There is no system table called Tab in Access.
    ***Annie***

  • I backed up minecraft and I want to sing out of iCloud and if I delete the iCloud account will it delete what I backed up

    I backed up minecraft and I want to sing out of iCloud and if I delete the iCloud Will it delete what I backed up

    Sadly, it deleted my whole calendar, even tho I only used it on the laptop.  I am sure I will be missing documents, music, etc.   I have been using Macs since 1991 and this incident just *****!  I avoided this because I thought this would happen.  I hate to update for this same reason.

  • Not able to download all the rows to excel sheet from alv grid display

    Hi experts,
    I am not able to download all the rows which are displayed in alv grid display for some material numbers.
    for some materials i am able to download, i used two ways to download 1) from icon(local file) on grid 2) menu list->export.
    i checked in debugging till selecting the spread sheet pop up window, i am able to see all the data in internal table.
    Can you suggest me what will be the problem....
    thanks in advance,

    hi sandeep,
    sorry for didnt specify clearly.
    note: EX: "asaasdada  in this sentence i said  " this symbol is special character not the text.
    building final internal table code
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          capid                 = p_capid
          datuv                 = sy-datum
          ehndl                 = '1'
          mktls                 = 'X'
          mehrs                 = 'X'
          mmory                 = '1'
          mtnrv                 = p_matnr
          stlal                 = '1'
          stpst                 = 0
          svwvo                 = 'X'
          werks                 = p_werks
          vrsvo                 = 'X'
        TABLES
          stb                   = i_stb
        EXCEPTIONS
          alt_not_found         = 1
          call_invalid          = 2
          material_not_found    = 3
          missing_authorization = 4
          no_bom_found          = 5
          no_plant_data         = 6
          no_suitable_bom_found = 7
          conversion_error      = 8
          OTHERS                = 9.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      i_stb1[] = i_stb[].
      IF NOT i_stb1[] IS INITIAL.
        SORT i_stb1 BY idnrk.
        DELETE ADJACENT DUPLICATES FROM i_stb1 COMPARING idnrk.
        SELECT bmatn ematn FROM ampl INTO TABLE i_ampl
          FOR ALL ENTRIES IN i_stb1
          WHERE bmatn = i_stb1-idnrk AND
                datuv LE sy-datum AND                          
                datub GE sy-datum.                              
        SELECT
        matnr
        bwkey
        verpr
        stprs
        bwprh
        FROM mbew
        INTO TABLE i_mbew
        FOR ALL ENTRIES IN i_stb1
        WHERE
            matnr EQ i_stb1-idnrk AND
            bwkey EQ i_stb1-werks.
        IF NOT i_stb1[] IS INITIAL.
          SELECT matnr werks beskz
                 dzeit webaz plifz                              
                 ekgrp                                         
          INTO TABLE i_marc
          FROM marc
          FOR ALL ENTRIES IN i_stb1
          WHERE matnr = i_stb1-idnrk
          AND werks = i_stb1-werks.
          SORT i_marc BY matnr werks.
        ENDIF.
        CLEAR i_ekpo.
        CLEAR i_vend.
        IF NOT i_stb1[] IS INITIAL.
          SELECT ebeln ebelp matnr werks loekz aedat
                 netpr peinh                                   
          INTO TABLE i_ekpo
          FROM ekpo
                FOR ALL ENTRIES IN i_stb1
                WHERE matnr = i_stb1-idnrk
                AND werks = i_stb1-werks.
          SORT i_ekpo BY matnr ASCENDING
                         aedat DESCENDING
                         ebeln DESCENDING
                         ebelp DESCENDING.
          IF NOT i_ekpo IS INITIAL.
            SELECT k~ebeln k~lifnr l~name1
            INTO TABLE i_vend
            FROM ekko AS k INNER JOIN lfa1 AS l
            ON k~lifnr EQ l~lifnr
            FOR ALL ENTRIES IN i_ekpo
            WHERE ebeln = i_ekpo-ebeln.
            SORT i_vend BY ebeln.
          ENDIF.
        ENDIF.
      ENDIF.
      i_ampl1[] = i_ampl[].
      IF NOT i_ampl1[] IS INITIAL.
        SORT i_ampl1 BY ematn.
        DELETE ADJACENT DUPLICATES FROM i_ampl1 COMPARING ematn.
        SELECT matnr mfrpn mfrnr FROM mara INTO TABLE i_mara
          FOR ALL ENTRIES IN i_ampl1
           WHERE matnr = i_ampl1-ematn.
      ENDIF.
      SORT i_ampl BY bmatn.
      IF NOT i_stb[] IS INITIAL.
        SELECT stlty stlnr stlkn stpoz idnrk potx1 potx2
        INTO TABLE i_stpo
        FROM stpo
        FOR ALL ENTRIES IN i_stb
        WHERE stlty = i_stb-stlty
          AND stlnr = i_stb-stlnr
          AND stlkn = i_stb-stlkn
          AND stpoz = i_stb-stpoz
          AND idnrk = i_stb-idnrk.
        SORT i_stpo BY stlty stlnr stlkn stpoz idnrk.
      ENDIF.
      LOOP AT i_stb INTO wa_stb.
        READ TABLE i_marc INTO wa_marc
        WITH KEY     matnr = wa_stb-idnrk
                     werks = wa_stb-werks
                     BINARY SEARCH.
        IF sy-subrc = 0.
          wa_outtab-beskz = wa_marc-beskz.
          wa_outtab-dzeit = wa_marc-dzeit.                      
          wa_outtab-webaz = wa_marc-webaz.                     
          wa_outtab-plifz = wa_marc-plifz.                     
          wa_outtab-ekgrp = wa_marc-ekgrp.                     
        ENDIF.
        READ TABLE i_ekpo INTO wa_ekpo
            WITH KEY matnr = wa_stb-idnrk.
        IF sy-subrc = 0.
          wa_outtab-netpr = wa_ekpo-netpr.                     
          wa_outtab-peinh = wa_ekpo-peinh.                     
          READ TABLE i_vend INTO wa_vend
          WITH KEY ebeln = wa_ekpo-ebeln
                   BINARY SEARCH.
          IF sy-subrc = 0.
            wa_outtab-lifnr = wa_vend-lifnr.
            wa_outtab-name_sup = wa_vend-name1.
          ENDIF.
        ENDIF.
        READ TABLE i_stpo INTO wa_stpo
        WITH KEY stlty = wa_stb-stlty
                 stlnr = wa_stb-stlnr
                 stlkn = wa_stb-stlkn
                 stpoz = wa_stb-stpoz
                 idnrk = wa_stb-idnrk
                 BINARY SEARCH.
        IF sy-subrc = 0.
          wa_outtab-potx1 = wa_stpo-potx1.
          wa_outtab-potx2 = wa_stpo-potx2.
        ENDIF.
        READ TABLE i_mbew INTO wa_mbew
        WITH KEY
        matnr = wa_stb-idnrk
        bwkey = wa_stb-werks.
        IF sy-subrc IS INITIAL.
          MOVE:
          wa_mbew-verpr TO wa_outtab-verpr,
          wa_mbew-stprs TO wa_outtab-stprs,
          wa_mbew-bwprh TO wa_outtab-bwprh.
        ENDIF.
        wa_outtab-matnr = p_matnr.
        wa_outtab-posnr = wa_stb-posnr.
        wa_outtab-stufe = wa_stb-stufe.
        wa_outtab-idnrk = wa_stb-idnrk.
        wa_outtab-ojtxb = wa_stb-ojtxp.
        wa_outtab-menge = wa_stb-menge.
        wa_outtab-meins = wa_stb-meins.
        MOVE: wa_stb-zzitem_draw_no TO wa_outtab-zzitem_draw_no.
        IF wa_stb-upskz = 'X'.
          SELECT * FROM stpu INTO TABLE i_stpu
                   WHERE  stlty = wa_stb-stlty AND
                          stlnr = wa_stb-stlnr AND
                          stlkn = wa_stb-stlkn AND
                          stpoz = wa_stb-stpoz.
        ENDIF.
        LOOP AT i_stpu INTO wa_stpu.
          wa_outtab-upmng = wa_stpu-upmng.
          wa_outtab-ebort = wa_stpu-ebort.
          wa_outtab-uposz = wa_stpu-uposz.
          CONCATENATE v_ebort wa_stpu-ebort      INTO v_ebort
          SEPARATED BY space.
        ENDLOOP.
        MOVE strlen( v_ebort ) TO v_len.
        MOVE: 0 TO x,
          128 TO y.
        DATA : lt_tab TYPE TABLE OF swastrtab.
        DATA : ls_tab LIKE LINE OF lt_tab.
        DATA : lv_ebort TYPE string.
        CLEAR lv_ebort. CLEAR lt_tab.
        MOVE v_ebort TO lv_ebort.
        CALL FUNCTION 'SWA_STRING_SPLIT'
          EXPORTING
            input_string                 = lv_ebort
            max_component_length         = 128
          TABLES
            string_components            = lt_tab
          EXCEPTIONS
            max_component_length_invalid = 1
            OTHERS                       = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        IF lt_tab[] IS NOT INITIAL.
          LOOP AT lt_tab INTO ls_tab.
            CLEAR lv_ebort.
            MOVE: ls_tab-str TO lv_ebort.
            CONDENSE lv_ebort.
            MOVE lv_ebort TO wa_outtab-ebort.
            APPEND wa_outtab TO i_outtab.
            CLEAR:
            wa_outtab-matnr,
            wa_outtab-posnr,
            wa_outtab-zzitem_draw_no,
            wa_outtab-ojtxb,
            wa_outtab-menge,
            wa_outtab-meins,
            wa_outtab-uposz,
            wa_outtab-upmng,
            wa_outtab-verpr,
            wa_outtab-stprs,
            wa_outtab-bwprh,
            wa_outtab-lifnr,
            wa_outtab-name_sup,
            wa_outtab-potx1,
            wa_outtab-potx2,
            wa_outtab-netpr,
            wa_outtab-peinh.
    *        wa_outtab-idnrk.
          ENDLOOP.
        ELSE.
          APPEND wa_outtab TO i_outtab.
        ENDIF.
        CLEAR v_ebort.
        CLEAR: wa_stpu.
        REFRESH: i_stpu.
        LOOP AT i_ampl INTO wa_ampl WHERE bmatn = wa_stb-idnrk.
        READ TABLE i_mara INTO wa_mara WITH TABLE KEY matnr = wa_ampl-ematn.
          IF sy-subrc = 0.
            LOOP AT i_outtab INTO wa_outtab
            WHERE
            idnrk = wa_stb-idnrk AND
            flag NE 'X'.
              wa_outtab-mfrpn = wa_mara-mfrpn.
              wa_outtab-mfrnr = wa_mara-mfrnr.
              SELECT SINGLE name1 FROM lfa1 INTO wa_outtab-name1 WHERE lifnr = wa_mara-mfrnr.
              MOVE 'X' TO wa_outtab-flag.
              MODIFY i_outtab FROM wa_outtab
              TRANSPORTING mfrpn mfrnr name1 flag.
              EXIT.
            ENDLOOP.
            IF sy-subrc <> 0.
              CLEAR:
              wa_outtab-matnr,
              wa_outtab-posnr,
              wa_outtab-zzitem_draw_no,
              wa_outtab-ojtxb,
              wa_outtab-ebort,
    *          wa_outtab-idnrk,
              wa_outtab-menge,
              wa_outtab-meins,
              wa_outtab-uposz,
              wa_outtab-upmng,
              wa_outtab-verpr,
              wa_outtab-stprs,
              wa_outtab-bwprh,
              wa_outtab-lifnr,                                 
              wa_outtab-name_sup,                              
              wa_outtab-potx1,                                 
              wa_outtab-potx2,                                 
              wa_outtab-netpr,                                 
              wa_outtab-peinh.                                 
              wa_outtab-mfrpn = wa_mara-mfrpn.
              wa_outtab-mfrnr = wa_mara-mfrnr.
              SELECT SINGLE name1 FROM lfa1 INTO wa_outtab-name1 WHERE lifnr = wa_mara-mfrnr.
              APPEND wa_outtab TO i_outtab.
            ENDIF.
          ENDIF.
          REFRESH i_stpu.
          CLEAR i_stpu.
        ENDLOOP.    CLEAR: wa_matnr1, wa_mfrnr, wa_outtab.
      ENDLOOP.
    Edited by: srinivasareddy j on Mar 9, 2011 7:16 AM
    Edited by: srinivasareddy j on Mar 9, 2011 7:20 AM

  • I have three Imacs running Final Cut X but only able to update to 10.0.7 on one of them. Everytime I try to update it ask for my apple ID which I submit...then get the same replay to enter my Apple Id have only been able to update one of them to latest

    I have three Imacs running Final Cut X but only able to update to 10.0.7 on one of them. Everytime I try to update it ask for my apple ID which I submit...then I get the same message to enter my Apple ID...Any suggestions?

    Easiest thing to do is put the app on the non updated computers in the trash and then copy the new app on to a flash drive and copy into the app folders on the other two computters.

  • HT201077 I added 500 photos to my photostream and shared them with another user. However, as soon as the other user accepted, the photos in my stream starting removing themselves until I only had 150 left, this is the number they received. Why did this ha

    .

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • Not able to export all the rows into excel

    Hi All,
    I'm not able to export all the records in discoverer report to excel sheet.
    There are actually 27000 records in discoverer report, when i export them to excel sheet i can see only 16000 records.
    I'm using discoverer plus.
    Any suggestions...please share with me.
    Thanks in advance,

    Hi,
    Do you have parameters on the worksheet? if so then are you selecting same as when you ran it?
    What version are you using ? Plus? Viewer? Desktop?
    You can export the worksheet into CSV instead of XLS and see what you get.
    Also check other formats to see if this missing lines happen in all export methods or just the XLS.

  • 3 ipods and every song wants  to go to one ipod and i wanna delete em because they go to the other 2 ipods

    2 children with an ipod each and one for mom. the problem is when mom hooks hers up to sync, she gets all the kids songs that she don't want on her ipod, have set up to do manual sync and tried to set up all of us our own user accounts on the computer and our own emails in itunes. have no luck with itunes support, everything they say to try does not work. i have tried to delete files but they still on my ipod, please help, p.s i don't wanna get rid of the songs on their ipod though.

    - If you go to Settingds>Store is automatic downloads turned on?  If it is on then turn it off.
    - Also in the Music pane for the iPod in iTunes you need check the box that saysSelected playlists, artists, albums and genres

  • Has there been any word on being able to update to the new drivers yet? gtx 980

    Wouldn't mind being able to keep up to date on my gpu drivers but I have that fan issue on anything but .16. Has MSI made any statement or are they just going to ignore it?

    Quote from: Nichrome on 02-November-14, 02:18:54
    Problem is that their samples of GPUs are most likely from different batch and in fact hell knows what is the actual problem.
    If you have an issue with that, please contact MSI:
    >>How to contact MSI.<<
    I already contacted MSI they wrote me off and gave me a bullshit copy paste answer that had nothing to do with my question. Also this is almost certainly a software issue, and any half decent company would have test units from previous batches especially when the device is only a few months old.

  • Does anyone know how to recover deleted contacts?  For some reason contacts with only phone numbers have been deleted the rest of my contacts are there.  It appears that I only have the contacts on my phone that i have on my laptop.

    Does anyone know how to recover contacts that have been gone missing or have been deleted somehow.  The contacts that are missing are the ones where I only had phone numbers (no email address).  The ones where I have both phone numbers and email addresses are ok. They are the same ones I have on my laptop.  I dont know what I did to cause the ones with phone number only to disappear.

    Good Afternoon irish357,
    I know the importance of saving and updating your contacts. What type of phone do you have? If you are using Backup Assistant, you have the ability to sync the contacts between your laptop and phone. You will also be able to see if all your contacts are stored on the online portion of the application versus the phone itself. The contacts should be the same for both online and the phone.
    I have attached a link below for your reference.
    http://bit.ly/rKiyOf
    I hope this information is helpful in resolving your concerns.
    Sincerely,
      JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • My itunes account isn't able to update to the latest version

    what do i do? it says a required program isn't able to run so i cant update it

    it says a required program isn't able to run
    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • I registered the wrong information for my iCloud account--I misspelled and now want to change it.  Help is needed to delete the account and start anew.

    I registered the the wrong information for my iCloud account--I misspelled the account name.  I accidentally spelled blackberry instead of blackbird.  How can I change this?

    If you don't want to use an alias you'll have to create a new account as you cannot change the @icloud.com address once created.  You'll have to create a new ID, verify the ID, then use the ID to create the new account, and migrate your iCloud data to the new account.
    If you are currently syncing data with iCloud, begin by saving any photo stream photos to your camera roll as mentioned above.  If you are syncing Notes with iCloud, you'll also need to open each of them and email them to yourself so they can be recreated in the new account.  Finally, if you are syncing any iWork documents with iCloud, turn off iCloud syncing in your iWork app settings.
    Then go to Settings>iCloud, tap Delete Account, and choose Keep on My iPhone when prompted.  Then in Settings>iCloud tap Get a Free Apple ID at the bottom, set up your new ID, verify the email address you use to create it by responding to Apple's verification email, then sign in with the new ID to create your new account.  Turn on your iCloud sync settings and choose Merge when prompted to upload your data to the new account.  When you turn Mail to On you will be prompted to create your new @icloud.com email address.  Be carefull to type it correctly as it cannot later be changed.

  • I recently upgraded Itunes and now my library has the music from all computers on my account  if I delete the songs they are gone   I just want to hear songs from my library not my kids music

    I recently upgraded itunes.  Now when listening to my library there is music from all authorized computers in my house.  if I try to delete a song it is gone from everyones library in the house.  I just want to listen to my music not my kids stuff.  How do I get back to MY library  Please help.

    have you tried working through the suggestions from the following document?
    iTunes and QuickTime for Windows: Songs and other audio don't play correctly

  • I have an iPhone 4S. It is showing one Apple I.D. when I want to update my apps, and another (the one I want to keep) everywhere else. How can I delete the unwanted one?

    I have an iPhone 4S. When I want to update an app, it asks me for a password for an Apple I.D. I no longer use, because I don't know the password for it. The rest of the places where my I.D. Is listed, like in iTunes, has the password I want to use. How can I get the phone to disable the unusable I.D. and substitute the one I have the password for?

    beairson wrote:
    I have an iPhone 4S. When I want to update an app, it asks me for a password for an Apple I.D. I no longer use, ...
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.

Maybe you are looking for

  • Voice over on iphone 3GS

    How do I turn "voice over" OFF on my iphone 3GS?

  • How to get notified when ever I select any frame (any page item) ?

    I have added a observer class in my plugin which derives from ActiveSelectionObserver. But my observer constructor is not getting called when i select a page item. (In short, I am not getting notified about the selection) below is my code: class CSDT

  • Best Testing tool to test the flex application?

    Hi                     What is the best tool to test the flex application ... and why? any ideas.... We are using flex unittest runner... better than this any thing other tools available.... Thanks Ram

  • GUI_UPLOAD error conversion 'u00E7'

    Hi, I have a file to upload to an internal table  and i use GUI_UPLOAD function, i already try with filetype ASC and DAT but the words with CHAR 'Ç' as convert in 'A#' increase one CHAR in line on my internal table. Anyone could help me. Thanks and R

  • Kick off SSIS master package once new data gets into a transactional table

    hello I have a SSIS master package.. I also have an UI which the user uses to configure up some date ranges (that I need to use to load the data from the package). After date configuration, when user clicks on RUN SSIS button in UI, that configured d