on 04-13-2009 6:52 AM
Hi Expert,
I got some validation done for AR Invoice in SBO_SP_TransactionNotification, however I will like to execute this validation only when login user is not SUPERUSER. How can I query or get information that the current user is not a SUPERUSER?
Thank you.
Rollin
Please help!
Edited by: Rollin Snowboard on May 5, 2009 12:01 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Experts,
How do I query for user account type when "Updating" transactions? The above is valid only for when "Inserting" transaction.
Thank you!
Rollin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I only gave you the table and field name because it may need different syntax based on your SP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the following query within SP to check if the User is a Super User or Not
SELECT T0.[Internal_K], T0.[U_NAME] FROM OUSR T0 where T0.superuser='Y'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use this code
if exists (Select T0.cardcode from oinv T0 where T0.U_Name is null and T0.DocEntry = @list_of_cols_val_tab_del
and T0.usersign in (SELECT T0.[Internal_K] FROM OUSR T0 where T0.superuser='Y'))
begin
SET @error = 10
SET @error_message = N'UDF is Null'
end
The above code Checks if the Invoice is Created by the SuperUser, then blocks the Invoice.
It is as simple as OUSR.SUPERUSER = 'N'
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.