Query to find the user ID create date and locked date
Hi,
As title, below is my query, it seem that it will not work as my expectation, can someone help?
SELECT T0.[USER_CODE], T0.[U_NAME], T0.[LOCKED], T0.[LstLogoutD] AS 'Last Logon Date' , T1.[CreateDate] FROM OUSR T0 INNER JOIN AUSR T1 ON T0.USERID = T1.userSign WHERE T0.[LOCKED] = 'N' AND
T1.logInstanc = 1
Thanks
Try this
After the Mr. Nagarajan post
SELECT
T0.[USER_CODE], T0.[U_NAME], Case when Isnull((Select Min(T1.date) from usr5 T1 where T0.USER_Code = T1.usercode GROUP by T1.Usercode), 0) <> 0 then (Select Min(T1.date) from usr5 T1 where T0.USER_Code = T1.usercode GROUP by T1.Usercode) else T0.[updateDate] end 'Creation date', T0.[lastLogin], T0.[Locked] FROM [dbo].[OUSR] T0
Regards,
Similar Messages
-
How to find the user who created record on PA_TRANSACTION_INTERFACE_ALL ?
We are trying to develop a custom workflow to send Project WebADI transactions through workflow approval. My problem is, from the PA_TRANSACTION_INTERFACE_ALL table where the interface records are populated, I cant find the user responsibile. (Notification will be sent to the creator's manager)
What we planned for the design is:
Disable the import program being run from WebADI Screen. This ensures data stays in PA_TRANSACTION_INTERFACE_ALL and does not go to PA_EXPENDITURES_ALL Etc.
Looking at the data, send notifications. When the approval is given, run the import program to send the data to PA_EXPENDITURES_ALL Etc.
We were also going to remove the import program from the custom responsibilities so that users dont run it.
First, we had to disable the Import program being run from the WebADI screen. We did this by editing the integrator. Now when the data is imported into this table ,we can see many columns do not have data. CREATED_BY etc are populated only if the import program runs. But if it runs then already transactions have gone in and approval process is meaning less.
Only thing that looks like it could be useful is TXN_INTERFACE_ID but I cannot find another place where it will link to.
Could you help us find a way to find the creator of the data in PA_TRANSACTION_INTERFACE.Hi
I don't know the answer to your question, but thought of suggesting another approach.
Leave the original import program in the integrator of the WebAdi.
Develop a logic into Transaction Import Client Extension. There you can find the data that Oracle has already populated for the created by column, and you may trigger the notification submission for approval. Use the extension to alter the transaction status so it will not be actually interfaced, until you get the approval response.
Dina -
Query to find the user is having access to sql server DB
Hi,
Please help me in this.
Query to find the whether the user is having access to sql server DB.
Cheers,
sajithTUBBY_ORCL?Select 1 from dual where 'ORACLE' = 'SQL SERVER';
no rows selected
Elapsed: 00:00:00.01 -
How can I find the user that created a user account and the user who last updated the account
How can I find out who created a user account and who last updated the account. I think that this is the same information that is displayed in the description field on the General tab.
I am using ADO commands and vbscript
ug3jI should point out that there are two attributes of all AD objects that can help you track down the correct information in the system logs. These are the whenCreated and whenChanged attributes. This will tell when the object was created and when it was last
modified, which should help when you search the logs. Also, while whenCreated is replicated to all DC's, so they will all have the exact same creation time, the whenChanged attribute is technically not replicated. The date/time on each DC reflects when
the last modification was replicated to that DC. The values will differ slightly on each DC, reflecting how long it took for the change to replicate.
Richard Mueller - MVP Directory Services -
Find the user exit while creation and change of sales order
Hi Team
Below mentioned requirement , in which user exit i have to put below logic while creaion and change of sales order?
u2022 The logic for the user exit to explode should consider the following assumptions and validations
o Customer master to have the entry at KNVV-KVGR1
o Material master to have the entry at MVKE
o UoM in the Sales order item (VBAP- VRKME) should be = Pallets PAL or tonnes (TES)
o Should have more than one line item or number of line items with UoM PAL or tonnes TES should be > 1
for example :-->
Product A with Scales mentioned below
Product A Quantity / Scale UoM Price(£)
0-10 PAL/TES 20
11- 20 PAL/TES 10
21- 30 PAL/TES 5
31-40 PAL/TES 2.5
>41 PAL/TES
Product B with Scales mentioned below
Product B Quantity / Scale UoM Price(£)
0-15 PAL/TES 25
16-20 PAL/TES 20
21- 30 PAL/TES 15
31-40 PAL/TES 10
> 41 PAL/TES 5
u2022 Product A (qty 10PAL) + Product B (qty 15 pal) ordered in a single order with 2 line items.
u2022 The expected results should be
o Product A qty 10 + B qty 15 added = 25Pal
o The system user exit should add the total number of pallets on the order line items and point towards the respective scales, so in this example prices against each line item should be the respective price against 25 Pal = 5£ for product A per pal and £15 for product B.
Thanks in Advance.
Puneet.Hi Team
Below mentioned requirement , in which user exit i have to put below logic while creaion and change of sales order?
u2022 The logic for the user exit to explode should consider the following assumptions and validations
o Customer master to have the entry at KNVV-KVGR1
o Material master to have the entry at MVKE
o UoM in the Sales order item (VBAP- VRKME) should be = Pallets PAL or tonnes (TES)
o Should have more than one line item or number of line items with UoM PAL or tonnes TES should be > 1
for example :-->
Product A with Scales mentioned below
Product A Quantity / Scale UoM Price(£)
0-10 PAL/TES 20
11- 20 PAL/TES 10
21- 30 PAL/TES 5
31-40 PAL/TES 2.5
>41 PAL/TES
Product B with Scales mentioned below
Product B Quantity / Scale UoM Price(£)
0-15 PAL/TES 25
16-20 PAL/TES 20
21- 30 PAL/TES 15
31-40 PAL/TES 10
41 PAL/TES 5
u2022 Product A (qty 10PAL) + Product B (qty 15 pal) ordered in a single order with 2 line items.
u2022 The expected results should be
o Product A qty 10 + B qty 15 added = 25Pal
o The system user exit should add the total number of pallets on the order line items and point towards the respective scales, so in this example prices against each line item should be the respective price against 25 Pal = 5£ for product A per pal and £15 for product B.
Thanks in Advance.
Puneet. -
Query to find the number of main meter and its corresponding sub meter
Hi Expert,
I need to build a query to derieve the main meter & it corresponding sub meter in SAP system
Please could you let me the table which i should joinCheck out tables EQUI-EGERS-ETDZ
Thanks,
Murtuza -
Hello all
I have two units in a project that are taking part in the planning scenario.
The first unit enters the data, and the second checks the data.
I want that after thr first unit enters the data, and saves it, it cannot change it until the second unit approve the data.
I dont want to use the STS application.
Can anyone give me a tip how to do it?
Best YuvalHi,
Depends on how you decide to store this status (which will just be an indicator). Lets say it is a masterdata table where you keep an attribute called status. When the first unit presses submit, change this indicator to some predefined value, say '1'. The fox should run each time they try to save data and it should reach the proper status and throw an error if the status is '1'. The same record can be modified using a function by the second unit as required. -
i have created user call mastermap
osod
boundary
i need to get only above users in my query not the default and sample schemas like scott,dbsmnp...etc
select username ifrom dba_users ....lists everyuser
please let me know if any query for above request
thanks for help856483 wrote:
i have created user call mastermap
osod
boundary
i need to get only above users in my query not the default and sample schemas like scott,dbsmnp...etc
select username ifrom dba_users ....lists everyuser
please let me know if any query for above request
thanks for help
select username from dba_users where USERNAME IN('MASTERMAP','OSOD','BOUNDARY'); -
Where to find the user groups in SQL Server
Hello All,
where to find the user groups created in Shared Services in SQL Server tables?Yes thats correct its stored in Openldap
Native Directory (OpenLDAP), an open source Lightweight Directory Access Protocol (LDAP)-enabled user directory, is bundled and configured with Shared Services.
Native Directory functions:
**Used to maintain and manage the default Shared Services user accounts required by Hyperion products*
**Is the central storage for all Hyperion provisioning information because it stores the relationships between users, groups, and roles.*
Cheers
John
http://john-goodwin.blogspot.com/ -
Creating streams and sensor data hub
Hi all,
I am working on the Getting Started example from OTN ( "HandsOnSession.pdf" )
and in the step to create stream and sensor data hub, am having a problem.
I am working with the Standalone SES v10.1.2 running on a Linux OS.
While running this command at the Linux Terminal,
sqlplus system/welcome1@orcl
I get a -bash: sqlplus command not found error
I am in the <filepath>/edge/sql $ when I execute it.But I observed that my Oracle edge server install folder doesnot have a sqlplus folder which I think is by default installed in the Oracle_Home folder. There is a sqlj folder though , but am not familiar much with sqlj.
Could anyone advise on how to connect to the database and create he SDH tables.
Also in the sqlplus system/welcome1@orcl command, could anyone confirm if the syntax is as below,
sqlplus <username>/<password>@orcl
where
<username> = username used to install the Edge server install
<password> = password used to install the Edge server install
would appreciate your response,
Thanks,
VijayHi Vijay!
The EdgeServer doesn't have a full Oracle installation. Therefore a client tool such as sqlplus is not present. Install a Oracle Database on this machine (as I suspect you do not have a database yet) and use the sqlplus it comes with.
cu
Andreas -
Create a query to find the open PO
Hi all,
I want to create a query to find the Open PO which GR is not complete or Open invoice.
But I don't know how can I get the value: still to be invocied ,still to be delivery .
I want to know which table I can find these information.
I know a T-code :ME2L can run this report, but the format is not user friendly,so I want to create a new query .Hi
No need to create any query to find an Open PO.
You can use ME2N or ME2L or ME2N with proper scope of list and selection parameter.
In scope of list you can use the ALV one to get the user friendly report, if you do not have the ALV then you can
create your own scope of list by following the steps.
1) press F1 and click on the customizing icon
2) Click the button W/O specifying the project
3) Click Define scope of list
4) Copy any scope of list for example BEST and rename it as BEST_ALV and Tick the check box AL on the Bottom
5) You can get this new scope of list in the tcods mentioned above and execute thereports.
6) Once you get the output you can modify the layoout to get the user friendly format. Also you can download into excel sheet.
Hope it helps
Thanks/karthik -
Query to find the list of users having access to a particular scenario
Hi,
I am learning Hyperion Planning 9.2 x version. I wanted to know the query to find the list of users having access to Plan Iteration - 1 scenarion.
As I am new to Hyperion Essbase and Hyperion Planning, I am assuming these ideas work out to get the desired result.
1) As Hyperion Planning uses Relational DB to store the User Security information, we can query the list of users who is having access to Plan Iteration - 1 Scenario.
I am not sure if this solution works. Please correct me If I am wrong.
2) We can also query from the essbase editor to find out who all having access to this scenario.
If the above is correct, can you please provide me the query.
I am really need of this and I will be happy if any one provide the solution.
Thanks & Regards,
Upendra. BesthaHi,
If you are looking for some SQL to retrieve the access rights by member then you can use something like (SQL Server code though can easily be modified for Oracle)
SELECT usr.object_name as Username,mem.object_name as Member,
'Access Rights' = CASE acc.access_mode
WHEN -1 THEN 'None'
WHEN 1 THEN 'Read'
WHEN 2 THEN 'Write'
WHEN 3 THEN 'Write'
ELSE 'Unknown' END,
'Relation' = CASE acc.flags
WHEN 0 THEN 'Member'
WHEN 5 THEN 'Children'
WHEN 6 THEN 'Children (inclusive)'
WHEN 8 THEN 'Descendants'
WHEN 9 THEN 'Descendants (inclusive)'
ELSE 'Unknown' END
FROM
hsp_access_control acc, hsp_object mem, hsp_object usr
WHERE acc.object_id = mem.object_id
AND acc.user_id = usr.object_id
AND mem.object_name = 'Plan Iteration - 1'
Cheers
John
http://john-goodwin.blogspot.com/ -
Query to find the second maximum date in a table
please give me the query to find the second maximum date in a table
You can try with this
SELECT empno
,hiredate
FROM emp a
WHERE 2 = (SELECT COUNT(DISTINCT hiredate)
FROM emp b
WHERE b.hiredate >= a.hiredate
OR
SELECT empno
,hiredate
FROM (SELECT ROWNUM row_num
,empno
,hiredate
FROM emp a
ORDER BY hiredate ASC
WHERE row_num = 2;Regards
Arun -
Hello Gurus
I need to find the user log off and log on details.Suppose if the user logs of today and Logs on tommmorow...Then I need to get both those log off and log on details.The log details can be found from USR02 table..Plz help me in finding out the log off date of the user..IThanks
Ganesh
Edited by: Ganesh Kumar on Mar 9, 2009 6:57 PMExplore SM19 and SM20 tcodes for your requirement.
-
Find query technical name for a deleted query/workbook in the User Menu
Hi,
When a BEx workbook or BEx query is published in a role, people with that role will see the query / workbook in their user menu.
It is possible to change the caption/title of the 'node' in the user menu so it does not necessarily have the same name as the report.
I am now in a situation where a user tries to run a query/workbook from the user menu, and runs in an error message 'query does not exist on server'.
How can I found out to which query/workbook a node in the user menu refers?
I have tried the Metadata repository but because of the many nodes in the user menu this is a laborious task.
I was hoping to find a table where I could use the role name and node name to find the 'target' report but I haven't been able to find such a table.
Any (other) suggestions?
Many thanks,
Jan.Hi,
You can publish the workbook to the role and as user have access to the role he can access the workbook also.
Regards,
Kams
Maybe you are looking for
-
Just POs in Held status are displayed
Hello everybody, I have a problem with a user. When he uses Process Purchase Orders, he only can see PO in held status. I think is not role problem because we test with SAP_ALL. Do you have any idea about this? Thanks, Ivá
-
Image Tooltips Present both in Source and Output
Hi! I have a tooltip problem in my RoboHelp projects. When hovering the image both in source and output the image source name is seen as a tooltip. Please, support! How can I remove them? Thanks!
-
Cs6 master collection and acrobat XI
I am running CS6 Master Collection and it came with Acrobat X. I have updated my computer to Acrobat XI and now from Dreamweaver when I try to edit a pdf it says the form cannot be edited with acrobat and needs livecycle. This did not happen before
-
Calling a Script Object after remove instance index[0]
I have created a LiveCycle document that has a repeatable subform as url linked below. The form will not let me call a Script Object after removing an instance at index[0]. Regardless of the number of instances remaining. I use a script object t
-
Firefox is my browser. Until recently, I was able to open my virgin e.mails ok. Now I can't. I haven't made any setting changes. I can open my Yahoo mail ok, just not my virgin mail. Virgin tell me its a browser (incompatibility) problem. I can open