Prevent BP code update by non Superusers

I have created code for the Transaction Stored Procedure to prevent non Superusers from changing the BP code (cardcode) on the BP master. This code is allowing any user to update the Card code, what am i missing to identify that only the BP code has changed and prevent the update if the user is not a superuser?
If @object_type = '2' AND @transaction_type = 'U'
BEGIN
IF EXISTS(SELECT T1.superuser from OUSR t1 join OCRD t0 on t1.usersign = t0.usersign where t1.superuser = 'N' AND t0.cardcode = @list_of_cols_val_tab_del)
BEGIN
SELECT @error = -1,
@error_message = N'You are not authorized to change BP Code'
END
END
I will also want to do the same to the cardname field. Thanks

Hi Peter,
The UserSign field on the OCRD table holds the user id of the original creator of the master record. This value doesn't change. The user updating is UserSign2. Also, this UserSign field links to the UserID field from OUSR and not to the UserSign field.
If @object_type = '2' AND @transaction_type = 'U'
     BEGIN
          IF EXISTS(SELECT T1.superuser from OUSR t1 join OCRD t0 on t1.userid = t0.usersign2 where t1.superuser = 'N' AND t0.cardcode = @list_of_cols_val_tab_del)
               BEGIN
                    SELECT @error = -1,
                    @error_message = N'You are not authorised to change BPs'
              END
     END
However, the above will block ANY change made by the user and not just the CardCode or CardName. To do this, you need to cross reference the ACRD table to see if these fields have changed between updates. This could be problematic for the change of CardCode because there's no easy way to know that this value has been changed (ie because the link between the current values and the history records is the CardCode, you can't reference the old entries once the CardCode has been changed) . It would be better to block the change using the UI API via an addon.
Kind Regards,
Owen

Similar Messages

  • BCM 2007 error: "To help prevent malicious code from running, one or more objects"

    Recently we changed our e-mail accounts around to a new domain name. After this switch, BCM no longer allows adding, editing or any other manipulation of contact records. I get an error message saying "To help prevent malicious code from running, one
    or more objects in this form were not loaded."
    I have tried clearing the forms cache, uninstalling and reinstalling BCM and even adding the old e-mail address back into the Outlook profile and nothing works.
    Is there something I have missed somewhere or am I looking at a complete reinstall of Outlook and BCM?
    Jon

    Hi Jon
    Thank you for the update.  It could be another Active X Component - BCM 2007 calls several of them
    On thing you could do is run a Process Monitor Log to see if perhaps another component is Blocked. To do that try the following:
    1. Close Outlook and as many other programs as possible
    2. Download and Extract Process Monitor from here -
    http://technet.microsoft.com/en-us/sysinternals/bb896645
    3. Start Process Monitor
    4. Start Outlook
    5. Reproduce the error in BCM
    6. Stop Process Monitor by going to the File menu and unchecking "Capture Events"
    At this point you can try filtering by clicking the Filter Icon (the Funnel) on the menu bar.  Click on the Left Drop down at the top of the Dialog and Select "Path"
    For the second dropdown select "Contacts" and then filter on "ActiveX Compatibility" (without the quotes)
    in my lab, every GUID under HKLM\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility came up with a result of "Name Not Found"
    On your system, are there any are present (the Result Column will show "Success")?
    If so, then I would check the Compatibility Flag for that one (Hint - if you right-click on an Entry you can select "Jump To" to open Regedit to that location)
    - or -
    If you would like for me to take a look at it, in Process Monitor Go to the File > Save Menu and save it as a .PML file. Then send it to me at cts-larrymei at live.com
    Note - Please ZIP the file prior to sending it
    Thanks!
    Larry - MSFT
    Larry Meinstein

  • How to make VIP flag in transaction code fpp2 as non editable

    Hi everyone,
    Please guide me about:
    How to make VIP flag in T Code FPP2 as non editable only for some particular users?
    Is there any authorization object exists for this flag in FPP2 transaction?
    Actually there are many users who have authorization of transaction fpp2. But we want only some particular users should have authorization of making changes to this flag.
    Please guide with your valuable replies.
    Thanks and Regards

    Hi...MP Vashishth
    try to creat an Authorization Management ...  in customizing...
    Cross-Application Components --> SAP Business Partner --> Business Partner --> Basic Settings --> Authorization Management
    Creat an Grup..and others steps...!
    and when finish clic on Generate and Assin Authorization !!!
    I Hope it Help !
    regards
    Andre Frugulhetti
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:38 PM
    Edited by: Andre Frugulhetti on Sep 22, 2009 9:39 PM

  • Why do I get a message that says something is preventing firefox to update correctly when I have the latest version and it is up to date.

    Every now and then I will come back to my computer and see a message saying that something is preventing Firefox from updating correctly, am I sure that I have got the latest version.
    Included in the message box is a link to www.firefox.com, when I click on the link I get a page with various downloads and a message saying that my Firefox is up to date.

    This issue can be caused by the presence of leftover files in the Firefox program folder (defaults\pref) like a file firefox.js that overrides the update URL with a wrong link.
    Do a clean reinstall and be sure to remove the Firefox program folder to remove the file(s) that cause the problem.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    See:
    * [/questions/826858]

  • Firefox will updage. I get this message: Something is preventing firefox from updating securely. Please make sure that you have the latest version

    I get this error message: Something is preventing Firefox from updating securely. Please make sure that you have the latest version of Firefox. I have uninstalled and re-installed. It did not work. Support tells me to click on Firefox at the top. I have no word at the top which says Firefox. I have the Firefox icon.

    This issue can be caused by the presence of leftover files in the Firefox program folder (defaults\pref) like a file firefox.js that overrides the update URL with a wrong link.
    Do a clean reinstall and be sure to remove the Firefox program folder.
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Firefox 3.6.x: http://www.mozilla.com/en-US/firefox/all-older.html
    * Uninstall your current Firefox version.
    * Do not remove personal data when you uninstall the current version.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    * [/questions/826858]

  • After 3.6.10 all add-ons disappeared and a search for updates showed none needed. How do I get them back?

    I am running on a Mac OSX 10.6.4. After updating Firefox to 3.6.10, a few add-on disappeared. Specifically, Delicious, 1Password, Stumble ON and Buckts. I looked for updates and none were available. I've run through the view menu and preferences but can't find an option to restore these functions. Do all these add-ons need to be updated to be compatible with 3.6.10 or is there something in the update that wiped out these views.

    Add-ons that worked in 3.6.9 and earlier versions of 3.6 should also work in 3.6.10.
    The first thing I would try is to delete the files that store details of installed add-ons. If one of those files is corrupt it can cause problems with add-ons not being listed. For details of how to do that see the corrupt extension files section of the [[Unable to install add-ons#Corrupt extension files|unable to install add-ons]] article.

  • How to prevent the code viewing of jsp files

    hello friends
    How to prevent the code viewing on directly opening .jsp files at the server side
    Thanks in advance

    hello friends
    How to prevent the code viewing on directly opening
    .jsp files at the server side
    Thanks in advanceWhat exactly do you mean by code viewing? If by that you mean you don't want all the folders to show in the directory create a index.jsp file that has all the links to the pages you want to show
    If you mean something else please clarify

  • How to prevent BGP code 6 (Cease) subcode 6 (Other Configuration Change)

    Can anyone tell How to prevent BGP code 6 (Cease) subcode 6 (Other Configuration Change) ?
    We are facing frequent problem with this error. Please suggest how to stop this.... 
    Note :- We are using BGP VPN between this peers.
    Logs :
    Date/Time     : 2015-04-30 00:49:40+05:30
     State         : Up
     Date/Time     : 2015-04-30 00:39:05+05:30
     State         : Down
     Error Code    : 6(CEASE)
     Error Subcode : 6(Other Configuration Change)
     Notification  : Send Notification
     Date/Time     : 2015-04-29 18:22:11+05:30
     State         : Up
     Date/Time     : 2015-04-29 18:21:39+05:30
     State         : Down
     Error Code    : 6(CEASE)
     Error Subcode : 6(Other Configuration Change)
     Notification  : Send Notification

    on the same dates you mean the same request are posted in IT2001? ie both full days?
    Please clarify
    usually the Time collision checks are followed only via posting using report rptarqpost and not while applying through portal in ESS
    This is very strange you indicate
    SO you need to check the basic tables first
    You may need to check the collision.
    Collisions Tables V_T554Y and V_554Y_B reaction indicators.
    and V_T508A
    able T582A set to time constraint of "Z
    In backend Pa30 collision works like this
    1) the logical collision, checks if there is an overlap in the validity
    interval of the IT´s (begda, endda).
    2) the physical collision, checks if there is an overlap in the time
    interval of the IT's.
    In the logical collision it is checked if there is an overlap in the
    validity interval if at least one of the records is a full-day
    ( that is the case when you enter a Daily Work Schedule (DWS) )
    So when one of the records has a DWS it is considered to be a full day
    record and the logical collision is taken into consideration.
    If instead you enter the only the time interval manually the records
    are considered to be partial-day and the physical collision is
    performed. In that case only the time interval is important.
    So if the clock times are not entered the physical collision can not
    take place.
    The collision functionality is always based on clock times and dates,
    never on the total nr of hours.
    Edited by: Siddharth Rajora on Sep 21, 2011 4:57 PM

  • Tax code to make non-editable after GRN against PO

    Dear All,
    I want to make tax code non-editable in PO after GRN is done against the LIne item.
    Are there settings or User exit to do to make tax code non-editable?
    Regards,
    Rakesh

    thanx for reply.
    But the requirement is to make Tax code in PO non-editable after GRN (we don,t have CIN implemented.),
    What happening is after GRn if tax ocde is changed in print preview the total or tax value is showing as per new/changed tax code. Also same tax code picked up in MIRO.
    I want to avoid that.
    Regards,
    Rakesh

  • Document numbering ... non superusers cant use documents.

    I have all document numbers linked to financial periods.  However, for each of the series defined, group reads as '1'.
    Now, any non-superuser cannot create transactions , as the system alerts 'document numbering' has to be defined first.
    As a quick solution, ive had to define these users as superusers , and they can key transactions.
    But how do I resolve this issue ? What is the meaning of the 'GROUP' field in document numbering definition. I noticed, that group reads as '-1' for non-superusers.
    Please help.

    Hi,
    Check Note No. :  1057873. Probably it would help in your issue.
    Regards,
    Jitin

  • App store app shows updates when none available

    App store app shows updates when none available and is counting up by one daily.
    I am showing 3 updates, however; no updates are available when selected.
    The issue began three days ago.  All auto updates are selected on in the settings
    panel.
    Thx

    Tried that, tries a soft reset, and a hard reset, no luck.  Funny thing is, my other iphones and IPad work fine, its just the Iphone 5.

  • Update failed something is preventing firefox from updating securely how do I fix this ?

    Please can someone help me I have been getting from time to time an update box pop up that reads "Update Failed Something is preventing Firefox from updating securely. Please make sure that you have the latest version of Firefox from http://www.firefox.com", however my Firefox is up to date (I think). I have uninstalled then reinstalled but I'm still getting this error. I have been having this issue on and off for a couple of months and although I have posted before about this I'm still without a solution. I have looked into my programs folder as it tells me to in the help information to look for the active-update.xml, updates.xml and the updates folder and it's contents so I can delete them but I can't seem to find them. I'm definately not a computer whizz so any help anyone wants to offer needs to be in step by step form. Thanks

    See also [[/questions/919214]]
    Do a clean reinstall and delete the Firefox program folder before (re)installing a fresh copy of the current Firefox release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 20.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will lose all personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *(32 bit Windows) C:\Program Files\Mozilla Firefox\
    *(64 bit Windows) C:\Program Files (x86)\Mozilla Firefox\
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • [svn:osmf:] 13888: PARB feedback: Remove ContentElement and ContentLoader, refactor common image/SWF code into a non-public utility class.

    Revision: 13888
    Revision: 13888
    Author:   [email protected]
    Date:     2010-01-29 11:44:20 -0800 (Fri, 29 Jan 2010)
    Log Message:
    PARB feedback: Remove ContentElement and ContentLoader, refactor common image/SWF code into a non-public utility class.
    Modified Paths:
        osmf/trunk/framework/OSMF/.flexLibProperties
        osmf/trunk/framework/OSMF/org/osmf/image/ImageElement.as
        osmf/trunk/framework/OSMF/org/osmf/image/ImageLoader.as
        osmf/trunk/framework/OSMF/org/osmf/plugin/DynamicPluginLoader.as
        osmf/trunk/framework/OSMF/org/osmf/swf/SWFElement.as
        osmf/trunk/framework/OSMF/org/osmf/swf/SWFLoader.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/image/TestImageElementIntegration.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/image/TestImageLoaderIntegration.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/swf/TestSWFElementIntegration.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/swf/TestSWFLoaderIntegration.as
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
    Added Paths:
        osmf/trunk/framework/OSMF/org/osmf/swf/LoaderLoadTrait.as
        osmf/trunk/framework/OSMF/org/osmf/swf/LoaderLoadedContext.as
        osmf/trunk/framework/OSMF/org/osmf/swf/LoaderUtils.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/content/TestImageOrSWFElementIntegratio n.as
    Removed Paths:
        osmf/trunk/framework/OSMF/org/osmf/content/
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/content/TestContentElementIntegration.a s
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/content/TestContentLoaderIntegration.as
        osmf/trunk/framework/OSMFTest/org/osmf/content/TestContentElement.as
        osmf/trunk/framework/OSMFTest/org/osmf/content/TestContentLoader.as

  • I have tried to download an app but it says that i need 10.8 or later on my macbook air i have checked for software update but none i am on 10.7.5

    i have tried to download an app but it says that i need 10.8 or later on my macbook air i have checked for software update but none i am on 10.7.5 the app is pocket planes HELP PLZ
    i would really apprechiate it
    thank you very much
    Josh Stainsby
    [email protected]

    http://www.apple.com/osx/specs If your Mac is supported, open App Store, make a backup and purchase Mountain Lion. See if your programs are compatible > http://www.roaringapps.com

  • Can I use my G5's DVD drive, to update my non-DVD iBook's OS via network?

    Okay, here is the thing, I recently erased my old iBook's HD for a clean start. And I want to update its OS back to what it was. The problem is, to get it back to speed I would need a DVD reader in it for it to work with my 10.4 updater disc. My iBook does not have DVD capability.
    I was wondering, how could I run the installer/updater from my Dual 2.7 Power PC G5's DVD ROM for it to update my iBook's OS via an ethernet network.
    I have very little experience setting up a network, but I have managed to get the basics down. Thanks to the help of some basic how-to websites, I was able to link my computers up to drop files into each others' drop boxes. So, I have that much basic knowledge. But how do I use one computers DVD-rom drive to update my non-DVD-ROM iBook's OS from the updater DVD? It seems possible to me; almost as if I were using an external DVD-rom. Any suggestions? Thanks!

    Hi Scroto Saggins;
    I think you will have much better luck with Target Disk Mode rather then using the network.
    Allan

Maybe you are looking for